mayudev / revcord

A bridge for Discord and Revolt with easy setup through commands
MIT License
64 stars 9 forks source link

Asking for Masquerade permission even when enabled. #19

Closed MythicalTrashcan closed 1 year ago

MythicalTrashcan commented 1 year ago

I have connected the bots together and experimented and it seems messages from Revolt to Discord work perfectly, but Discord to Revolt doesn't send. It is asking for the bot to have the Masquerade permission, but I made a role giving it every permission including Masquerade. Was I supposed to do something differently to give this permission because the only way I knew to give the Masquerade permission was through a role.

mayudev commented 1 year ago

Generally, the permission error appears after Revolt has already rejected the message, so it most likely an issue with permissions of the bot on your server. And yes, you're supposed to make a role with Masquerade permission enabled and assign it to the bot.

MythicalTrashcan commented 1 year ago

Role1 Role2

I am not sure what the errors mean. I went and redid the revcord setup and still got the same error.

mayudev commented 1 year ago

Honestly I don't know what the issue may be caused by, but I'm pretty sure it's something on Revolt side. Maybe make sure the bot role has permissions to send messages in the specific channel.

Also the bot token seemed to be included with the logs, so I deleted them, but I suggest you regenerate the token as well. The logs leaking tokens is an issue on revolt.js side (we're just displaying the error message from there) but I guess it's hidden among a wall of text so I'll try to find a solution on our side so that it never happens again.

MythicalTrashcan commented 1 year ago

I see. It seems that the permissions for the bot role are overridden by channel permissions. I didn't set anything for the bots role in the channel and it just treated the bots role as if there was no permissions for whatever reason. It seems setting the permissions for the bots role and in the channel you connect is necessary. Problem solved.