Compare commits

...

2 Commits

Author SHA1 Message Date
neru c849c8ee11 feat: add owner_id bypass for debugging 2026-01-14 23:09:32 -03:00
neru 426c97e654 fix: add requiresAdmin to tts-channel 2026-01-14 23:08:47 -03:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ export class CommandManager {
if (command.requiresAdmin) {
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({
content:
"You don't have the permissions required to execute this command.",
+1 -1
View File
@@ -13,7 +13,7 @@ const builder = new SlashCommandBuilder()
const cmd: Command = {
name: builder.name,
builder: builder,
requiresAdmin: true,
execute: async (interaction: ChatInputCommandInteraction): Promise<void> => {
await interaction.deferReply({ flags: MessageFlags.Ephemeral });