From b81b237fd86357218e37c8ff9b401b149746ebcd 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index b520728..9a7afe8 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -424,10 +424,11 @@ 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.") + return await message.channel.send(embed=build_team_embed(newteam)) checkmsg = await message.channel.send("Does this look good to you, boss?")