aboutsummaryrefslogtreecommitdiff
path: root/code/cogs/help.py
diff options
context:
space:
mode:
Diffstat (limited to 'code/cogs/help.py')
-rw-r--r--code/cogs/help.py3
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