fix: hardcode teh inter-committee server
All checks were successful
On_Push / lint_fmt (push) Successful in 35s
On_Push / lint_clippy (push) Successful in 1m49s
On_Push / build (push) Successful in 1m45s
On_Push / deploy (push) Successful in 15s

This commit is contained in:
silver 2025-04-09 00:06:20 +01:00
parent 7f7e7ac598
commit e7425588a6
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
2 changed files with 7 additions and 13 deletions

View file

@ -40,7 +40,8 @@ impl EventHandler for Handler {
let config_global = config_lock.read().await;
// committee server takes priority
if new_member.guild_id.eq(&config_global.committee_server) {
let committee_server = GuildId::new(1220150752656363520);
if new_member.guild_id.get() == committee_server.get() {
let mut member = vec![new_member.clone()];
update_committees(&db, &ctx, &config_global, &mut member).await;
return;
@ -128,14 +129,7 @@ Sign up on [UL Wolves]({}) and go to https://discord.com/channels/{}/{} and use
}
}
let config_lock = {
let data_read = ctx.data.read().await;
data_read.get::<Config>().expect("Expected Config in TypeMap.").clone()
};
let config_global = config_lock.read().await;
match &config_global
.committee_server
match GuildId::new(1220150752656363520)
.set_commands(&ctx.http, vec![commands::count::committee::register()])
.await
{