Browse Source

Change default for purge oldest_first to match history

pull/8149/head
Rapptz 3 years ago
parent
commit
96e6261d61
  1. 2
      discord/abc.py
  2. 4
      discord/channel.py
  3. 2
      discord/threads.py

2
discord/abc.py

@ -125,7 +125,7 @@ async def _purge_helper(
before: Optional[SnowflakeTime] = None,
after: Optional[SnowflakeTime] = None,
around: Optional[SnowflakeTime] = None,
oldest_first: Optional[bool] = False,
oldest_first: Optional[bool] = None,
bulk: bool = True,
reason: Optional[str] = None,
) -> List[Message]:

4
discord/channel.py

@ -444,7 +444,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
before: Optional[SnowflakeTime] = None,
after: Optional[SnowflakeTime] = None,
around: Optional[SnowflakeTime] = None,
oldest_first: Optional[bool] = False,
oldest_first: Optional[bool] = None,
bulk: bool = True,
reason: Optional[str] = None,
) -> List[Message]:
@ -1165,7 +1165,7 @@ class VoiceChannel(discord.abc.Messageable, VocalGuildChannel):
before: Optional[SnowflakeTime] = None,
after: Optional[SnowflakeTime] = None,
around: Optional[SnowflakeTime] = None,
oldest_first: Optional[bool] = False,
oldest_first: Optional[bool] = None,
bulk: bool = True,
reason: Optional[str] = None,
) -> List[Message]:

2
discord/threads.py

@ -443,7 +443,7 @@ class Thread(Messageable, Hashable):
before: Optional[SnowflakeTime] = None,
after: Optional[SnowflakeTime] = None,
around: Optional[SnowflakeTime] = None,
oldest_first: Optional[bool] = False,
oldest_first: Optional[bool] = None,
bulk: bool = True,
reason: Optional[str] = None,
) -> List[Message]:

Loading…
Cancel
Save