summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/groupchat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord/src/groupchat.cpp')
-rw-r--r--protocols/Discord/src/groupchat.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/Discord/src/groupchat.cpp b/protocols/Discord/src/groupchat.cpp
index 5525f6658f..6641a4fd88 100644
--- a/protocols/Discord/src/groupchat.cpp
+++ b/protocols/Discord/src/groupchat.cpp
@@ -23,6 +23,21 @@ enum {
IDM_CHANGENICK, IDM_CHANGETOPIC, IDM_INVITE
};
+/////////////////////////////////////////////////////////////////////////////////////////
+
+void CDiscordProto::BuildStatusList(SnowFlake guildId, const CMStringW &wszChannelId)
+{
+ Chat_AddGroup(m_szModuleName, wszChannelId, L"@owner");
+
+ for (int i = 0; i < arRoles.getCount(); i++) {
+ CDiscordRole &r = arRoles[i];
+ if (r.guildId == guildId)
+ Chat_AddGroup(m_szModuleName, wszChannelId, r.wszName);
+ }
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
static gc_item sttLogListItems[] =
{
{ LPGENW("Change &nickname"), IDM_CHANGENICK, MENU_ITEM },