Merge pull request #1390 from MathMan05/BotJoin

This commit is contained in:
Cyber 2025-11-18 18:33:15 +01:00 committed by GitHub
commit 5f53e64587
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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