Skip to content

Commit 6e5ad09

Browse files
committed
Fix my typo of wrong scope
1 parent 27fb2ac commit 6e5ad09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

discordoauth2/async_oauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,6 @@ def generate_uri(
494494
"disable_guild_select": disable_guild_select,
495495
"permissions": permissions,
496496
}
497-
if "application.commands" in scope:
497+
if "applications.commands" in scope:
498498
params["integration_type"] = 0 if integration_type == "guild" else 1
499499
return f"https://discord.com/oauth2/authorize?{parse.urlencode({key: value for key, value in params.items() if value is not None})}"

discordoauth2/sync_oauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,6 @@ def generate_uri(
465465
"disable_guild_select": disable_guild_select,
466466
"permissions": permissions,
467467
}
468-
if "application.commands" in scope:
468+
if "applications.commands" in scope:
469469
params["integration_type"] = 0 if integration_type == "guild" else 1
470470
return f"https://discord.com/oauth2/authorize?{parse.urlencode({key: value for key, value in params.items() if value is not None})}"

0 commit comments

Comments
 (0)