Files
animethemes-server/app/Contracts/Events/DiscordMessageEvent.php
T
paranarimasu 088ea287c5 feat: initial migration to pennant features for feature flags and global site config [incremental] (#573)
* feat: initial commit for feature management

* style: fix StyleCI findings

* fix(api): prohibit features of nonnull scope from API & fix(admin): wrong translate key

* style: fix Static Analysis error
2023-04-23 18:54:34 -05:00

35 lines
635 B
PHP

<?php
declare(strict_types=1);
namespace App\Contracts\Events;
use NotificationChannels\Discord\DiscordMessage;
/**
* Interface DiscordMessageEvent.
*/
interface DiscordMessageEvent
{
/**
* Get Discord message payload.
*
* @return DiscordMessage
*/
public function getDiscordMessage(): DiscordMessage;
/**
* Get Discord channel the message will be sent to.
*
* @return string
*/
public function getDiscordChannel(): string;
/**
* Determine if the message should be sent.
*
* @return bool
*/
public function shouldSendDiscordMessage(): bool;
}