Compare commits

...

2 Commits

Author SHA1 Message Date
c8e3fc2f2c initialize custom vc slash command 2024-02-06 21:26:29 +01:00
000acd20aa clean up: format 2024-02-06 21:25:47 +01:00
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
import { SlashCommandBuilder } from 'discord.js';
export const data = new SlashCommandBuilder()
.setName('custom_vc')
.setDMPermission(false)
.setDescription('Manages reactions for self roles.')
.addSubcommand((subcommand) =>
subcommand
.setName('create')
.setDescription('Creates new voice channel.')
.addStringOption((option) =>
option
.setName('name')
.setRequired(true)
.setDescription('The name to use for the voice channel.')
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('register')
.setDescription('Registers an existing voice channel.')
.addStringOption((option) =>
option
.setName('id')
.setRequired(true)
.setDescription('The ID to reference the voice channel to be used.')
)
);
export async function execute(interaction) {
const { options } = interaction;
// const id = options.getString('id');
}

View File

@ -1,6 +1,7 @@
import { config } from 'dotenv';
import { Events } from 'discord.js';
import { Message, RoleEmojiPair } from '../../database.js';
config();
export const name = Events.MessageReactionAdd;

View File

@ -1,6 +1,7 @@
import { config } from 'dotenv';
import { Events } from 'discord.js';
import { Message, RoleEmojiPair } from '../../database.js';
config();
export const name = Events.MessageReactionRemove;