Change private by default for large guilds
This commit is contained in:
parent
2539352c03
commit
01543145bb
1 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue