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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

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

2
typings/index.d.ts vendored
View file

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