|
import { TextChannel } from "discord.js"; |
|
1 |
import DiscordClient from "../client/Client"; |
import DiscordClient from "../client/Client"; |
2 |
import { unmute } from "../commands/moderation/UnmuteCommand"; |
import { unmute } from "../commands/moderation/UnmuteCommand"; |
3 |
import MuteRecord from "../models/MuteRecord"; |
import MuteRecord from "../models/MuteRecord"; |
48 |
console.log(e); |
console.log(e); |
49 |
|
|
50 |
const muteRecord = await MuteRecord.findOne({ |
const muteRecord = await MuteRecord.findOne({ |
51 |
where: { |
user_id, |
52 |
user_id, |
guild_id |
|
guild_id |
|
|
} |
|
53 |
}); |
}); |
54 |
|
|
55 |
if (muteRecord) { |
if (muteRecord) { |
56 |
await muteRecord.destroy(); |
await muteRecord.delete(); |
57 |
} |
} |
58 |
} |
} |
59 |
} |
} |