set_welcome: wire up role interaction
This commit is contained in:
parent
a2106caf22
commit
9dfc3b21ff
2 changed files with 52 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue