3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 00:35:02 +00:00

Remove unnecessary cache lookup

This commit is contained in:
Dark 2021-06-17 01:32:38 +02:00
parent 400fe7e835
commit d89abcd54a

View file

@ -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