Skip to content

CustomStatus

classe · Source

Constructor

new CustomStatus(client: Client, data?: CustomStatus | CustomStatusOptions)

Parameters

NameTypeDescription
clientClientDiscord Client
data?CustomStatus | CustomStatusOptionsCustomStatus to clone or raw data Default: {}.

Methods

setEmoji

setEmoji(emoji: EmojiIdentifierResolvable): CustomStatus

Set the emoji of this activity Parameters

NameTypeDescription
emojiEmojiIdentifierResolvableThe emoji to be displayed

Returns: CustomStatusSource

setState

setState(state: string | null): CustomStatus

Set state of this activity Parameters

NameTypeDescription
statestring | nullThe state to be displayed

Returns: CustomStatusSource

toJSON

toJSON(): CustomStatus

Returns an object that can be used to set the status Returns: CustomStatusSource

Unofficial software. Not affiliated with or supported by Discord.