Update whoami.py
This commit is contained in:
parent
3487547720
commit
0110affad7
1 changed files with 18 additions and 12 deletions
12
whoami.py
12
whoami.py
|
@ -9,10 +9,16 @@ class whoami(commands.Cog):
|
||||||
async def whoami(self, ctx):
|
async def whoami(self, ctx):
|
||||||
user_id = ctx.author.id
|
user_id = ctx.author.id
|
||||||
username = ctx.author.name
|
username = ctx.author.name
|
||||||
await ctx.send(
|
|
||||||
f"Your User ID is: {user_id}\n"
|
embed = discord.Embed(
|
||||||
|
title="User Information",
|
||||||
|
description=f"Your User ID is: {user_id}\n"
|
||||||
f"Your username is: {username}\n"
|
f"Your username is: {username}\n"
|
||||||
f"Your nickname in this server is: <@{user_id}>"
|
f"Your nickname in this server is: <@{user_id}>",
|
||||||
|
color=discord.Color.blue()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
async def setup(bot):
|
async def setup(bot):
|
||||||
await bot.add_cog(whoami(bot))
|
await bot.add_cog(whoami(bot))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue