goooldzik / discordmessage

dev-main 2022-01-23 14:03 UTC

This package is auto-updated.

Last update: 2024-09-23 19:56:28 UTC


README

Prerequisite Prerequisite Maintenance License: MIT

作者

👤 Patryk Kacprowicz

Opis

一个应用程序,用于通过 DiscordWebHook 在 Discord 服务器频道发送消息。该系统支持与 Discord 接口的完整集成,包括通过 HTTP 进行用户授权,无需使用外部库。

要求

  • PHP ^7.4|^8.0
  • ext-curl

使用

示例用法

    $discordMessage = $discordService
        ->title('Example title')
        ->description(['Line one', 'Line two', 'Line three', 'Line four'])
        ->color('#34495e')
        ->author('Goooldzik')
        ->authorUrl('https://github.com/Goooldzik')
        ->footer('DiscordMessage created by Goooldzik')
        ->footerIconUrl()
        ->image()
        ->discordWebhookUrl('https://discord.com/api/webhooks/xxxxxx')
        ->send();

支持

如果您觉得这个项目在某种程度上对您有帮助,请留下 ⭐️ 吧!