39
39
40
40
if TYPE_CHECKING :
41
41
from cogs .tickets import Tickets
42
+
42
43
from rodhaj import Rodhaj
43
44
44
45
@@ -311,7 +312,7 @@ class ConfigOptionFlags(commands.FlagConverter):
311
312
active : Optional [bool ] = commands .flag (
312
313
name = "active" ,
313
314
default = None ,
314
- description = "Whether to show current active options or not. Using None will show all options, regardless of active status or not " ,
315
+ description = "Whether to show current active options or not. Using None will show all options" ,
315
316
)
316
317
317
318
@@ -792,15 +793,13 @@ async def config_options(
792
793
@is_manager ()
793
794
@commands .guild_only ()
794
795
@config .command (name = "help" , aliases = ["info" ])
795
- @app_commands .describe (option = "Configuration option to use for lookup" )
796
+ @app_commands .describe (key = "Configuration key to use for lookup" )
796
797
async def config_help (
797
- self , ctx : GuildContext , option : Annotated [str , ConfigKeyConverter ]
798
+ self , ctx : GuildContext , key : Annotated [str , ConfigKeyConverter ]
798
799
) -> None :
799
800
"""Shows help information for different configuration options"""
800
801
# Because we are using the converter, all options are guaranteed to be correct
801
- embed = ConfigEntryEmbed (
802
- ConfigHelpEntry (key = option , ** self .options_help [option ])
803
- )
802
+ embed = ConfigEntryEmbed (ConfigHelpEntry (key = key , ** self .options_help [key ]))
804
803
await ctx .send (embed = embed )
805
804
806
805
@is_manager ()
@@ -821,6 +820,10 @@ async def config_help_all(self, ctx: GuildContext):
821
820
@is_manager ()
822
821
@commands .guild_only ()
823
822
@config .command (name = "set-age" )
823
+ @app_commands .describe (
824
+ type = "Type of minimum age to set" ,
825
+ duration = "The duration that this minimum age should be. E.g. 2 days" ,
826
+ )
824
827
async def config_set_age (
825
828
self ,
826
829
ctx : GuildContext ,
@@ -830,7 +833,7 @@ async def config_set_age(
830
833
FriendlyTimeResult , UserFriendlyTime (commands .clean_content , default = "…" )
831
834
],
832
835
) -> None :
833
- """Sets an minium duration for age-related options
836
+ """Sets an minimum duration for age-related options
834
837
835
838
This command handles all age-related options. This means you can use this
836
839
to set the minimum age required to use Rodhaj
@@ -851,6 +854,10 @@ async def config_set_age(
851
854
@is_manager ()
852
855
@commands .guild_only ()
853
856
@config .command (name = "set" )
857
+ @app_commands .describe (
858
+ key = "Configuration key to use for lookup" ,
859
+ value = "Value to set for configuration" ,
860
+ )
854
861
async def config_set (
855
862
self ,
856
863
ctx : GuildContext ,
@@ -879,6 +886,10 @@ async def config_set(
879
886
@is_manager ()
880
887
@commands .guild_only ()
881
888
@config .command (name = "toggle" )
889
+ @app_commands .describe (
890
+ key = "Configuration key to use for lookup" ,
891
+ value = "Boolean option to set the configuration" ,
892
+ )
882
893
async def config_toggle (
883
894
self , ctx : GuildContext , key : Annotated [str , ConfigKeyConverter ], * , value : bool
884
895
) -> None :
0 commit comments