Skip to content

Commit

Permalink
[V2 BetterMod] Added voice channel to reports. (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kowlin authored and laggron42 committed May 21, 2018
1 parent 98e8d8e commit 36cdb8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bettermod/bettermod.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,8 @@ async def report(self, ctx, user: discord.Member, *, reason):
report.add_field(name="From", value=author.mention, inline=True)
report.add_field(name="To", value=user.mention, inline=True)
report.add_field(name="Channel", value=ctx.message.channel.mention, inline=True)
if author.voice.voice_channel is not None:
report.add_field(name="Voice Channel", value=author.voice.voice_channel.name, inline=True)

report.set_author(name="{}".format(user.name), icon_url=user.avatar_url)
report.set_footer(text=ctx.message.timestamp.strftime("%d %b %Y %H:%M"))
Expand Down

0 comments on commit 36cdb8f

Please sign in to comment.