generated from Baipyrus/DiscordJS-Template
13 lines
503 B
JavaScript
13 lines
503 B
JavaScript
import { removeSelfRoles } from '../../../../shared.js';
|
|
import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits } from 'discord.js';
|
|
|
|
export const data = new ContextMenuCommandBuilder()
|
|
.setDMPermission(false)
|
|
.setName('Remove self roles')
|
|
.setType(ApplicationCommandType.Message)
|
|
.setDefaultMemberPermissions(PermissionFlagsBits.ManageRoles);
|
|
export async function execute(interaction) {
|
|
const id = interaction.targetMessage.id;
|
|
await removeSelfRoles(interaction, id);
|
|
}
|