blob: 0cad55ceff31ef6033efb95f7bccbcf2b3a66702 [file] [log] [blame]
TheCodedProfa112f612023-01-28 18:06:45 -05001import type { CommandInteraction, GuildMember, SlashCommandSubcommandBuilder } from "discord.js";
2import client from "../../utils/client.js";
3
4
5const command = (builder: SlashCommandSubcommandBuilder) =>
6 builder
7 .setName("tracks")
8 .setDescription("Manage the tracks for the server")
9
10
11const callback = async (interaction: CommandInteraction) => {
12
13
14
15}
16
17const check = (interaction: CommandInteraction, _partial: boolean = false) => {
18 const member = interaction.member as GuildMember;
19 if (!member.permissions.has("ManageRoles"))
20 return "You must have the *Manage Server* permission to use this command";
21 return true;
22};
23
24export { command };
25export { callback };
26export { check };