Correct docstring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user