We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14ca2a5 commit be6c6ceCopy full SHA for be6c6ce
1 file changed
src/main.rs
@@ -35,6 +35,9 @@ async fn main() -> anyhow::Result<()> {
35
let intents = GatewayIntents::non_privileged();
36
37
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
+
41
poise::builtins::register_globally(&http, get_global_commands().iter()).await?;
42
poise::builtins::register_in_guild(
43
&http,
0 commit comments