Updated localization and moved some commands
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import disnake
|
||||
from disnake import Option, OptionType, Colour
|
||||
from disnake import Option, OptionType, Colour, Localized
|
||||
from disnake.ext import commands
|
||||
|
||||
from lib.DB_Worker import DBReader
|
||||
from lib.Logger import logger
|
||||
|
||||
|
||||
@@ -17,7 +16,9 @@ class General(commands.Cog):
|
||||
@commands.slash_command(
|
||||
name="info",
|
||||
options=[
|
||||
Option("user", "Specify any user", OptionType.user),
|
||||
Option("user",
|
||||
"Specify any user",
|
||||
OptionType.user),
|
||||
]
|
||||
)
|
||||
async def info(self, inter: disnake.ApplicationCommandInteraction, user=None):
|
||||
@@ -49,7 +50,7 @@ class General(commands.Cog):
|
||||
f"Nickname: {user.nick}\n"
|
||||
f"Joined at: {user.joined_at.strftime('%A, %B %d %Y @ %H:%M:%S')}", inline=False)
|
||||
emb.add_field(name="Roles list", value=f"{roles}")
|
||||
emb.set_footer(text=f"Information requested by: {inter.author.display_name}")
|
||||
emb.set_footer(text=f"{Localized('Information requested by', key='REQUEST_INFO')}: {inter.author.display_name}")
|
||||
|
||||
await inter.response.send_message(embed=emb, ephemeral=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user