Change private by default for large guilds

This commit is contained in:
Zeva Rose 2022-08-17 16:37:07 -06:00
parent 2539352c03
commit 01543145bb

View file

@ -50,8 +50,10 @@ class RemindmeCog(Extension):
async def _remindme(
self,
ctx: InteractionContext,
private: bool = False,
private: bool = None,
) -> None:
if private is None:
private = ctx.guild.member_count >= 5000
reminders = len([x async for x in Reminder.find(q(user=ctx.author.id, active=True))])
if reminders >= 5:
await ctx.send(