File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -390,9 +390,6 @@ def typecheck(m):
390390 await ctx .send ("Couldn't resolve that category. Keeping previous setting." )
391391
392392 old_label = conf ["options" ][key ]["label" ]
393- new_description = None
394- if description .lower () == "skip" :
395- new_description = conf ["options" ][key ]["description" ]
396393 conf ["options" ][key ] = {
397394 "label" : old_label ,
398395 "description" : description ,
@@ -658,7 +655,8 @@ def typecheck(m):
658655 if description .lower () == "cancel" :
659656 return await ctx .send ("Cancelled." )
660657
661- old_description = conf ["options" ][key ]["description" ]
658+ option_data = conf ["submenus" ][submenu ][key ]
659+ old_description = option_data .get ("description" )
662660
663661 if description .lower () == "skip" :
664662 description = old_description
@@ -675,7 +673,7 @@ def typecheck(m):
675673 if emoji .lower () == "cancel" :
676674 return await ctx .send ("Cancelled." )
677675
678- old_emoji = conf [ "options" ][ key ] .get ("emoji" )
676+ old_emoji = option_data .get ("emoji" )
679677
680678 if emoji .lower () == "skip" :
681679 emoji = old_emoji
You can’t perform that action at this time.
0 commit comments