Start collector when the command is run
This commit is contained in:
parent
53ccfa31d2
commit
38a70d5457
@ -84,6 +84,7 @@ module.exports = {
|
|||||||
if (fruitMessage != "") replyParts.push(`Fruit Message: ${fruitMessage}`);
|
if (fruitMessage != "") replyParts.push(`Fruit Message: ${fruitMessage}`);
|
||||||
await interaction.editReply(replyParts.join("\n")).catch(e => console.error(e));
|
await interaction.editReply(replyParts.join("\n")).catch(e => console.error(e));
|
||||||
fn.collectionBuilders.guildInfos(interaction.client);
|
fn.collectionBuilders.guildInfos(interaction.client);
|
||||||
|
fn.setupCollector(interaction.channel, guildInfo);
|
||||||
} else {
|
} else {
|
||||||
const watchChannel = interaction.options.getChannel('watchchannel');
|
const watchChannel = interaction.options.getChannel('watchchannel');
|
||||||
const waterMessage = interaction.options.getString('watermessage');
|
const waterMessage = interaction.options.getString('watermessage');
|
||||||
@ -101,6 +102,7 @@ module.exports = {
|
|||||||
if (fruitMessage != "") replyParts.push(`Fruit Message: ${fruitMessage}`);
|
if (fruitMessage != "") replyParts.push(`Fruit Message: ${fruitMessage}`);
|
||||||
await interaction.editReply(replyParts.join("\n")).catch(e => console.error(e));
|
await interaction.editReply(replyParts.join("\n")).catch(e => console.error(e));
|
||||||
fn.collectionBuilders.guildInfos(interaction.client);
|
fn.collectionBuilders.guildInfos(interaction.client);
|
||||||
|
fn.setupCollector(watchChannel, guildInfo);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "update":
|
case "update":
|
||||||
@ -126,6 +128,7 @@ module.exports = {
|
|||||||
if (outFruitMessage != "") replyParts.push(`Fruit Message: ${outFruitMessage}`);
|
if (outFruitMessage != "") replyParts.push(`Fruit Message: ${outFruitMessage}`);
|
||||||
await interaction.editReply(replyParts.join("\n")).catch(e => console.error(e));
|
await interaction.editReply(replyParts.join("\n")).catch(e => console.error(e));
|
||||||
fn.collectionBuilders.guildInfos(interaction.client);
|
fn.collectionBuilders.guildInfos(interaction.client);
|
||||||
|
fn.setupCollector(inWatchChannel, guildInfo);
|
||||||
} else {
|
} else {
|
||||||
await interaction.editReply(fn.builders.errorEmbed("There is no existing notification relay to update!")).catch(e => console.error(e));
|
await interaction.editReply(fn.builders.errorEmbed("There is no existing notification relay to update!")).catch(e => console.error(e));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user