Normalize error messages in Starboard

This commit is contained in:
Zeva Rose 2021-07-24 19:14:29 -06:00
parent 81057f4cad
commit e9f13e4a71
2 changed files with 4 additions and 1 deletions

View file

@ -44,7 +44,7 @@ jarvis = commands.Bot(
)
slash = SlashCommand(jarvis, sync_commands=True, sync_on_cog_reload=True)
jarvis_self = Process()
__version__ = "1.5.0"
__version__ = "1.5.1"
db = DBManager(get_config().mongo).mongo

View file

@ -246,6 +246,9 @@ class StarboardCog(commands.Cog):
id: int,
starboard: TextChannel,
):
if not isinstance(starboard, TextChannel):
await ctx.send("Channel must be a TextChannel", hidden=True)
return
exists = Starboard.get(channel=starboard.id, guild=ctx.guild.id)
if not exists:
await ctx.send(