From a2a0e1608d42231ff6403bdd3bf918a0998fad62 Mon Sep 17 00:00:00 2001 From: Alex Ott <66271487+AlexanderHOtt@users.noreply.github.com> Date: Thu, 29 Dec 2022 15:45:01 -0800 Subject: [PATCH] fix: parse TaskRequestType enum correctly --- discord-bot/bot/extensions/work.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord-bot/bot/extensions/work.py b/discord-bot/bot/extensions/work.py index 5c191481..1175e4a5 100644 --- a/discord-bot/bot/extensions/work.py +++ b/discord-bot/bot/extensions/work.py @@ -37,7 +37,7 @@ logger.setLevel(logging.DEBUG) @lightbulb.implements(lightbulb.SlashCommand) async def work(ctx: lightbulb.SlashContext): """Create and handle a task.""" - task_type: TaskRequestType = TaskRequestType(ctx.options.type) + task_type: TaskRequestType = TaskRequestType(ctx.options.type.split(".")[-1]) await ctx.respond("Sending you a task, check your DMs", flags=hikari.MessageFlag.EPHEMERAL) logger.debug(f"task_type: {task_type!r}, task_type type {type(task_type)}")