no bots for you

This commit is contained in:
MathMan05 2025-11-18 11:14:54 -06:00
parent 8dc7d34e71
commit d369bebf5c

View File

@ -168,6 +168,7 @@ router.put(
if (member_id === "@me") {
member_id = req.user_id;
rights.hasThrow("JOIN_GUILDS");
if (req.user_bot) throw DiscordApiErrors.BOT_PROHIBITED_ENDPOINT;
} else {
// TODO: check oauth2 scope