WowAddons

World of Warcraft Forever API · C_Discord.md, for your AI

C_Discord

21 functions, 6 events, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_Discord.Authorize

C_Discord.Authorize()

C_Discord.GetDiscordChannelName

name = C_Discord.GetDiscordChannelName(serverIndex, channelIndex)

Arguments

serverIndexluaIndex
channelIndexluaIndex

Returns

namestring

C_Discord.GetDiscordUserID

userID = C_Discord.GetDiscordUserID()

Returns

userIDDiscordMemberOpaqueID

C_Discord.GetDiscordUserName

userName = C_Discord.GetDiscordUserName(userID)

Arguments

userIDDiscordMemberOpaqueID

Returns

userNameKStringDiscordUserName

C_Discord.GetDisplayNameType

type = C_Discord.GetDisplayNameType()

Returns

typeDiscordDisplayNameType

C_Discord.GetGuildLinkStatus

isFullyLinked, linkedChannelName, linkedServerName = C_Discord.GetGuildLinkStatus()

Returns

isFullyLinkedbool
linkedChannelNamestring
linkedServerNamestring

C_Discord.GetNumDiscordChannels

count, valid = C_Discord.GetNumDiscordChannels(serverIndex)

Arguments

serverIndexluaIndex

Returns

countnumber
validbool

C_Discord.GetNumDiscordServers

count = C_Discord.GetNumDiscordServers()

Returns

countnumber

C_Discord.GetServerLinkableChannels

C_Discord.GetServerLinkableChannels(index)

Arguments

indexluaIndex

C_Discord.GetServerName

name = C_Discord.GetServerName(index)

Arguments

indexluaIndex

Returns

namestring

C_Discord.IsEnabled

enabled = C_Discord.IsEnabled()

Returns

enabledbool

C_Discord.IsGuildChannelLinked

isLinked = C_Discord.IsGuildChannelLinked()

Returns

isLinkedbool

C_Discord.IsGuildSettingSet

isSet = C_Discord.IsGuildSettingSet(setting)

Arguments

settingDiscordGuildSettings

Returns

isSetbool

C_Discord.IsUserOAuthed

hasOAuth = C_Discord.IsUserOAuthed()

Returns

hasOAuthbool

C_Discord.IsVoiceEnabled

enabled = C_Discord.IsVoiceEnabled()

Returns

enabledbool

C_Discord.RefreshAuth

C_Discord.RefreshAuth()

C_Discord.SetGuildSetting

C_Discord.SetGuildSetting(setting, set)

Arguments

settingDiscordGuildSettings
setbool

C_Discord.UpdateDiscordServers

C_Discord.UpdateDiscordServers()

C_Discord.UpdateGuildLobby

C_Discord.UpdateGuildLobby()

Events

DISCORD_GUILD_ACHIEVEMENT

achievementIDnumber

DISCORD_GUILD_LOBBY_UPDATE

No payload.

DISCORD_GUILD_SETTINGS_UPDATE

No payload.

DISCORD_SERVER_LIST_UPDATE

No payload.

DISCORD_STATUS_UPDATE

No payload.

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows