yet another dumb mistake

This commit is contained in:
2022-02-11 13:44:00 -06:00
parent 00c3fa8219
commit 4fdb233bd6
2 changed files with 4 additions and 4 deletions

4
dist/queue.js vendored
View File

@@ -89,7 +89,7 @@ var Queue;
})(Queue || (Queue = {}));
SaveQueue();
async function discordInit(client) {
for (let channelId in QUEUE.keys()) {
for (let channelId of QUEUE.keys()) {
let info = QUEUE.get(channelId), channel = await client.channels.fetch(channelId);
if (!info) { //no idea what could cause this but TS complains
Queue.remove(channelId);
@@ -100,7 +100,7 @@ async function discordInit(client) {
Queue.remove(channelId);
continue;
}
channel.send('The bot has just restarted and anybody in the queues have been reset');
channel.send('The bot has just restarted, anybody previously in the queue has been reset');
}
}
exports.discordInit = discordInit;