mrgoodbytes8667/discord-interaction-bundle

一个提供Discord应用命令交互事件的Symfony包

v0.15.0 2023-04-18 21:49 UTC

This package is auto-updated.

Last update: 2024-08-30 01:12:30 UTC


README

Packagist Version PHP from Packagist Symfony Versions Supported Symfony Versions Tested Symfony LTS Version Symfony Stable Version Symfony Dev Version GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status codecov Packagist License
一个提供Discord应用命令交互事件的Symfony包

安装

确保Composer已全局安装,具体安装方法请参考Composer文档中的安装章节

使用Symfony Flex的应用程序

打开命令行控制台,进入您的项目目录并执行

$ composer require mrgoodbytes8667/discord-interaction-bundle

未使用Symfony Flex的应用程序

步骤 1:下载Bundle

打开命令行控制台,进入您的项目目录,并执行以下命令以下载此Bundle的最新稳定版本

$ composer require mrgoodbytes8667/discord-interaction-bundle

步骤 2:启用Bundle

然后,通过将其添加到项目config/bundles.php文件中注册的Bundle列表中来启用Bundle

// config/bundles.php

return [
    // ...
    Bytes\DiscordInteractionBundle\BytesDiscordInteractionBundle::class => ['all' => true],
];

注意:此Bundle依赖于Enum-Serializer-Bundle,并且还需要遵循其设置说明

许可证

License
MrGoodBytes开发的discord-interaction-bundle许可协议为Creative Commons Attribution-NonCommercial 4.0 International License
基于https://github.com/mrgoodbytes8667/discord-interaction-bundle的作品。