Skip to content

Commit

Permalink
Update ClientSettings.cs
Browse files Browse the repository at this point in the history
#!skip-build!#

Signed-off-by: Nikita Petko <petko@vmminfra.net>
  • Loading branch information
jf-06 authored Oct 9, 2024
1 parent fe515bf commit b1e9235
Showing 1 changed file with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit b1e9235

Please sign in to comment.