From 9e1729aa290501e5a3da546455fe68e8c13ce212 Mon Sep 17 00:00:00 2001 From: Parker Date: Fri, 2 Aug 2024 21:37:00 -0500 Subject: Change config validation - make more stuff optional --- code/cogs/help.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'code/cogs/help.py') diff --git a/code/cogs/help.py b/code/cogs/help.py index 3746482..a15d6d2 100644 --- a/code/cogs/help.py +++ b/code/cogs/help.py @@ -88,7 +88,8 @@ commands_and_descriptions = { class HelpView(discord.ui.View): def __init__(self, timeout=180.0): super().__init__(timeout=timeout) - self.add_item(discord.ui.Button(label="Invite Me", url=BOT_INVITE_LINK, row=1)) + if BOT_INVITE_LINK: + self.add_item(discord.ui.Button(label="Invite Me", url=BOT_INVITE_LINK, row=1)) @discord.ui.button( label="View All Commands", style=discord.ButtonStyle.green, row=1 -- cgit v1.2.3-70-g09d2