Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guild only commands missing error message #131

Closed
Edwinexd opened this issue Dec 12, 2023 · 2 comments · Fixed by #132
Closed

Guild only commands missing error message #131

Edwinexd opened this issue Dec 12, 2023 · 2 comments · Fixed by #132
Assignees
Labels
bug Something isn't working

Comments

@Edwinexd
Copy link
Contributor

Describe the bug

Guild only commands such as /help should print out that they only may be ran in a guild channel / include a message about limited functionality.

I'm currently unaware of which commands are affected.

To Reproduce

Steps to reproduce the behavior:

  1. Run /help in direct messages
  2. Unhandled key error gets raised

Expected behavior

Command executor receives an error message.

Screenshots
-

Server:

  • OS: N/A
  • Python version: N/A
  • disnake version: N/A

Traceback

# unable to retrieve at the moment, /help raises an attributerror since inter.guild is none
@Edwinexd Edwinexd added the bug Something isn't working label Dec 12, 2023
@Edwinexd
Copy link
Contributor Author

(I attempted to self-assign this issue but didn't work)

@eibex
Copy link
Owner

eibex commented Dec 14, 2023

I'm currently unaware of which commands are affected.

I believe all commands that have an isadmin check are affected since they look up guild roles (along with admin.py commands).

Basically all commands that aren't related to the bot owner (e.g. /bot restart)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants