From 4fdb233bd6dbbe905fbc71f3f3554110f95d11af Mon Sep 17 00:00:00 2001 From: ashley zomo Date: Fri, 11 Feb 2022 13:44:00 -0600 Subject: [PATCH] yet another dumb mistake --- dist/queue.js | 4 ++-- src/queue.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/queue.js b/dist/queue.js index c5d6516..949547a 100644 --- a/dist/queue.js +++ b/dist/queue.js @@ -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; diff --git a/src/queue.ts b/src/queue.ts index 1426eb3..8631d2c 100644 --- a/src/queue.ts +++ b/src/queue.ts @@ -91,7 +91,7 @@ SaveQueue(); export async function discordInit(client: Client) { - for (let channelId in QUEUE.keys()) { + for (let channelId of QUEUE.keys()) { let info = QUEUE.get(channelId), channel = await client.channels.fetch(channelId); @@ -107,7 +107,7 @@ export async function discordInit(client: Client) { 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'); }