mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-06 02:01:26 +03:00
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:
@@ -72,4 +72,4 @@ module.exports = class PinMessageCommand extends MessageCommand {
|
||||
],
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@@ -141,4 +141,4 @@ module.exports = class AddSlashCommand extends SlashCommand {
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@@ -23,4 +23,4 @@ module.exports = class ClaimSlashCommand extends SlashCommand {
|
||||
await interaction.deferReply({ ephemeral: false });
|
||||
await client.tickets.claim(interaction);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@@ -34,4 +34,4 @@ module.exports = class CloseSlashCommand extends SlashCommand {
|
||||
const client = this.client;
|
||||
await client.tickets.beforeRequestClose(interaction);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@@ -76,4 +76,4 @@ module.exports = class ClaimSlashCommand extends SlashCommand {
|
||||
],
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@@ -35,4 +35,4 @@ module.exports = class NewSlashCommand extends SlashCommand {
|
||||
async run(interaction) {
|
||||
await useGuild(this.client, interaction, { referencesTicketId: interaction.options.getString('references', false) });
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@@ -23,4 +23,4 @@ module.exports = class ReleaseSlashCommand extends SlashCommand {
|
||||
await interaction.deferReply({ ephemeral: false });
|
||||
await client.tickets.release(interaction);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@@ -140,4 +140,4 @@ module.exports = class RemoveSlashCommand extends SlashCommand {
|
||||
userId: interaction.user.id,
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@@ -57,4 +57,4 @@ module.exports = class TagSlashCommand extends SlashCommand {
|
||||
],
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@@ -81,4 +81,4 @@ module.exports = class TopicSlashCommand extends SlashCommand {
|
||||
),
|
||||
);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user