feat: initial Papo bot scaffold
This commit is contained in:
15
src/commands/music/skip.ts
Normal file
15
src/commands/music/skip.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { SlashCommandBuilder, ChatInputCommandInteraction } from 'discord.js';
|
||||
import { SlashCommand } from '../../utils/types.js';
|
||||
import { context } from '../../config/context.js';
|
||||
|
||||
const command: SlashCommand = {
|
||||
guildOnly: true,
|
||||
data: new SlashCommandBuilder().setName('skip').setDescription('Überspringt den aktuellen Song.'),
|
||||
async execute(interaction: ChatInputCommandInteraction) {
|
||||
if (!interaction.guildId) return;
|
||||
context.music.skip(interaction.guildId);
|
||||
await interaction.reply({ content: 'Übersprungen.' });
|
||||
}
|
||||
};
|
||||
|
||||
export default command;
|
||||
Reference in New Issue
Block a user