mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 18:03:12 +00:00
refactor: Change default intro IDs
This commit is contained in:
parent
e5c4714444
commit
ba1825cd11
2 changed files with 17 additions and 5 deletions
18
lib/help.py
18
lib/help.py
|
@ -98,11 +98,19 @@ class LuminaraHelp(commands.HelpCommand):
|
||||||
group_commands.extend(commands_list)
|
group_commands.extend(commands_list)
|
||||||
if group_commands:
|
if group_commands:
|
||||||
command_list = ", ".join(f"`{c.name}`" for c in group_commands)
|
command_list = ", ".join(f"`{c.name}`" for c in group_commands)
|
||||||
embed.add_field(name=group.capitalize(), value=command_list, inline=False)
|
embed.add_field(
|
||||||
|
name=group.capitalize(),
|
||||||
|
value=command_list,
|
||||||
|
inline=False,
|
||||||
|
)
|
||||||
|
|
||||||
await self.get_destination().send(embed=embed)
|
await self.get_destination().send(embed=embed)
|
||||||
|
|
||||||
async def _add_command_help_fields(self, embed: discord.Embed, command: commands.Command[Any, Any, Any]) -> None:
|
async def _add_command_help_fields(
|
||||||
|
self,
|
||||||
|
embed: discord.Embed,
|
||||||
|
command: commands.Command[Any, Any, Any],
|
||||||
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Adds fields with usage and alias information for a command to an embed.
|
Adds fields with usage and alias information for a command to an embed.
|
||||||
|
|
||||||
|
@ -159,7 +167,11 @@ class LuminaraHelp(commands.HelpCommand):
|
||||||
)
|
)
|
||||||
|
|
||||||
for command in group.commands:
|
for command in group.commands:
|
||||||
embed.add_field(name=command.name, value=command.short_doc or "No description available.", inline=False)
|
embed.add_field(
|
||||||
|
name=command.name,
|
||||||
|
value=command.short_doc or "No description available.",
|
||||||
|
inline=False,
|
||||||
|
)
|
||||||
|
|
||||||
await self.get_destination().send(embed=embed)
|
await self.get_destination().send(embed=embed)
|
||||||
|
|
||||||
|
|
|
@ -93,8 +93,8 @@ info:
|
||||||
invite_url: https://discord.com/oauth2/authorize?client_id=1038050427272429588&permissions=8&scope=bot
|
invite_url: https://discord.com/oauth2/authorize?client_id=1038050427272429588&permissions=8&scope=bot
|
||||||
|
|
||||||
introductions:
|
introductions:
|
||||||
intro_guild_id: 1219635811977269371
|
intro_guild_id: 719227135151046699
|
||||||
intro_channel_id: 1219637688328523806
|
intro_channel_id: 973619250507972618
|
||||||
intro_question_mapping:
|
intro_question_mapping:
|
||||||
Nickname: how would you like to be identified in the server? (nickname)
|
Nickname: how would you like to be identified in the server? (nickname)
|
||||||
Age: how old are you?
|
Age: how old are you?
|
||||||
|
|
Loading…
Reference in a new issue