@@ -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