mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 15:15:02 +00:00
Get a new VoiceState (Member) so it does not show outdated info
Has been an issue more often than you would think and its really annoying
This commit is contained in:
parent
0f1ee84c46
commit
b890b31d9c
1 changed files with 2 additions and 1 deletions
|
@ -649,7 +649,8 @@ export class UtilityPlugin extends ZeppelinPlugin<IUtilityPluginConfig> {
|
|||
`) + embedPadding,
|
||||
});
|
||||
|
||||
const voiceChannel = member.voiceState.channelID ? this.guild.channels.get(member.voiceState.channelID) : null;
|
||||
const upToDateMember = await resolveMember(this.bot, this.guild, user.id);
|
||||
const voiceChannel = <VoiceChannel>this.guild.channels.get(upToDateMember.voiceState.channelID);
|
||||
if (voiceChannel || member.voiceState.mute || member.voiceState.deaf) {
|
||||
embed.fields.push({
|
||||
name: "Voice information",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue