Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
rxdn committed Oct 27, 2024
1 parent b2dd9ec commit c082361
Show file tree
Hide file tree
Showing 4 changed files with 748 additions and 736 deletions.
2 changes: 1 addition & 1 deletion bot/button/manager/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func HandleInteraction(ctx context.Context, manager *ComponentInteractionManager
var guildBlacklisted = false
if data.GuildId.Value != 0 {
group.Go(func() (err error) {
guildBlacklisted, err = dbclient.Client.ServerBlacklist.IsBlacklisted(lookupCtx, data.GuildId.Value)
guildBlacklisted, _, err = dbclient.Client.ServerBlacklist.IsBlacklisted(lookupCtx, data.GuildId.Value)
return
})
}
Expand Down
2 changes: 1 addition & 1 deletion bot/listeners/guildcreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func OnGuildCreate(worker *worker.Context, e events.GuildCreate) {
defer cancel()

// check if guild is blacklisted
if blacklisted, err := dbclient.Client.ServerBlacklist.IsBlacklisted(ctx, e.Guild.Id); err == nil {
if blacklisted, _, err := dbclient.Client.ServerBlacklist.IsBlacklisted(ctx, e.Guild.Id); err == nil {
if blacklisted {
if err := worker.LeaveGuild(e.Guild.Id); err != nil {
sentry.Error(err)
Expand Down
Loading

0 comments on commit c082361

Please sign in to comment.