/[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 393 by rakin, Mon Jul 29 17:29:59 2024 UTC revision 400 by rakin, Mon Jul 29 17:30:02 2024 UTC
# Line 32  export async function unmute(client: Dis Line 32  export async function unmute(client: Dis
32          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);
33          try {          try {
34              await user.roles.remove(role!, 'Unmuting user');              await user.roles.remove(role!, 'Unmuting user');
35                console.log("did that");
36          }          }
37          catch (e) {          catch (e) {
38              console.log(e);              console.log(e);

Legend:
Removed from v.393  
changed lines
  Added in v.400

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26