Skip to content

Commit

Permalink
Use the standard error embed
Browse files Browse the repository at this point in the history
  • Loading branch information
tiltowait committed Sep 12, 2021
1 parent 43a140b commit 0555b60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inconnu/character/delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import discord
from discord_ui import Button

from .. import common
from ..vchar import errors, VChar


Expand Down Expand Up @@ -41,7 +42,7 @@ async def prompt(ctx, character: str):
await msg.disable_components()

except errors.CharacterError as err:
await ctx.respond(str(err), hidden=True)
await common.display_error(ctx, ctx.author.display_name, err)


def __generate_prompt(ctx, char_name: str):
Expand Down

0 comments on commit 0555b60

Please sign in to comment.