We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 928f185 commit c6f3d39Copy full SHA for c6f3d39
discordoauth2/async_oauth.py
@@ -138,10 +138,10 @@ async def join_guild(
138
"deaf": deaf,
139
},
140
) as response:
141
- if response.ok:
142
- return await response.json()
143
- elif response.status == 204:
+ if response.status == 204:
144
raise Exceptions.HTTPException(f"member is already in the guild.")
+ elif response.ok:
+ return await response.json()
145
elif response.status == 401:
146
raise Exceptions.Forbidden(
147
f"this AccessToken does not have the nessasary scope."
0 commit comments