omg
This commit is contained in:
parent
65e0d6cd73
commit
c2fa7367f9
|
@ -96,7 +96,7 @@ class Bot {
|
|||
// Interaction event
|
||||
this.client.on("interactionCreate", async (interaction) => {
|
||||
// Only process commands if the user is authorized
|
||||
if (interaction.user.id !== this.authorizedUserId) {
|
||||
if (!this.authorizedUserIds.includes(interaction.user.id)) {
|
||||
console.log(`Unauthorized access attempt by ${interaction.user.tag} (${interaction.user.id})`);
|
||||
await interaction.reply({
|
||||
content: "You are not authorized to use this bot.",
|
||||
|
|
Loading…
Reference in a new issue