Skip to content

Commit

Permalink
fix: sometimes bot leave server suddenly
Browse files Browse the repository at this point in the history
  • Loading branch information
RainyXeon authored Aug 22, 2024
1 parent 0dde63f commit 0052c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/guild/guildCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { BlacklistService } from '../../services/BlacklistService.js'
export default class {
async execute(client: Manager, guild: Guild) {
const blacklistService = new BlacklistService(client)
if (blacklistService.checkGuild(guild.id)) {
if (await blacklistService.checkGuild(guild.id)) {
await guild.leave()
client.logger.info(
'GuildCreate',
Expand Down

0 comments on commit 0052c26

Please sign in to comment.