From e91cd10ce6202ae20a375b34c9f463cf608e22d1 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 15 Dec 2023 10:13:40 -0500 Subject: [PATCH] fix(moderation): check inline before checking pagesize --- moderation/moderation.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 4ce8aaa..8d33434 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -925,6 +925,11 @@ class Moderation(commands.Cog): or await self.config.guild(interaction.guild).history_ephemeral() or False) + if inline is None: + inline = (await self.config.user(interaction.user).history_inline() + or await self.config.guild(interaction.guild).history_inline() + or False) + if pagesize is None: if inline is True: pagesize = (await self.config.user(interaction.user).history_inline_pagesize() @@ -933,12 +938,8 @@ class Moderation(commands.Cog): else: pagesize = (await self.config.user(interaction.user).history_pagesize() or await self.config.guild(interaction.guild).history_pagesize() - or 6) + or 5) - if inline is None: - inline = (await self.config.user(interaction.user).history_inline() - or await self.config.guild(interaction.guild).history_inline() - or False) await interaction.response.defer(ephemeral=ephemeral)