fresh argument to invalidate cache

This commit is contained in:
Klemek
2021-03-15 13:35:46 +01:00
parent aba2889a63
commit ae8c6d8031
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ class Scanner(ABC):
elif re.match(r"^<#!?\d+>$", arg):
arg = arg[3:-1] if "!" in arg else arg[2:-1]
if (
arg not in self.valid_args + ["me", "here", "fast"]
arg not in self.valid_args + ["me", "here", "fast", "fresh"]
and (not arg.isdigit() or not self.has_digit_args)
and arg not in str_channel_mentions
and arg not in str_mentions
@@ -93,7 +93,7 @@ class Scanner(ABC):
allowed_mentions=discord.AllowedMentions.none(),
)
total_msg, total_chan = await logs.load(
progress, self.channels, fast="fast" in args
progress, self.channels, fast="fast" in args, fresh="fresh" in args
)
if total_msg == CANCELLED:
await message.channel.send(