Fix errors not closing modal

This commit is contained in:
Zeva Rose 2022-03-23 20:30:57 -06:00
parent 1225034f72
commit 3b12ffa7f0

View file

@ -84,16 +84,16 @@ class RemindmeCog(Scale):
except asyncio.TimeoutError:
return
if len(message) > 500:
await ctx.send("Reminder cannot be > 500 characters.", ephemeral=True)
await response.send("Reminder cannot be > 500 characters.", ephemeral=True)
return
elif invites.search(message):
await ctx.send(
await response.send(
"Listen, don't use this to try and bypass the rules",
ephemeral=True,
)
return
elif not valid.fullmatch(message):
await ctx.send("Hey, you should probably make this readable", ephemeral=True)
await response.send("Hey, you should probably make this readable", ephemeral=True)
return
settings = {