all commands and buttons are working
This commit is contained in:
@@ -35,6 +35,7 @@ const commands = [
|
||||
new SlashCommandBuilder()
|
||||
.setName("subscribe")
|
||||
.setDescription("Subscribe to game notifications")
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName("game")
|
||||
@@ -60,6 +61,7 @@ const commands = [
|
||||
new SlashCommandBuilder()
|
||||
.setName("unsubscribe")
|
||||
.setDescription("Unsubscribe from game notifications")
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName("game")
|
||||
@@ -82,10 +84,11 @@ const commands = [
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
new SlashCommandBuilder()
|
||||
.setName("list_subscriptions")
|
||||
.setDescription("List all game subscriptions for this server"),
|
||||
.setDescription("List all game subscriptions for this server")
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
];
|
||||
|
||||
const rest = new REST({ version: "10" }).setToken(process.env.BOT_TOKEN);
|
||||
const rest = new REST({ version: "10" }).setToken(process.env.DISCORD_TOKEN);
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user