update help settings
This commit is contained in:
5 files changed
+171
-78
No files matched your search
+21
-21
@@ -5,7 +5,7 @@ module.exports = {
|
||||
name: "settings",
|
||||
debug: false,
|
||||
description: "Configure your server settings",
|
||||
usage: "[opt], flags: (1 << 6) [action] [value]",
|
||||
usage: "[opt] [action] [value]",
|
||||
permissions: {
|
||||
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
|
||||
member: ["MANAGE_GUILD"],
|
||||
@@ -409,7 +409,7 @@ module.exports = {
|
||||
|
||||
interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
|
||||
|
||||
client.once("interactionCreate", ButtonInteraction => {
|
||||
client.on("interactionCreate", ButtonInteraction => {
|
||||
if(!ButtonInteraction.isButton()) return;
|
||||
const queryString = ButtonInteraction.customId;
|
||||
if (!queryString.endsWith(ButtonInteraction.member.user.id)) {
|
||||
@@ -439,7 +439,7 @@ module.exports = {
|
||||
|
||||
return ButtonInteraction.update({ content: '', embeds: [successEmbed], components: [] });
|
||||
});
|
||||
return;
|
||||
|
||||
} else console.log('exception?');
|
||||
|
||||
} else if (args[0].name == 'action_channel') {
|
||||
@@ -487,7 +487,7 @@ module.exports = {
|
||||
|
||||
interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
|
||||
|
||||
client.once("interactionCreate", ButtonInteraction => {
|
||||
client.on("interactionCreate", ButtonInteraction => {
|
||||
if(!ButtonInteraction.isButton()) return;
|
||||
const queryString = ButtonInteraction.customId;
|
||||
if (!queryString.endsWith(ButtonInteraction.member.user.id)) {
|
||||
@@ -517,7 +517,7 @@ module.exports = {
|
||||
|
||||
return ButtonInteraction.update({ content: '', embeds: [successEmbed], components: [] });
|
||||
});
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
} else if (args[0].name == 'tweet_channel') {
|
||||
@@ -565,7 +565,7 @@ module.exports = {
|
||||
|
||||
interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
|
||||
|
||||
client.once("interactionCreate", ButtonInteraction => {
|
||||
client.on("interactionCreate", ButtonInteraction => {
|
||||
if(!ButtonInteraction.isButton()) return;
|
||||
const queryString = ButtonInteraction.customId;
|
||||
if (!queryString.endsWith(ButtonInteraction.member.user.id)) {
|
||||
@@ -595,7 +595,7 @@ module.exports = {
|
||||
|
||||
return ButtonInteraction.update({ content: '', embeds: [successEmbed], components: [] });
|
||||
});
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
} else if (args[0].name == 'adverts_channel') {
|
||||
@@ -643,7 +643,7 @@ module.exports = {
|
||||
|
||||
interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
|
||||
|
||||
client.once("interactionCreate", ButtonInteraction => {
|
||||
client.on("interactionCreate", ButtonInteraction => {
|
||||
if(!ButtonInteraction.isButton()) return;
|
||||
const queryString = ButtonInteraction.customId;
|
||||
if (!queryString.endsWith(ButtonInteraction.member.user.id)) {
|
||||
@@ -673,7 +673,7 @@ module.exports = {
|
||||
|
||||
return ButtonInteraction.update({ content: '', embeds: [successEmbed], components: [] });
|
||||
});
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
} else if (args[0].name == 'dispatcher_channel') {
|
||||
@@ -722,7 +722,7 @@ module.exports = {
|
||||
|
||||
interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
|
||||
|
||||
client.once("interactionCreate", ButtonInteraction => {
|
||||
client.on("interactionCreate", ButtonInteraction => {
|
||||
if(!ButtonInteraction.isButton()) return;
|
||||
const queryString = ButtonInteraction.customId;
|
||||
if (!queryString.endsWith(ButtonInteraction.member.user.id)) {
|
||||
@@ -752,7 +752,7 @@ module.exports = {
|
||||
|
||||
return ButtonInteraction.update({ content: '', embeds: [successEmbed], components: [] });
|
||||
});
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
} else if (args[0].name == 'starting_balance') {
|
||||
@@ -850,7 +850,7 @@ module.exports = {
|
||||
|
||||
interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
|
||||
|
||||
client.once("interactionCreate", ButtonInteraction => {
|
||||
client.on("interactionCreate", ButtonInteraction => {
|
||||
if(!ButtonInteraction.isButton()) return;
|
||||
const queryString = ButtonInteraction.customId;
|
||||
if (!queryString.endsWith(ButtonInteraction.member.user.id)) {
|
||||
@@ -880,7 +880,7 @@ module.exports = {
|
||||
|
||||
return ButtonInteraction.update({ content: '', embeds: [successEmbed], components: [] });
|
||||
});
|
||||
return;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -924,7 +924,7 @@ module.exports = {
|
||||
|
||||
interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
|
||||
|
||||
client.once("interactionCreate", ButtonInteraction => {
|
||||
client.on("interactionCreate", ButtonInteraction => {
|
||||
if(!ButtonInteraction.isButton()) return;
|
||||
const queryString = ButtonInteraction.customId;
|
||||
if (!queryString.endsWith(ButtonInteraction.member.user.id)) {
|
||||
@@ -954,7 +954,7 @@ module.exports = {
|
||||
|
||||
return ButtonInteraction.update({ content: '', embeds: [successEmbed], components: [] });
|
||||
});
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
} else if (args[0].name == 'officer_role') {
|
||||
@@ -998,7 +998,7 @@ module.exports = {
|
||||
|
||||
interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
|
||||
|
||||
client.once("interactionCreate", ButtonInteraction => {
|
||||
client.on("interactionCreate", ButtonInteraction => {
|
||||
if(!ButtonInteraction.isButton()) return;
|
||||
const queryString = ButtonInteraction.customId;
|
||||
if (!queryString.endsWith(ButtonInteraction.member.user.id)) {
|
||||
@@ -1028,7 +1028,7 @@ module.exports = {
|
||||
|
||||
return ButtonInteraction.update({ content: '', embeds: [successEmbed], components: [] });
|
||||
});
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
} else if (args[0].name == 'dispatcher_role') {
|
||||
@@ -1072,7 +1072,7 @@ module.exports = {
|
||||
|
||||
interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
|
||||
|
||||
client.once("interactionCreate", ButtonInteraction => {
|
||||
client.on("interactionCreate", ButtonInteraction => {
|
||||
if(!ButtonInteraction.isButton()) return;
|
||||
const queryString = ButtonInteraction.customId;
|
||||
if (!queryString.endsWith(ButtonInteraction.member.user.id)) {
|
||||
@@ -1103,7 +1103,7 @@ module.exports = {
|
||||
return ButtonInteraction.update({ content: '', embeds: [successEmbed], components: [] });
|
||||
});
|
||||
}
|
||||
return;
|
||||
|
||||
|
||||
} else if (args[0].name == 'bot_admin_role') {
|
||||
|
||||
@@ -1146,7 +1146,7 @@ module.exports = {
|
||||
|
||||
interaction.send({ embeds: [prompt], components: [opt], flags: (1 << 6) });
|
||||
|
||||
client.once("interactionCreate", ButtonInteraction => {
|
||||
client.on("interactionCreate", ButtonInteraction => {
|
||||
if(!ButtonInteraction.isButton()) return;
|
||||
const queryString = ButtonInteraction.customId;
|
||||
if (!queryString.endsWith(ButtonInteraction.member.user.id)) {
|
||||
@@ -1177,7 +1177,7 @@ module.exports = {
|
||||
return ButtonInteraction.update({ content: '', embeds: [successEmbed], components: [] });
|
||||
});
|
||||
}
|
||||
return;
|
||||
|
||||
} else if (args[0].name == 'only_officers_search') {
|
||||
const setting = args[0].options[0];
|
||||
client.dbo.collection("guilds").updateOne({"server.serverID":GuildDB.serverID}, {$set: {"server.onlyOfficersSearch": setting}}, function(err, res) {
|
||||
|
||||
Reference in new issue
Block a user