From c0033f807fdf5178c0acb5b1e58f77e93fafaf55 Mon Sep 17 00:00:00 2001 From: MikuroXina Date: Sun, 21 Mar 2021 16:14:44 +0900 Subject: [PATCH] fix: Remove fetchErrorHandler --- src/bot/skin/fetch-error-handler.ts | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/bot/skin/fetch-error-handler.ts diff --git a/src/bot/skin/fetch-error-handler.ts b/src/bot/skin/fetch-error-handler.ts deleted file mode 100644 index f8375cb..0000000 --- a/src/bot/skin/fetch-error-handler.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { MessageEmbed } from "discord.js"; - -const yellow = 0xffc208; - -export const fetchErrorHandler = (send: (message: MessageEmbed) => void) => ( - reason: unknown, -): never => { - send( - new MessageEmbed() - .setColor(yellow) - .setTitle("通知データ取得のエラー発生") - .setDescription(reason), - ); - throw reason; -};