set_welcome: wire up role interaction

This commit is contained in:
seth 2024-03-31 14:51:21 -04:00
parent a2106caf22
commit 9dfc3b21ff
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
2 changed files with 52 additions and 0 deletions

View file

@ -9,6 +9,7 @@ mod analyze_logs;
mod delete_on_reaction;
mod eta;
mod expand_link;
mod give_role;
pub mod pluralkit;
mod support_onboard;
@ -29,6 +30,12 @@ pub async fn handle(
ctx.set_presence(Some(activity), OnlineStatus::Online);
}
FullEvent::InteractionCreate { interaction } => {
if let Some(component_interaction) = interaction.as_message_component() {
give_role::handle(ctx, component_interaction).await?;
}
}
FullEvent::Message { new_message } => {
trace!("Recieved message {}", new_message.content);