blob: 0cad55ceff31ef6033efb95f7bccbcf2b3a66702 [file] [log] [blame]
import type { CommandInteraction, GuildMember, SlashCommandSubcommandBuilder } from "discord.js";
import client from "../../utils/client.js";
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
.setName("tracks")
.setDescription("Manage the tracks for the server")
const callback = async (interaction: CommandInteraction) => {
}
const check = (interaction: CommandInteraction, _partial: boolean = false) => {
const member = interaction.member as GuildMember;
if (!member.permissions.has("ManageRoles"))
return "You must have the *Manage Server* permission to use this command";
return true;
};
export { command };
export { callback };
export { check };