mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
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]);
|
||||
|
||||
// Actually delete the messages
|
||||
(pluginData.guild.channels.cache.get(channel.id) as TextChannel).bulkDelete(idsToDelete);
|
||||
channel.bulkDelete(idsToDelete);
|
||||
await pluginData.state.savedMessages.markBulkAsDeleted(idsToDelete);
|
||||
|
||||
// Create an archive
|
||||
|
|
Loading…
Add table
Reference in a new issue