diff --git a/jarvis/__init__.py b/jarvis/__init__.py index 65539e5..31c360e 100644 --- a/jarvis/__init__.py +++ b/jarvis/__init__.py @@ -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 diff --git a/jarvis/cogs/starboard.py b/jarvis/cogs/starboard.py index a4b44f4..dd27a43 100644 --- a/jarvis/cogs/starboard.py +++ b/jarvis/cogs/starboard.py @@ -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(