/[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 124 by rakin, Mon Jul 29 17:28:41 2024 UTC revision 159 by rakin, Mon Jul 29 17:28:49 2024 UTC
# Line 78  export async function unmute(client: Dis Line 78  export async function unmute(client: Dis
78              mod_tag: d.tag,              mod_tag: d.tag,
79          });          });
80    
81          await user.send({          try {
82              embeds: [              await user.send({
83                  new MessageEmbed()                  embeds: [
84                  .setAuthor({                      new MessageEmbed()
85                      iconURL: <string> user.guild!.iconURL(),                      .setAuthor({
86                      name: `\tYou have been unmuted in ${user.guild!.name}`                          iconURL: <string> user.guild!.iconURL(),
87                  })                          name: `\tYou have been unmuted in ${user.guild!.name}`
88              ]                      })
89          });                  ]
90                });
91            }
92            catch (e) {
93                console.log(e);
94            }
95    
96          await client.logger.logUnmute(user, d);          await client.logger.logUnmute(user, d);
97      }      }
# Line 179  export default class UnmuteCommand exten Line 184  export default class UnmuteCommand exten
184              ]              ]
185          });          });
186      }      }
 }  
187    }

Legend:
Removed from v.124  
changed lines
  Added in v.159

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26