JohnnyJayJay / instant-poll

A Discord bot that lets you create polls in your server
MIT License
42 stars 9 forks source link

Voter-role can be set to @everyone, which breaks the current role handling #41

Closed JohnnyJayJay closed 1 year ago

JohnnyJayJay commented 1 year ago

In the voter-role option, users may select @everyone. Because "@everyone" is not an actual role, the check if someone has permission to vote always fails.

Expected behaviour: it should be the same as specifying no voter-role, i.e. everyone can vote.

Actual behaviour: nobody can vote.

Fix: Add a special case for @everyone.