import { Injectable } from "@nestjs/common" ; import { InjectSlack } from "nestjs-slack-webhook" ; import { IncomingWebhook , IncomingWebhookSendArguments } from "@slack/webhook" ; @ Injectable ( ) export class NotifyService { constructor ( @ InjectSlack ( ) private readonly slack ) { } async notify ( args ) { await this . slack . send ( args ) ; } }