Skip to content

Commit

Permalink
kick command trial
Browse files Browse the repository at this point in the history
  • Loading branch information
Chat Sumlin committed Apr 10, 2019
1 parent 104e047 commit ea9c98a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ async def kick(self, ctx, member: discord.Member, *, reason: str = 'N/A'):
try:
await self.bot.kick(member=member, reason=reason)
except Exception as e:
await self.bot.send_message("error: " + e)
await self.bot.send_message("error")
embed = discord.Embed(timestamp=ctx.message.created_at, color=0x00ff00,
description=f'User {member} was kicked.\nReason: {reason}.')
description=f'User {member.name} was kicked.\nReason: {reason}.')
embed.set_author(name=ctx.message.author.name, icon_url=ctx.message.author.avatar_url)
embed.set_footer(text=f'{ctx.prefix}{ctx.command}')

Expand Down

0 comments on commit ea9c98a

Please sign in to comment.