v0.13.8

C_Discord

namespaceavailable in: camelot

Status in wowlua

21 functions: 0 implemented, 4 recorded, 17 guessed. 6 events, 1 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
AuthorizeStarts authorizing the player's Discord account. · by wowlua
()
guessed
GetDiscordChannelNameReturns the name of a channel on one of the player's Discord servers. · by wowlua
(serverIndex: number, channelIndex: number): string
guessed
GetDiscordUserIDReturns the player's Discord user ID. · by wowlua
(): DiscordMemberOpaqueID
guessed
GetDiscordUserNameReturns the name of a Discord user. · by wowlua
(userID: DiscordMemberOpaqueID): KStringDiscordUserName
guessed
GetDisplayNameTypeReturns which kind of Discord name is shown. · by wowlua
(): DiscordDisplayNameType
guessed
GetGuildLinkStatusReturns the status of the guild's link to Discord. · by wowlua
(): (boolean, string, string)
recorded
GetNumDiscordChannelsReturns the number of channels on one of the player's Discord servers. · by wowlua
(serverIndex: number): (number, boolean)
guessed
GetNumDiscordServersReturns the number of the player's Discord servers. · by wowlua
(): number
guessed
GetServerLinkableChannelsRequests the channels of a Discord server that the guild can link to. · by wowlua
(index: number)
guessed
GetServerNameReturns the name of one of the player's Discord servers. · by wowlua
(index: number): string
guessed
GuildLinkLinks the guild to a Discord channel. · by wowlua
(serverIndex: number, channelIndex: number)
guessed
GuildUnlinkRemoves the guild's link to Discord. · by wowlua
()
guessed
IsEnabledReturns true if the Discord integration system is currently enabled or supported.
(): boolean
recorded
IsGuildChannelLinkedWhether the guild is linked to a Discord channel. · by wowlua
(): boolean
guessed
IsGuildSettingSetWhether a Discord setting of the guild is on. · by wowlua
(setting: DiscordGuildSettings): boolean
guessed
IsUserOAuthedWhether the player has authorized their Discord account. · by wowlua
(): boolean
recorded
IsVoiceEnabledWhether Discord voice chat is enabled. · by wowlua
(): boolean
recorded
RefreshAuthRefreshes the Discord authorization. · by wowlua
()
guessed
SetGuildSettingTurns a Discord setting of the guild on or off. · by wowlua
(setting: DiscordGuildSettings, set: boolean)
guessed
UpdateDiscordServersRequests the list of the player's Discord servers. · by wowlua
()
guessed
UpdateGuildLobbyUpdates 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

eventpayloadfired by the emulator
DISCORD_GUILD_ACHIEVEMENTachievementID: numbernot implemented
DISCORD_GUILD_LOBBY_UPDATEno payloadimplemented
DISCORD_GUILD_SETTINGS_UPDATEno payloadnot implemented
DISCORD_LINK_UPDATEno payloadnot implemented
DISCORD_SERVER_LIST_UPDATEno payloadnot implemented
DISCORD_STATUS_UPDATEno payloadnot 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.