Implemented API Key creation/usage and changed layout of audio requests

This commit is contained in:
2024-12-21 12:03:02 -05:00
parent 4d9ee81ecf
commit ceea975836
16 changed files with 186 additions and 76 deletions

View File

@@ -108,7 +108,7 @@ impl EventHandler for BotHandler {
for guild in ready.guilds {
// Check if guild exists in database
let guild_id = guild.id.get() as i64;
if let None = GuildCache::get_by_id(guild_id).await.unwrap() {
if let None = GuildCache::find_by_id(guild_id).await.unwrap() {
let guild_cache = GuildCache {
id: guild_id,
name: guild.id.name(&ctx.cache),