{"action":"closed","issue":{"url":"https://api.github.com/repos/Half-Shot/matrix-appservice-discord/issues/425","repository_url":"https://api.github.com/repos/Half-Shot/matrix-appservice-discord","labels_url":"https://api.github.com/repos/Half-Shot/matrix-appservice-discord/issues/425/labels{/name}","comments_url":"https://api.github.com/repos/Half-Shot/matrix-appservice-discord/issues/425/comments","events_url":"https://api.github.com/repos/Half-Shot/matrix-appservice-discord/issues/425/events","html_url":"https://github.com/Half-Shot/matrix-appservice-discord/issues/425","id":431326975,"node_id":"MDU6SXNzdWU0MzEzMjY5NzU=","number":425,"title":"Documentation on bot roles in Discord that may stop a bridge","user":{"login":"serra-allgood","id":2336113,"node_id":"MDQ6VXNlcjIzMzYxMTM=","avatar_url":"https://avatars2.githubusercontent.com/u/2336113?v=4","gravatar_id":"","url":"https://api.github.com/users/serra-allgood","html_url":"https://github.com/serra-allgood","followers_url":"https://api.github.com/users/serra-allgood/followers","following_url":"https://api.github.com/users/serra-allgood/following{/other_user}","gists_url":"https://api.github.com/users/serra-allgood/gists{/gist_id}","starred_url":"https://api.github.com/users/serra-allgood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serra-allgood/subscriptions","organizations_url":"https://api.github.com/users/serra-allgood/orgs","repos_url":"https://api.github.com/users/serra-allgood/repos","events_url":"https://api.github.com/users/serra-allgood/events{/privacy}","received_events_url":"https://api.github.com/users/serra-allgood/received_events","type":"User","site_admin":false},"labels":[{"id":831606730,"node_id":"MDU6TGFiZWw4MzE2MDY3MzA=","url":"https://api.github.com/repos/Half-Shot/matrix-appservice-discord/labels/documentation","name":"documentation","color":"1e53b5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-04-10T06:33:34Z","updated_at":"2019-05-02T11:16:54Z","closed_at":"2019-05-02T11:16:54Z","author_association":"NONE","body":"Had a hell of a time figuring out why the bot was working on a fresh Discord server but not on one that I'm on all the time. It had to do with how roles are configured on the server and how bot roles are placed in the role hierarchy for a guild.\r\n\r\n1. Bot roles always start at the bottom of the roles\r\n2. Although you can assign any role to a bot, only roles that are lower in hierarchy (which is higher in position in the UI) will actually be applied to the bot in terms of permissions. So if you have a channel that prevents anyone from posting except for members with a certain role, this will prevent the bot from posting in that channel.\r\n3. If the `@everyone` role is configured on individual channels to outright deny the `Manage Webhooks` permission, it will prevent the bot both from being able to create webhooks for the channel and post in the channel even if a hook exists.\r\n\r\nPerhaps this is all well known to Discord devs, but it was very opaque to me and required digging into the API documentation to fully understand. Additionally, because I'm not a mod of the server I'm trying to bridge to, it took some raw API calls in Postman using the bot token for me to piece everything together.\r\n\r\nI should be able to put together a PR for this documentation if it's deemed worthy of inclusion."}}
{"actor":{"display_login":"serra-allgood"}}