mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-03 00:03:13 +00:00
24 lines
692 B
Python
24 lines
692 B
Python
from discord.ext import commands
|
|
|
|
from lib import constants, embed_builder, formatter
|
|
|
|
|
|
class Help(commands.Cog):
|
|
def __init__(self, client: commands.Bot) -> None:
|
|
self.client = client
|
|
|
|
@commands.slash_command(
|
|
name="help",
|
|
description="Get Lumi help.",
|
|
)
|
|
async def help_command(self, ctx) -> None:
|
|
prefix = formatter.get_prefix(ctx)
|
|
embed = embed_builder.EmbedBuilder.create_warning_embed(
|
|
ctx=ctx,
|
|
description=constants.CONST.STRINGS["help_use_prefix"].format(prefix),
|
|
)
|
|
await ctx.respond(embed=embed, ephemeral=True)
|
|
|
|
|
|
def setup(client: commands.Bot) -> None:
|
|
client.add_cog(Help(client))
|