From 6b2b9db9807f66add5ed32c4c99f5ff9b09cca52 Mon Sep 17 00:00:00 2001 From: Paulo Date: Tue, 9 Feb 2021 21:28:12 -0300 Subject: [PATCH] Add remark instead of exception --- src/Discord.Net.WebSocket/BaseSocketClient.cs | 10 ++++++++++ src/Discord.Net.WebSocket/DiscordSocketClient.cs | 2 -- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net.WebSocket/BaseSocketClient.cs b/src/Discord.Net.WebSocket/BaseSocketClient.cs index 425889613..291d631ae 100644 --- a/src/Discord.Net.WebSocket/BaseSocketClient.cs +++ b/src/Discord.Net.WebSocket/BaseSocketClient.cs @@ -209,6 +209,12 @@ namespace Discord.WebSocket /// The name of the game. /// If streaming, the URL of the stream. Must be a valid Twitch URL. /// The type of the game. + /// + /// + /// Bot accounts cannot use as their activity + /// and it will have no effect. + /// + /// /// /// A task that represents the asynchronous set operation. /// @@ -222,6 +228,10 @@ namespace Discord.WebSocket /// Discord will only accept setting of name and the type of activity. /// /// + /// Bot accounts cannot use as their activity + /// and it will have no effect. + /// + /// /// Rich Presence cannot be set via this method or client. Rich Presence is strictly limited to RPC /// clients only. /// diff --git a/src/Discord.Net.WebSocket/DiscordSocketClient.cs b/src/Discord.Net.WebSocket/DiscordSocketClient.cs index 7e0576b22..b43db5d98 100644 --- a/src/Discord.Net.WebSocket/DiscordSocketClient.cs +++ b/src/Discord.Net.WebSocket/DiscordSocketClient.cs @@ -450,8 +450,6 @@ namespace Discord.WebSocket /// public override async Task SetGameAsync(string name, string streamUrl = null, ActivityType type = ActivityType.Playing) { - if (type == ActivityType.CustomStatus) - throw new InvalidOperationException("Only user accounts can use CustomStatus as their activity."); if (!string.IsNullOrEmpty(streamUrl)) Activity = new StreamingGame(name, streamUrl); else if (!string.IsNullOrEmpty(name))