class DiscordService

Service for sending alerts via Discord.

This service handles the dispatching of messages to Discord webhooks, supporting proxy and verification configurations.

Properties

protected Client $client

Methods

void
__construct()

Create a new service instance.

void
sendMessage(string $content, string $botKey = 'default')

Send a message to a Discord channel via webhook.

Details

at line 25
void __construct()

Create a new service instance.

Return Value

void

at line 35
void sendMessage(string $content, string $botKey = 'default')

Send a message to a Discord channel via webhook.

Parameters

string $content

The message content

string $botKey

The configuration key for the bot/webhook (defaults to 'default')

Return Value

void

Exceptions

GuzzleException