hide specific options to command author

This commit is contained in:
SowinskiBraeden committed 2022-08-05 13:24:35 -07:00
1 parent e6c47b704d
commit 1325a1f80c
4 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ module.exports = {
name: "bank", name: "bank",
debug: false, debug: false,
description: "Manage your banking", description: "Manage your banking",
usage: "[cmd] [opt]", usage: "[cmd] [opt], ephemeral: true",
permissions: { permissions: {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
+1 -1
View File
@@ -467,7 +467,7 @@ module.exports = {
.setStyle("SUCCESS") .setStyle("SUCCESS")
) )
interaction.send({ embeds: [prompt], components: [opt] }); interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => { client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return; if(!ButtonInteraction.isButton()) return;
+2 -2
View File
@@ -117,7 +117,7 @@ module.exports = {
itemEmbed.addFields({ name: item.name, value: item.description, inline: false }); itemEmbed.addFields({ name: item.name, value: item.description, inline: false });
} }
return interaction.send({ embeds: [itemEmbed] }); return interaction.send({ embeds: [itemEmbed], ephemeral: true });
} }
let inventoryEmbed = new MessageEmbed() let inventoryEmbed = new MessageEmbed()
@@ -131,7 +131,7 @@ module.exports = {
description += "```"; description += "```";
inventoryEmbed.setDescription(description); inventoryEmbed.setDescription(description);
return interaction.send({ embeds: [inventoryEmbed] }); return interaction.send({ embeds: [inventoryEmbed], ephemeral: true });
}, },
}, },
} }
+8 -8
View File
@@ -4,7 +4,7 @@ module.exports = {
name: "settings", name: "settings",
debug: false, debug: false,
description: "Configure your server settings", description: "Configure your server settings",
usage: "[opt] [action] [value]", usage: "[opt], ephemeral: true [action] [value]",
permissions: { permissions: {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: ["MANAGE_GUILD"], member: ["MANAGE_GUILD"],
@@ -349,7 +349,7 @@ module.exports = {
.setStyle("SUCCESS") .setStyle("SUCCESS")
) )
interaction.send({ embeds: [prompt], components: [opt] }); interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => { client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return; if(!ButtonInteraction.isButton()) return;
@@ -428,7 +428,7 @@ module.exports = {
.setStyle("SUCCESS") .setStyle("SUCCESS")
) )
interaction.send({ embeds: [prompt], components: [opt] }); interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => { client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return; if(!ButtonInteraction.isButton()) return;
@@ -507,7 +507,7 @@ module.exports = {
.setStyle("SUCCESS") .setStyle("SUCCESS")
) )
interaction.send({ embeds: [prompt], components: [opt] }); interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => { client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return; if(!ButtonInteraction.isButton()) return;
@@ -586,7 +586,7 @@ module.exports = {
.setStyle("SUCCESS") .setStyle("SUCCESS")
) )
interaction.send({ embeds: [prompt], components: [opt] }); interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => { client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return; if(!ButtonInteraction.isButton()) return;
@@ -714,7 +714,7 @@ module.exports = {
.setStyle("SUCCESS") .setStyle("SUCCESS")
) )
interaction.send({ embeds: [prompt], components: [opt] }); interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => { client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return; if(!ButtonInteraction.isButton()) return;
@@ -788,7 +788,7 @@ module.exports = {
.setStyle("SUCCESS") .setStyle("SUCCESS")
) )
interaction.send({ embeds: [prompt], components: [opt] }); interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => { client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return; if(!ButtonInteraction.isButton()) return;
@@ -862,7 +862,7 @@ module.exports = {
.setStyle("SUCCESS") .setStyle("SUCCESS")
) )
interaction.send({ embeds: [prompt], components: [opt] }); interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => { client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return; if(!ButtonInteraction.isButton()) return;