goober/cogs/whoami.py

25 lines
657 B
Python
Raw Normal View History

2025-01-05 13:48:40 -05:00
import discord
from discord.ext import commands
class whoami(commands.Cog):
2025-01-05 20:36:18 +01:00
def __init__(self, bot):
self.bot = bot
@commands.command()
async def whoami(self, ctx):
user_id = ctx.author.id
username = ctx.author.name
embed = discord.Embed(
title="User Information",
description=f"Your User ID is: {user_id}\n"
f"Your username is: {username}\n"
f"Your nickname in this server is: <@{user_id}>",
color=discord.Color.blue()
)
await ctx.send(embed=embed)
2025-01-05 13:48:40 -05:00
async def setup(bot):
2025-01-05 20:36:18 +01:00
await bot.add_cog(whoami(bot))