feat: can now verify the user got the email
This commit is contained in:
parent
98e61d7548
commit
a444d6a5e5
4 changed files with 114 additions and 17 deletions
|
@ -56,7 +56,9 @@ impl EventHandler for Handler {
|
|||
println!("[Main] {} is connected!", ready.user.name);
|
||||
|
||||
Command::set_global_application_commands(&ctx.http, |commands| {
|
||||
commands.create_application_command(|command| commands::link_email::link::register(command))
|
||||
commands
|
||||
.create_application_command(|command| commands::link_email::link::register(command))
|
||||
.create_application_command(|command| commands::link_email::verify::register(command))
|
||||
})
|
||||
.await
|
||||
.ok();
|
||||
|
@ -69,6 +71,7 @@ impl EventHandler for Handler {
|
|||
|
||||
let content = match command.data.name.as_str() {
|
||||
"link" => commands::link_email::link::run(&command, &ctx).await,
|
||||
"verify" => commands::link_email::verify::run(&command, &ctx).await,
|
||||
_ => "not implemented :(".to_string(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue