WebhookNotifier

interface WebhookNotifier

Webhook通知を送信するためのインターフェース Discord等の外部サービスへイベント通知を行う

Functions

Link copied to clipboard
abstract fun isEventEnabled(eventType: WebhookEventType): Boolean

指定されたイベント種別の通知が有効かどうかを返す

Link copied to clipboard
abstract fun notify(eventType: WebhookEventType, title: String, description: String, color: Int, fields: List<Pair<String, String>> = emptyList())

通知を非同期で送信する(fire-and-forget) 該当イベントが有効なエンドポイントにのみ送信される

Link copied to clipboard
abstract fun shutdown()

リソースを解放する(CoroutineScope等のクリーンアップ)