diff --git a/cogs/logging_cog.py b/cogs/logging_cog.py index 6cc01b3..b63d0b8 100644 --- a/cogs/logging_cog.py +++ b/cogs/logging_cog.py @@ -72,11 +72,9 @@ class LoggingCog(commands.Cog): self.header.add_item(ui.TextDisplay(description)) self.container.add_item(self.header) - # Section to hold log fields. `discord.py` requires an accessory of - # type ``Button`` or ``Thumbnail`` for a ``Section``. A disabled - # button with a zero-width label acts as an invisible placeholder - # and prevents ``is_dispatchable`` errors without affecting the - # layout visually. + # Section to hold log fields with no accessory. The API requires a + # valid component type, so use a disabled button with an invisible + # label as a placeholder accessory. self.fields_section = ui.Section( accessory=ui.Button(label="\u200b", disabled=True) )