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(
|
async def _remindme(
|
||||||
self,
|
self,
|
||||||
ctx: InteractionContext,
|
ctx: InteractionContext,
|
||||||
private: bool = False,
|
private: bool = None,
|
||||||
) -> 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))])
|
reminders = len([x async for x in Reminder.find(q(user=ctx.author.id, active=True))])
|
||||||
if reminders >= 5:
|
if reminders >= 5:
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
|
|
Loading…
Add table
Reference in a new issue