mc-cms-namelessmc/core/classes/Events/DiscordDispatchable.php
Sam 6f15e14392
chore: fix styleci (#3588)
Co-authored-by: Sam <samerton@users.noreply.github.com>
2025-03-29 10:50:03 +00:00

19 lines
453 B
PHP

<?php
/**
* Represents an event which is able to be sent as a Discord embed.
*
* @package NamelessMC\Events
* @author Aberdeener
* @version 2.2.0
* @license MIT
*/
interface DiscordDispatchable
{
/**
* Build a Discord webhook to represent the event as a Discord embed.
*
* @return DiscordWebhookBuilder The webhook builder to send the event as an embed
*/
public function toDiscordWebhook(): DiscordWebhookBuilder;
}