Skip to content

Commit b1e9235

Browse files
authored
Update ClientSettings.cs
#!skip-build!# Signed-off-by: Nikita Petko <[email protected]>
1 parent fe515bf commit b1e9235

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

services/grid-bot/lib/commands/PrivateModules/Commands/ClientSettings.cs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -154,24 +154,6 @@ await this.ReplyWithReferenceAsync(
154154
[Command("get"), Summary("Gets a client setting for the specified application.")]
155155
public async Task GetAsync(string applicationName, string settingName)
156156
{
157-
if (string.IsNullOrWhiteSpace(applicationName))
158-
{
159-
await this.ReplyWithReferenceAsync(
160-
text: "Please specify an application name."
161-
);
162-
163-
return;
164-
}
165-
166-
if (string.IsNullOrWhiteSpace(settingName))
167-
{
168-
await this.ReplyWithReferenceAsync(
169-
text: "Please specify a setting name."
170-
);
171-
172-
return;
173-
}
174-
175157
using var _ = Context.Channel.EnterTypingState();
176158

177159
try
@@ -211,24 +193,6 @@ await this.ReplyWithReferenceAsync(
211193
[Command("set"), Summary("Sets a client setting for the specified application.")]
212194
public async Task SetAsync(string applicationName, string settingName, ClientSettingType settingType = ClientSettingType.String, string settingValue = "")
213195
{
214-
if (string.IsNullOrWhiteSpace(applicationName))
215-
{
216-
await this.ReplyWithReferenceAsync(
217-
text: "Please specify an application name."
218-
);
219-
220-
return;
221-
}
222-
223-
if (string.IsNullOrWhiteSpace(settingName))
224-
{
225-
await this.ReplyWithReferenceAsync(
226-
text: "Please specify a setting name."
227-
);
228-
229-
return;
230-
}
231-
232196
if (settingValue is null)
233197
{
234198
await this.ReplyWithReferenceAsync(

0 commit comments

Comments
 (0)