Commands Used in Threads as User-Installed App #6501
Labels
Status: In Progress
There's a PR open to deal with this, or an org member is working on this internally
Type: Bug
Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
What Red version are you using?
3.5.14
What were you trying to do?
Receive a command.
Context:
Installed as a user app
Not present on server
Command run in a thread (cannot replicate what is causing this, permission wise, but a user can trigger it every time)
What did you expect to happen?
Bot receives command, processes it as normal and passes it to the cog.
What actually happened?
Function doesn't get called. Following appears in Red's log after a few minutes:
How can we reproduce this error?
I cannot replicate this myself, though the user who keeps having the problem can reliably trigger it on servers (and they aren't able to get the permissions list for them, though they are trying to contact an admin to do so).
Anything else?
What it looks like is your code here is running the check as if the bot was present on the server (which it isn't).
Then this check attempts to get the parent channel (which isn't available to the bot because it is a user-installed-app), and then tries to call that channel's (
None
) attributes.There really can't be any checks for ignored (by the bot) channels like this, since it isn't on that server for anyone to run the command to lock channels.
The text was updated successfully, but these errors were encountered: