yet another dumb mistake
This commit is contained in:
4
dist/queue.js
vendored
4
dist/queue.js
vendored
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user