no bots for you
This commit is contained in:
parent
8dc7d34e71
commit
d369bebf5c
@ -168,6 +168,7 @@ router.put(
|
|||||||
if (member_id === "@me") {
|
if (member_id === "@me") {
|
||||||
member_id = req.user_id;
|
member_id = req.user_id;
|
||||||
rights.hasThrow("JOIN_GUILDS");
|
rights.hasThrow("JOIN_GUILDS");
|
||||||
|
if (req.user_bot) throw DiscordApiErrors.BOT_PROHIBITED_ENDPOINT;
|
||||||
} else {
|
} else {
|
||||||
// TODO: check oauth2 scope
|
// TODO: check oauth2 scope
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user