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

+8 -8
View File
@@ -4,7 +4,7 @@ module.exports = {
name: "settings",
debug: false,
description: "Configure your server settings",
usage: "[opt] [action] [value]",
usage: "[opt], ephemeral: true [action] [value]",
permissions: {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: ["MANAGE_GUILD"],
@@ -349,7 +349,7 @@ module.exports = {
.setStyle("SUCCESS")
)
interaction.send({ embeds: [prompt], components: [opt] });
interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return;
@@ -428,7 +428,7 @@ module.exports = {
.setStyle("SUCCESS")
)
interaction.send({ embeds: [prompt], components: [opt] });
interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return;
@@ -507,7 +507,7 @@ module.exports = {
.setStyle("SUCCESS")
)
interaction.send({ embeds: [prompt], components: [opt] });
interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return;
@@ -586,7 +586,7 @@ module.exports = {
.setStyle("SUCCESS")
)
interaction.send({ embeds: [prompt], components: [opt] });
interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return;
@@ -714,7 +714,7 @@ module.exports = {
.setStyle("SUCCESS")
)
interaction.send({ embeds: [prompt], components: [opt] });
interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return;
@@ -788,7 +788,7 @@ module.exports = {
.setStyle("SUCCESS")
)
interaction.send({ embeds: [prompt], components: [opt] });
interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return;
@@ -862,7 +862,7 @@ module.exports = {
.setStyle("SUCCESS")
)
interaction.send({ embeds: [prompt], components: [opt] });
interaction.send({ embeds: [prompt], components: [opt], ephemeral: true });
client.on("interactionCreate", ButtonInteraction => {
if(!ButtonInteraction.isButton()) return;