Skip to content

Commit be6c6ce

Browse files
committed
fix(framework): set application id on http before registering commands
1 parent 14ca2a5 commit be6c6ce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ async fn main() -> anyhow::Result<()> {
3535
let intents = GatewayIntents::non_privileged();
3636

3737
let http = Http::new(token.clone());
38+
let app_info = http.get_current_application_info().await?;
39+
http.set_application_id(app_info.id);
40+
3841
poise::builtins::register_globally(&http, get_global_commands().iter()).await?;
3942
poise::builtins::register_in_guild(
4043
&http,

0 commit comments

Comments
 (0)