/[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 203 by rakin, Mon Jul 29 17:29:00 2024 UTC revision 227 by rakin, Mon Jul 29 17:29:07 2024 UTC
# Line 23  export async function unmute(client: Dis Line 23  export async function unmute(client: Dis
23          const { getTimeouts, clearTimeoutv2 } = await import('../../utils/setTimeout');          const { getTimeouts, clearTimeoutv2 } = await import('../../utils/setTimeout');
24    
25          const { default: Hardmute } = await import("../../models/Hardmute");          const { default: Hardmute } = await import("../../models/Hardmute");
26            const { default: MuteRecord } = await import("../../models/MuteRecord");
27    
28          const hardmute = await Hardmute.findOne({          const hardmute = await Hardmute.findOne({
29              where: {              where: {
# Line 78  export async function unmute(client: Dis Line 79  export async function unmute(client: Dis
79              mod_tag: d.tag,              mod_tag: d.tag,
80          });          });
81    
82            const muteRecord = await MuteRecord.findOne({
83                where: {
84                    user_id: user.user.id,
85                    guild_id: user.guild.id
86                }
87            });
88    
89            if (muteRecord) {
90                await muteRecord.destroy();
91            }
92    
93          try {          try {
94              await user.send({              await user.send({
95                  embeds: [                  embeds: [

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26