From 1fbe38b3a2e90af19a825a08ca1d896afd1b206d Mon Sep 17 00:00:00 2001 From: wookie184 Date: Wed, 5 Oct 2022 19:07:45 +0100 Subject: Add message when there are no patrons in a tier --- bot/exts/info/patreon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3