Fix log view section accessory
This commit is contained in:
parent
97820e0bf5
commit
5866fb3a4d
@ -72,8 +72,10 @@ class LoggingCog(commands.Cog):
|
||||
self.header.add_item(ui.TextDisplay(description))
|
||||
self.container.add_item(self.header)
|
||||
|
||||
# Section to hold log fields with no accessory
|
||||
self.fields_section = ui.Section(accessory=None)
|
||||
# Section to hold log fields with no accessory. Using a blank
|
||||
# TextDisplay avoids ``None`` errors from ``is_dispatchable`` while
|
||||
# keeping the accessory effectively invisible.
|
||||
self.fields_section = ui.Section(accessory=ui.TextDisplay("\u200b"))
|
||||
self.container.add_item(self.fields_section)
|
||||
|
||||
self.container.add_item(ui.Separator(spacing=discord.SeparatorSpacing.small))
|
||||
|
Loading…
x
Reference in New Issue
Block a user