3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00
This commit is contained in:
almeidx 2022-04-23 16:08:36 +01:00
parent 3a474250f7
commit 4674216748
No known key found for this signature in database
GPG key ID: C5FF0C40763546C5

View file

@ -54,7 +54,7 @@ export async function createPaginatedMessage(
const collector = message.createMessageComponentCollector({ time: fullOpts.timeout });
collector.on("collect", async interaction => {
collector.on("collect", async (interaction) => {
if (fullOpts.limitToUserId && interaction.user.id !== fullOpts.limitToUserId) {
return interaction.reply({ content: `You are not permitted to use these buttons.`, ephemeral: true });
}