C_Discord
namespaceavailable in: camelotStatus in wowlua
21 functions: 0 implemented, 4 recorded, 17 guessed. 6 events, 1 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
Authorize | Starts authorizing the player's Discord account. · by wowlua() | guessed |
GetDiscordChannelName | Returns the name of a channel on one of the player's Discord servers. · by wowlua(serverIndex: number, channelIndex: number): string | guessed |
GetDiscordUserID | Returns the player's Discord user ID. · by wowlua(): DiscordMemberOpaqueID | guessed |
GetDiscordUserName | Returns the name of a Discord user. · by wowlua(userID: DiscordMemberOpaqueID): KStringDiscordUserName | guessed |
GetDisplayNameType | Returns which kind of Discord name is shown. · by wowlua(): DiscordDisplayNameType | guessed |
GetGuildLinkStatus | Returns the status of the guild's link to Discord. · by wowlua(): (boolean, string, string) | recorded |
GetNumDiscordChannels | Returns the number of channels on one of the player's Discord servers. · by wowlua(serverIndex: number): (number, boolean) | guessed |
GetNumDiscordServers | Returns the number of the player's Discord servers. · by wowlua(): number | guessed |
GetServerLinkableChannels | Requests the channels of a Discord server that the guild can link to. · by wowlua(index: number) | guessed |
GetServerName | Returns the name of one of the player's Discord servers. · by wowlua(index: number): string | guessed |
GuildLink | Links the guild to a Discord channel. · by wowlua(serverIndex: number, channelIndex: number) | guessed |
GuildUnlink | Removes the guild's link to Discord. · by wowlua() | guessed |
IsEnabled | Returns true if the Discord integration system is currently enabled or supported.(): boolean | recorded |
IsGuildChannelLinked | Whether the guild is linked to a Discord channel. · by wowlua(): boolean | guessed |
IsGuildSettingSet | Whether a Discord setting of the guild is on. · by wowlua(setting: DiscordGuildSettings): boolean | guessed |
IsUserOAuthed | Whether the player has authorized their Discord account. · by wowlua(): boolean | recorded |
IsVoiceEnabled | Whether Discord voice chat is enabled. · by wowlua(): boolean | recorded |
RefreshAuth | Refreshes the Discord authorization. · by wowlua() | guessed |
SetGuildSetting | Turns a Discord setting of the guild on or off. · by wowlua(setting: DiscordGuildSettings, set: boolean) | guessed |
UpdateDiscordServers | Requests the list of the player's Discord servers. · by wowlua() | guessed |
UpdateGuildLobby | Updates the guild's Discord lobby. · by wowlua() | guessed |
"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.
Events
| event | payload | fired by the emulator |
|---|---|---|
DISCORD_GUILD_ACHIEVEMENT | achievementID: number | not implemented |
DISCORD_GUILD_LOBBY_UPDATE | no payload | implemented |
DISCORD_GUILD_SETTINGS_UPDATE | no payload | not implemented |
DISCORD_LINK_UPDATE | no payload | not implemented |
DISCORD_SERVER_LIST_UPDATE | no payload | not implemented |
DISCORD_STATUS_UPDATE | no payload | not implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("DISCORD_GUILD_ACHIEVEMENT").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Discord system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.