Skip to content

[Reviewed] fix: add robust permission checks to interactionCreate#35

Open
Ramanand-Shirbhate wants to merge 2 commits into
IN3PIRE:mainfrom
Ramanand-Shirbhate:fix-permission-checks-6
Open

[Reviewed] fix: add robust permission checks to interactionCreate#35
Ramanand-Shirbhate wants to merge 2 commits into
IN3PIRE:mainfrom
Ramanand-Shirbhate:fix-permission-checks-6

Conversation

@Ramanand-Shirbhate
Copy link
Copy Markdown
Contributor

Resolves Item #6 from Issue #21.

Added an early return check in interactionCreate.js using interaction.appPermissions.has('SendMessages').

If the bot is missing permissions, it attempts to send an ephemeral warning to the user. If the permissions are so restrictive that even the reply fails, it catches the error and logs it to the console to prevent the bot from crashing. Built on top of the error handling established in PR #28.

@TrivCodez TrivCodez changed the title fix: add robust permission checks to interactionCreate [Reviewed] fix: add robust permission checks to interactionCreate Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants