diff options
Diffstat (limited to 'src/config/mod.rs')
| -rw-r--r-- | src/config/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index aa6f770..0c53f08 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -74,7 +74,7 @@ pub struct DiscordOauth { #[cfg(feature = "oauth-discord")] fn discord_token_url() -> Url { - Url::parse("https://discord.com/api/oauth2/authorize?response_type=code").expect("valid url") + Url::parse("https://discord.com/api/oauth2/token").expect("valid url") } #[cfg(feature = "oauth-discord")] @@ -195,6 +195,7 @@ impl Config { if let Some(db_url) = &cli.db { dsn.url = db_url.clone(); } + } } |
