1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Change errors to be ephemeral

This commit is contained in:
Myned 2022-03-04 00:03:46 -06:00
parent bb05aa6d29
commit 9199099b61
No known key found for this signature in database
GPG key ID: 33790F979F7A28B8

View file

@ -78,7 +78,7 @@ async def on_reverse_error(event):
if error: if error:
try: try:
await event.context.respond(error) await event.context.respond(error, flags=hikari.MessageFlag.EPHEMERAL)
except: except:
await event.context.interaction.edit_initial_response(error, components=None) await event.context.interaction.edit_initial_response(error, components=None)