diff options
author | Parker <contact@pkrm.dev> | 2024-08-02 21:37:00 -0500 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-08-02 21:37:00 -0500 |
commit | 9e1729aa290501e5a3da546455fe68e8c13ce212 (patch) | |
tree | 49d1c9f92a7493129b923455b768c6ab96048693 /code/cogs/help.py | |
parent | 1bffa26776f6c80e2f2513d236f78ce9b7eea39f (diff) |
Change config validation - make more stuff optional
Diffstat (limited to 'code/cogs/help.py')
-rw-r--r-- | code/cogs/help.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |