cnpryer / peef

A discord bot with uncompensated personality
MIT License
0 stars 0 forks source link

Basic moderation commands #2

Open cnpryer opened 3 years ago

cnpryer commented 3 years ago
ObiWanRohan commented 3 years ago

What roles do we allow to run these commands?

cnpryer commented 3 years ago

@mod for everything @everyone for /assign me

ObiWanRohan commented 3 years ago

The Message object contains the Author property, which points to a User. Getting a User's roles for a guild seems a bit complicated.

Here's the list of steps I think needs to be done.

Do you see an easier way for now?

cnpryer commented 3 years ago

I’ll look into this. One thing I’ve noticed is that well designed bots reduce the amount of requests sent to discord’s API. I wonder if certain data exists in the interaction we receive.

A little off topic but we’d want to make sure we have some kind of fundamental design for handling making requests and avoiding them. Maybe we keep this in mind as we start building out our discord API usage.