Remove unnecessary cache lookup
This commit is contained in:
parent
b0329dca05
commit
421f6defaa
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ async function cleanMessages(
|
||||||
pluginData.state.logs.ignoreLog(LogType.MESSAGE_DELETE_BULK, idsToDelete[0]);
|
pluginData.state.logs.ignoreLog(LogType.MESSAGE_DELETE_BULK, idsToDelete[0]);
|
||||||
|
|
||||||
// Actually delete the messages
|
// Actually delete the messages
|
||||||
(pluginData.guild.channels.cache.get(channel.id) as TextChannel).bulkDelete(idsToDelete);
|
channel.bulkDelete(idsToDelete);
|
||||||
await pluginData.state.savedMessages.markBulkAsDeleted(idsToDelete);
|
await pluginData.state.savedMessages.markBulkAsDeleted(idsToDelete);
|
||||||
|
|
||||||
// Create an archive
|
// Create an archive
|
||||||
|
|
Loading…
Add table
Reference in a new issue