Skip to content

Commit

Permalink
temp: testing build
Browse files Browse the repository at this point in the history
  • Loading branch information
crnvl committed Sep 24, 2023
1 parent a795d9f commit 110fa2c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xp-bot/src/events/handler.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use log::{error, info};
use serenity::{
async_trait,
model::{prelude::{Activity, GuildId, Interaction, InteractionResponseType, Ready, Message, Reaction, ChannelId, component::ButtonStyle, ReactionType, Member, RoleId}, voice::VoiceState},
model::{prelude::{Activity, GuildId, Interaction, InteractionResponseType, Ready, Message, Reaction, ChannelId, component::ButtonStyle, ReactionType, Member, RoleId, GuildChannel}, voice::VoiceState},
prelude::{Context, EventHandler},
};
use xp_db_connector::{guild::Guild, guild_member::GuildMember, user::User};
Expand Down Expand Up @@ -32,7 +32,7 @@ impl EventHandler for Handler {
info!("Cache is ready!");

// register slash commands
for guild in guilds {
/* for guild in guilds {
let commands = GuildId::set_application_commands(&guild, &ctx.http, |commands| {
for command in commands::COMMANDS {
commands.create_application_command(|c| command.register(c));
Expand All @@ -46,7 +46,7 @@ impl EventHandler for Handler {
}
info!("Registered commands for guild {}", guild);
}
} */
}

async fn interaction_create(&self, ctx: Context, interaction: Interaction) {
Expand Down Expand Up @@ -915,3 +915,4 @@ impl Handler {
}
}
}

0 comments on commit 110fa2c

Please sign in to comment.