CustomStatus
classe · Source
Constructor
new CustomStatus(client: Client, data?: CustomStatus | CustomStatusOptions)
Parameters
| Name | Type | Description |
|---|---|---|
client | Client | Discord Client |
data? | CustomStatus | CustomStatusOptions | CustomStatus to clone or raw data Default: {}. |
Methods
setEmoji
setEmoji(emoji: EmojiIdentifierResolvable): CustomStatus
Set the emoji of this activity Parameters
| Name | Type | Description |
|---|---|---|
emoji | EmojiIdentifierResolvable | The emoji to be displayed |
Returns: CustomStatusSource
setState
setState(state: string | null): CustomStatus
Set state of this activity Parameters
| Name | Type | Description |
|---|---|---|
state | string | null | The state to be displayed |
Returns: CustomStatusSource
toJSON
toJSON(): CustomStatus
Returns an object that can be used to set the status Returns: CustomStatusSource