/[sudobot]/trunk/src/commands/moderation/UnmuteCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/moderation/UnmuteCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 227 by rakin, Mon Jul 29 17:29:07 2024 UTC revision 235 by rakin, Mon Jul 29 17:29:08 2024 UTC
# Line 16  export async function unmute(client: Dis Line 16  export async function unmute(client: Dis
16          await History.create(user.id, user.guild!, 'unmute', d.id, null);          await History.create(user.id, user.guild!, 'unmute', d.id, null);
17    
18          const role = await user.guild!.roles.fetch(client.config.props[user.guild.id].mute_role);          const role = await user.guild!.roles.fetch(client.config.props[user.guild.id].mute_role);
19          await user.roles.remove(role!, 'Unmuting user');          try {
20                await user.roles.remove(role!, 'Unmuting user');
21            }
22            catch (e) {
23                console.log(e);
24            }
25    
26          const { default: Punishment } = await import('../../models/Punishment');          const { default: Punishment } = await import('../../models/Punishment');
27    

Legend:
Removed from v.227  
changed lines
  Added in v.235

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26