aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2022-10-05 19:07:45 +0100
committerGravatar wookie184 <[email protected]>2022-10-05 19:07:45 +0100
commit1fbe38b3a2e90af19a825a08ca1d896afd1b206d (patch)
tree7a6dcff9144436686c0b56bd4fad95b6535b3b66
parentUpdate wording of patreon message (diff)
Add message when there are no patrons in a tier
-rw-r--r--bot/exts/info/patreon.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/info/patreon.py b/bot/exts/info/patreon.py
index d1c66c148..e3c8c07d1 100644
--- a/bot/exts/info/patreon.py
+++ b/bot/exts/info/patreon.py
@@ -20,6 +20,7 @@ PATREON_INFORMATION = (
"You can read more about how Patreon donations help us, and consider donating yourself, on our patreon page "
"[here](https://pydis.com/patreon)!"
)
+NO_PATRONS_MESSAGE = "*There are currently no patrons at this tier.*"
# List of tuples containing tier number and Discord role ID.
# Ordered from highest tier to lowest.
@@ -80,7 +81,7 @@ class Patreon(commands.Cog):
embed = discord.Embed(
title=role.name,
- description="\n".join(patron_names),
+ description="\n".join(patron_names) if patron_names else NO_PATRONS_MESSAGE,
colour=role.colour
)
embed_list.append(embed)