Normalize error messages in Starboard
This commit is contained in:
parent
81057f4cad
commit
e9f13e4a71
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue