diff --git a/cogs/commands/settings_management.py b/cogs/commands/settings_management.py index 6293dcf..22f251c 100644 --- a/cogs/commands/settings_management.py +++ b/cogs/commands/settings_management.py @@ -69,7 +69,7 @@ class SettingsManagementCog(commands.Cog, name="Settings Management"): Args: interaction (nextcord.Interaction): Interaction that invoked the command - channel (nextcord.abc.GuildChannel, optional): Channel to register + channel Optional[nextcord.abc.GuildChannel], optional): Channel to register Is a SlashOption. Limited to text channels, Defaults to None. """ if not channel: @@ -96,7 +96,7 @@ class SettingsManagementCog(commands.Cog, name="Settings Management"): Args: interaction (nextcord.Interaction): Interaction that invoked the command - channel (nextcord.abc.GuildChannel, optional): Channel to register + channel (Optional[nextcord.abc.GuildChannel], optional): Channel to register Is a SlashOption. Limited to text channels, Defaults to None. """ if not channel: @@ -128,7 +128,7 @@ class SettingsManagementCog(commands.Cog, name="Settings Management"): Args: interaction (nextcord.Interaction): Interaction that invoked the command - length (int): Number of characters. Is SlashOption. Defaults to 26. + length (Optional[int]): Number of characters. Is SlashOption. Defaults to 26. """ guild = highscores_data.get_guild(interaction.guild_id) @@ -151,7 +151,7 @@ class SettingsManagementCog(commands.Cog, name="Settings Management"): Args: interaction (nextcord.Interaction): Interaction that invoked the command - length (int): Number of charactesr. Is SlashOption. Defaults to 12. + length (Optional[int]): Number of charactesr. Is SlashOption. Defaults to 12. """ guild = highscores_data.get_guild(interaction.guild_id) guild.username_length = length