From ce0532335d322c321ce873f13f7d792abe5d9189 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 4 Jan 2017 17:09:27 +0100 Subject: [PATCH] .setstatus now accepts 'dnd' too --- src/NadekoBot/Resources/CommandStrings.Designer.cs | 2 +- src/NadekoBot/Resources/CommandStrings.resx | 2 +- src/NadekoBot/ShardedDiscordClient.cs | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Resources/CommandStrings.Designer.cs b/src/NadekoBot/Resources/CommandStrings.Designer.cs index 4858f768..473a9183 100644 --- a/src/NadekoBot/Resources/CommandStrings.Designer.cs +++ b/src/NadekoBot/Resources/CommandStrings.Designer.cs @@ -6576,7 +6576,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to Sets the bot's status. (Online/Idle/Invisible). + /// Looks up a localized string similar to Sets the bot's status. (Online/Idle/Dnd/Invisible). /// public static string setstatus_desc { get { diff --git a/src/NadekoBot/Resources/CommandStrings.resx b/src/NadekoBot/Resources/CommandStrings.resx index 8c9ee0bf..9f6e7b62 100644 --- a/src/NadekoBot/Resources/CommandStrings.resx +++ b/src/NadekoBot/Resources/CommandStrings.resx @@ -2857,7 +2857,7 @@ setstatus - Sets the bot's status. (Online/Idle/Invisible) + Sets the bot's status. (Online/Idle/Dnd/Invisible) `{0}setstatus Idle` diff --git a/src/NadekoBot/ShardedDiscordClient.cs b/src/NadekoBot/ShardedDiscordClient.cs index 4948eb92..535e4c2e 100644 --- a/src/NadekoBot/ShardedDiscordClient.cs +++ b/src/NadekoBot/ShardedDiscordClient.cs @@ -153,6 +153,8 @@ namespace NadekoBot return UserStatus.Invisible; case SettableUserStatus.Idle: return UserStatus.AFK; + case SettableUserStatus.Dnd: + return UserStatus.DoNotDisturb; } return UserStatus.Online; @@ -166,6 +168,9 @@ namespace NadekoBot Invisible = 2, Invis = 2, Idle = 3, - Afk = 3 + Afk = 3, + Dnd = 4, + DoNotDisturb = 4, + Busy = 4, } } \ No newline at end of file