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: except asyncio.TimeoutError:
return return
if len(message) > 500: 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 return
elif invites.search(message): elif invites.search(message):
await ctx.send( await response.send(
"Listen, don't use this to try and bypass the rules", "Listen, don't use this to try and bypass the rules",
ephemeral=True, ephemeral=True,
) )
return return
elif not valid.fullmatch(message): 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 return
settings = { settings = {