mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-24 22:24:58 +05:00
Ещё один фикс
This commit is contained in:
parent
192480cdbd
commit
fbef5c76bc
1 changed files with 3 additions and 2 deletions
|
@ -70,13 +70,14 @@ class Help extends BaseCommand {
|
|||
.addOptions(categoriesRows)
|
||||
);
|
||||
|
||||
await interaction.editReply({
|
||||
const msg = await interaction.editReply({
|
||||
content: interaction.translate("common:AVAILABLE_OPTIONS"),
|
||||
fetchReply: true,
|
||||
components: [row]
|
||||
});
|
||||
|
||||
const filter = i => i.user.id === interaction.user.id;
|
||||
const collector = interaction.channel.createMessageComponentCollector({ filter, idle: (15 * 1000) });
|
||||
const collector = msg.createMessageComponentCollector({ filter, idle: (15 * 1000) });
|
||||
|
||||
collector.on("collect", async i => {
|
||||
if (i.isSelectMenu() && (i.customId === "help_category_select" || i.customId === "help_commands_select")) {
|
||||
|
|
Loading…
Reference in a new issue