Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import discord
from discord.ext import commands
class User:
def __init__(self, client):
self.client = client
# andrew's
@commands.command(description="shows the user info of the person mentioned @user",
brief="shows a users info",
pass_context=True)
async def info(self, ctx, user: discord.Member):
"""shows the user information of the person mentioned"""
await self.client.say("The users name is: {}".format(user.name))
await self.client.say("The users ID is: {}".format(user.id))
await self.client.say("The users status is:{}".format(user.status))
await self.client.say("The user joined at:{}".format(user.joined_at))
def setup(client):
client.add_cog(User(client))