fix: selfhosters shouldn't get a feature limit about reaction roles anymore

This commit is contained in:
Kwoth
2024-06-15 11:07:17 +00:00
parent 8fae6e621d
commit 518f2e425e
2 changed files with 13 additions and 4 deletions

View File

@@ -254,7 +254,7 @@ public sealed class ReactionRolesService : IReadyExecutor, INService, IReactionR
var activeReactionRoles = await ctx.GetTable<ReactionRoleV2>()
.Where(x => x.GuildId == guild.Id)
.CountAsync();
var limit = await _ps.GetUserLimit(LimitedFeatureName.ReactionRole, guild.OwnerId);
if (!_creds.IsOwner(guild.OwnerId) && (activeReactionRoles >= limit.Quota && limit.Quota >= 0))