creesch / discordIRCd

A node.js script that allows you to connect to discord with your irc client.
Apache License 2.0
115 stars 21 forks source link

Make channels we don't have send message perms to +m #42

Open Chew opened 6 years ago

Chew commented 6 years ago

If we can't speak in a channel, don't let the user be able speak on irc

creesch commented 6 years ago

That is actually rather difficult to figure out as it would mean checking out all permissions of all roles and figuring out what role ranks higher.

The discord api doesn't make that easy to figure out.

rctgamer3 commented 3 years ago

This is actually doable and I'm working on it

Chew commented 3 years ago

Was not expecting a response on this issue lol. Glad to see this slowly become un-dead. If possible, looks like you can check to see if you have READ and SEND messages to a specified channel. JDA has a method for it, so unless they do hacky things to figure it out, it might be in the API.