matthewjamesadam / epyc

Eat Poop You Cat
MIT License
1 stars 1 forks source link

Respond to Discord role mentions #51

Closed matthewjamesadam closed 3 years ago

matthewjamesadam commented 3 years ago

Would help workaround the wonky discord UI problems we've seen

matthewjamesadam commented 3 years ago

Suggestions from discord bot devs:

you can also use the role mention as a prefix

you could just hanle the role the same way you handle the user mention

Yes, I have my bot look for 3 mention techniques: nickname, user id, role id.

How do I know which role is the "right" one?  ie I'd imagine it's not just "whatever role the bot is a member of" because the bot can have multiple roles?
Just string matching or something?
role objects have a bot id field
or application id
check the docs
actually looking through djs docs I don't think it supports role tags yet yikes
oh actually it does on master
matthewjamesadam commented 3 years ago

So once discord.js releases a new version I should be able to fix this pretty easily.