Skip to content

Bot: Reacting only works with "Read Message History" permission #11

@MaxEtMoritz

Description

@MaxEtMoritz

When a location needs to be edited and there are multiple matching locations, the Companion Bot needs to add a reaction like 1️⃣, 2️⃣, 3️⃣ etc. to the PokeNav message. At the moment this somehow fails if the bot has no "message history" permission. It will recieve a HTTP 403 forbidden when adding a reaction, no matter if "add reactions" permission is granted or not.

i tried to add a reaction in a command module directly and this worked without problem, though i used the command context there.

is it just me doing stupid things or is this due to the way Discord defines "being active in a channel"? how to design the companion bot that it is considered "active" in the channel and is thus able to react without message history permission?

i want to lower the permissions to a bare minimum and this is currently the only place this would be needed. hopefully there is a workaround, but i don't know of one. if someone knows what is causing this or has a workaround for me, please let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions