From fe38b04c618199618095f3f1b220d3601aa6325d Mon Sep 17 00:00:00 2001 From: Sakimori Date: Thu, 24 Dec 2020 05:41:19 -0500 Subject: [PATCH] fixed the error messages --- the_prestige.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index b520728..b1b8469 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -424,10 +424,10 @@ async def save_team_batch(message, command): newteam.set_pitcher(games.player(ono.get_stats(roster[len(roster)-1]))) #last line is pitcher name if len(newteam.name) > 30: - await message.send("Team names have to be less than 30 characters! Try again.") + await message.channel.send("Team names have to be less than 30 characters! Try again.") return elif len(newteam.slogan) > 100: - await message.send("We've given you 100 characters for the slogan. Discord puts limits on us and thus, we put limits on you. C'est la vie.") + await message.channel.send("We've given you 100 characters for the slogan. Discord puts limits on us and thus, we put limits on you. C'est la vie.") await message.channel.send(embed=build_team_embed(newteam)) checkmsg = await message.channel.send("Does this look good to you, boss?")