From b1e9235a0ad60771c13c8e72a832498d92eb72f3 Mon Sep 17 00:00:00 2001 From: Nikita Petko Date: Wed, 9 Oct 2024 13:29:34 +0100 Subject: [PATCH] Update ClientSettings.cs #!skip-build!# Signed-off-by: Nikita Petko --- .../PrivateModules/Commands/ClientSettings.cs | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/services/grid-bot/lib/commands/PrivateModules/Commands/ClientSettings.cs b/services/grid-bot/lib/commands/PrivateModules/Commands/ClientSettings.cs index a5f48ea0..119925dd 100755 --- a/services/grid-bot/lib/commands/PrivateModules/Commands/ClientSettings.cs +++ b/services/grid-bot/lib/commands/PrivateModules/Commands/ClientSettings.cs @@ -154,24 +154,6 @@ await this.ReplyWithReferenceAsync( [Command("get"), Summary("Gets a client setting for the specified application.")] public async Task GetAsync(string applicationName, string settingName) { - if (string.IsNullOrWhiteSpace(applicationName)) - { - await this.ReplyWithReferenceAsync( - text: "Please specify an application name." - ); - - return; - } - - if (string.IsNullOrWhiteSpace(settingName)) - { - await this.ReplyWithReferenceAsync( - text: "Please specify a setting name." - ); - - return; - } - using var _ = Context.Channel.EnterTypingState(); try @@ -211,24 +193,6 @@ await this.ReplyWithReferenceAsync( [Command("set"), Summary("Sets a client setting for the specified application.")] public async Task SetAsync(string applicationName, string settingName, ClientSettingType settingType = ClientSettingType.String, string settingValue = "") { - if (string.IsNullOrWhiteSpace(applicationName)) - { - await this.ReplyWithReferenceAsync( - text: "Please specify an application name." - ); - - return; - } - - if (string.IsNullOrWhiteSpace(settingName)) - { - await this.ReplyWithReferenceAsync( - text: "Please specify a setting name." - ); - - return; - } - if (settingValue is null) { await this.ReplyWithReferenceAsync(