77 |
guild_id: user.guild!.id, |
guild_id: user.guild!.id, |
78 |
mod_id: d.id, |
mod_id: d.id, |
79 |
mod_tag: d.tag, |
mod_tag: d.tag, |
80 |
|
createdAt: new Date() |
81 |
}); |
}); |
82 |
|
|
83 |
const muteRecord = await MuteRecord.findOne({ |
const muteRecord = await MuteRecord.findOne({ |
84 |
where: { |
user_id: user.user.id, |
85 |
user_id: user.user.id, |
guild_id: user.guild.id |
|
guild_id: user.guild.id |
|
|
} |
|
86 |
}); |
}); |
87 |
|
|
88 |
if (muteRecord) { |
if (muteRecord) { |
89 |
await muteRecord.destroy(); |
await muteRecord.delete(); |
90 |
} |
} |
91 |
|
|
92 |
try { |
try { |