@@ -355,11 +355,11 @@ async def _set(self, ctx, key: str.lower, *, value):
355355 description = f'Set `{ key } ` to `{ value } `'
356356 )
357357
358- if key not in self .bot .mutable_config_keys :
358+ if key not in self .bot .config . allowed_to_change_in_command :
359359 em .title = 'Error'
360360 em .color = discord .Color .green ()
361361 em .description = f'{ key } is an invalid key.'
362- valid_keys = [f'`{ k } `' for k in self .bot .mutable_config_keys ]
362+ valid_keys = [f'`{ k } `' for k in self .bot .config . allowed_to_change_in_command ]
363363 em .add_field (name = 'Valid keys' , value = ', ' .join (valid_keys ))
364364 else :
365365 await self .bot .config .update ({key : value })
@@ -375,11 +375,11 @@ async def _del(self, ctx, key: str.lower):
375375 description = f'Set `{ key } ` to nothing.'
376376 )
377377
378- if key not in self .bot .mutable_config_keys :
378+ if key not in self .bot .config . allowed_to_change_in_command :
379379 em .title = 'Error'
380380 em .color = discord .Color .green ()
381381 em .description = f'{ key } is an invalid key.'
382- valid_keys = [f'`{ k } `' for k in self .bot .mutable_config_keys ]
382+ valid_keys = [f'`{ k } `' for k in self .bot .config . allowed_to_change_in_command ]
383383 em .add_field (name = 'Valid keys' , value = ', ' .join (valid_keys ))
384384 else :
385385 self .bot .config .cache [key ] = None
@@ -393,11 +393,11 @@ async def get(self, ctx, key=None):
393393 em = discord .Embed (color = discord .Color .green ())
394394 em .set_author (name = 'Current config' , icon_url = self .bot .user .avatar_url )
395395
396- if key and key not in self .bot .mutable_config_keys :
396+ if key and key not in self .bot .config . allowed_to_change_in_command :
397397 em .title = 'Error'
398398 em .color = discord .Color .green ()
399399 em .description = f'`{ key } ` is an invalid key.'
400- valid_keys = [f'`{ k } `' for k in self .bot .mutable_config_keys ]
400+ valid_keys = [f'`{ k } `' for k in self .bot .config . allowed_to_change_in_command ]
401401 em .add_field (name = 'Valid keys' , value = ', ' .join (valid_keys ))
402402 elif key :
403403 em .set_author (name = 'Config variable' , icon_url = self .bot .user .avatar_url )
@@ -407,7 +407,7 @@ async def get(self, ctx, key=None):
407407
408408 config = {
409409 k : v for k , v in self .bot .config .cache .items ()
410- if v and k in self .bot .mutable_config_keys
410+ if v and k in self .bot .config . allowed_to_change_in_command
411411 }
412412
413413 for k , v in reversed (list (config .items ())):
0 commit comments