Compare commits
2 Commits
60b66027a3
...
c849c8ee11
| Author | SHA1 | Date | |
|---|---|---|---|
| c849c8ee11 | |||
| 426c97e654 |
+1
-1
@@ -255,7 +255,7 @@ export class CommandManager {
|
|||||||
|
|
||||||
if (command.requiresAdmin) {
|
if (command.requiresAdmin) {
|
||||||
const member = interaction.member as GuildMember;
|
const member = interaction.member as GuildMember;
|
||||||
if (!member.permissions.has(PermissionFlagsBits.Administrator)) {
|
if (!member.permissions.has(PermissionFlagsBits.Administrator) || member.id != config.owner_id) {
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
content:
|
content:
|
||||||
"You don't have the permissions required to execute this command.",
|
"You don't have the permissions required to execute this command.",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const builder = new SlashCommandBuilder()
|
|||||||
const cmd: Command = {
|
const cmd: Command = {
|
||||||
name: builder.name,
|
name: builder.name,
|
||||||
builder: builder,
|
builder: builder,
|
||||||
|
requiresAdmin: true,
|
||||||
execute: async (interaction: ChatInputCommandInteraction): Promise<void> => {
|
execute: async (interaction: ChatInputCommandInteraction): Promise<void> => {
|
||||||
await interaction.deferReply({ flags: MessageFlags.Ephemeral });
|
await interaction.deferReply({ flags: MessageFlags.Ephemeral });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user