diff --git a/examples/e05_command_framework/src/main.rs b/examples/e05_command_framework/src/main.rs index e30eecac262..0ece65cc122 100644 --- a/examples/e05_command_framework/src/main.rs +++ b/examples/e05_command_framework/src/main.rs @@ -201,7 +201,11 @@ async fn main() { let (owners, bot_id) = match http.get_current_application_info().await { Ok(info) => { let mut owners = HashSet::new(); - owners.insert(info.owner.id); + if let Some(team) = info.team { + owners.insert(team.owner_user_id); + } else { + owners.insert(info.owner.id); + } (owners, info.id) },