Always fetch fresh member data when unmuting v2: electric boogaloo
This commit is contained in:
parent
3a9caae758
commit
be0f9182a0
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ export async function unmuteUser(
|
|||
): Promise<UnmuteResult | null> {
|
||||
const existingMute = await pluginData.state.mutes.findExistingMuteForUserId(userId);
|
||||
const user = await resolveUser(pluginData.client, userId);
|
||||
const member = await resolveMember(pluginData.client, pluginData.guild, userId); // Grab the fresh member so we don't have stale role info
|
||||
const member = await resolveMember(pluginData.client, pluginData.guild, userId, true); // Grab the fresh member so we don't have stale role info
|
||||
const modId = caseArgs.modId || pluginData.client.user!.id;
|
||||
|
||||
if (!existingMute && member && !memberHasMutedRole(pluginData, member)) return null;
|
||||
|
|
Loading…
Add table
Reference in a new issue