feat: ephemeral replies on (un)claim buttons (#580)

* new lines

* ephemeral button interactions

* send message to channel if interaction is ephemeral

* move deferreply to use ephemeral on no perms

* .editReply() -> .reply()
This commit is contained in:
ari
2025-02-08 18:23:44 +01:00
committed by GitHub
parent e53c064bf7
commit b3a2bb00a1
15 changed files with 22 additions and 18 deletions

View File

@@ -72,4 +72,4 @@ module.exports = class PinMessageCommand extends MessageCommand {
],
});
}
};
};

View File

@@ -141,4 +141,4 @@ module.exports = class AddSlashCommand extends SlashCommand {
});
}
};
};

View File

@@ -23,4 +23,4 @@ module.exports = class ClaimSlashCommand extends SlashCommand {
await interaction.deferReply({ ephemeral: false });
await client.tickets.claim(interaction);
}
};
};

View File

@@ -34,4 +34,4 @@ module.exports = class CloseSlashCommand extends SlashCommand {
const client = this.client;
await client.tickets.beforeRequestClose(interaction);
}
};
};

View File

@@ -76,4 +76,4 @@ module.exports = class ClaimSlashCommand extends SlashCommand {
],
});
}
};
};

View File

@@ -35,4 +35,4 @@ module.exports = class NewSlashCommand extends SlashCommand {
async run(interaction) {
await useGuild(this.client, interaction, { referencesTicketId: interaction.options.getString('references', false) });
}
};
};

View File

@@ -23,4 +23,4 @@ module.exports = class ReleaseSlashCommand extends SlashCommand {
await interaction.deferReply({ ephemeral: false });
await client.tickets.release(interaction);
}
};
};

View File

@@ -140,4 +140,4 @@ module.exports = class RemoveSlashCommand extends SlashCommand {
userId: interaction.user.id,
});
}
};
};

View File

@@ -57,4 +57,4 @@ module.exports = class TagSlashCommand extends SlashCommand {
],
});
}
};
};

View File

@@ -81,4 +81,4 @@ module.exports = class TopicSlashCommand extends SlashCommand {
),
);
}
};
};