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 = {}));
|
})(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;
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user