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 = {})); })(Queue || (Queue = {}));
SaveQueue(); SaveQueue();
async function discordInit(client) { 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); let info = QUEUE.get(channelId), channel = await client.channels.fetch(channelId);
if (!info) { //no idea what could cause this but TS complains if (!info) { //no idea what could cause this but TS complains
Queue.remove(channelId); Queue.remove(channelId);
@@ -100,7 +100,7 @@ async function discordInit(client) {
Queue.remove(channelId); Queue.remove(channelId);
continue; 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; exports.discordInit = discordInit;

View File

@@ -91,7 +91,7 @@ SaveQueue();
export async function discordInit(client: Client) { export async function discordInit(client: Client) {
for (let channelId in QUEUE.keys()) { for (let channelId of QUEUE.keys()) {
let info = QUEUE.get(channelId), let info = QUEUE.get(channelId),
channel = await client.channels.fetch(channelId); channel = await client.channels.fetch(channelId);
@@ -107,7 +107,7 @@ export async function discordInit(client: Client) {
continue; 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');
} }