Mention voice channel in [p]userinfo (#2680)

* Mention voice channels, due to new discord update

* Add ID part back in, as Discord doesn't have copy ID for it yet
This commit is contained in:
Neuro Assassin 2019-05-16 09:12:09 -04:00 committed by Kowlin
parent 9d0ca00f89
commit c5d2ae5831

View File

@ -145,7 +145,7 @@ class ModInfo(MixinMeta):
if voice_state and voice_state.channel:
data.add_field(
name=_("Current voice channel"),
value="{0.name} (ID {0.id})".format(voice_state.channel),
value="{0.mention} ID: {0.id}".format(voice_state.channel),
inline=False,
)
data.set_footer(text=_("Member #{} | User ID: {}").format(member_number, user.id))