feat(ActivityTypes): add Competing (type 5) (#4824)

This commit is contained in:
Advaith
2020-09-15 09:33:52 -07:00
committed by GitHub
parent 01ceda5b0c
commit 9c76129a23
2 changed files with 3 additions and 2 deletions

View File

@@ -427,9 +427,10 @@ exports.MessageTypes = [
* * LISTENING * * LISTENING
* * WATCHING * * WATCHING
* * CUSTOM_STATUS * * CUSTOM_STATUS
* * COMPETING
* @typedef {string} ActivityType * @typedef {string} ActivityType
*/ */
exports.ActivityTypes = ['PLAYING', 'STREAMING', 'LISTENING', 'WATCHING', 'CUSTOM_STATUS']; exports.ActivityTypes = ['PLAYING', 'STREAMING', 'LISTENING', 'WATCHING', 'CUSTOM_STATUS', 'COMPETING'];
exports.ChannelTypes = { exports.ChannelTypes = {
TEXT: 0, TEXT: 0,

2
typings/index.d.ts vendored
View File

@@ -2127,7 +2127,7 @@ declare module 'discord.js' {
shardID?: number | readonly number[]; shardID?: number | readonly number[];
} }
type ActivityType = 'PLAYING' | 'STREAMING' | 'LISTENING' | 'WATCHING' | 'CUSTOM_STATUS'; type ActivityType = 'PLAYING' | 'STREAMING' | 'LISTENING' | 'WATCHING' | 'CUSTOM_STATUS' | 'COMPETING';
interface AddGuildMemberOptions { interface AddGuildMemberOptions {
accessToken: string; accessToken: string;