Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rxdn committed Oct 22, 2024
1 parent 5f02504 commit a8b500e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions bot/button/manager/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ func HandleInteraction(ctx context.Context, manager *ComponentInteractionManager

// Fetch premium tier
// TODO: Re-architecture system to tie DMs to guilds
premiumTier, err := getPremiumTier(lookupCtx, worker, data.GuildId.Value)
if err != nil {
// TODO: Better handling
// Allow executing to continue, assuming no premium
sentry.ErrorWithContext(err, errorcontext.WorkerErrorContext{
Guild: data.GuildId.Value,
Channel: data.ChannelId,
})

premiumTier = premium.None
}
premiumTier := premium.Premium
//premiumTier, err := getPremiumTier(lookupCtx, worker, data.GuildId.Value)
//if err != nil {
// // TODO: Better handling
// // Allow executing to continue, assuming no premium
// sentry.ErrorWithContext(err, errorcontext.WorkerErrorContext{
// Guild: data.GuildId.Value,
// Channel: data.ChannelId,
// })
//
// premiumTier = premium.None
//}

if premiumTier == premium.None && config.Conf.PremiumOnly {
return false
Expand Down

0 comments on commit a8b500e

Please sign in to comment.