Discord.Net.Extensions.Interactions 1.1.0
dotnet add package Discord.Net.Extensions.Interactions --version 1.1.0
NuGet\Install-Package Discord.Net.Extensions.Interactions -Version 1.1.0
此命令旨在在 Visual Studio 的包管理器控制台中使用,因为它使用 NuGet 模块的 Install-Package。
<PackageReference Include="Discord.Net.Extensions.Interactions" Version="1.1.0" />
对于支持 PackageReference 的项目,将此 XML 节点复制到项目文件中,以引用包。
paket add Discord.Net.Extensions.Interactions --version 1.1.0
NuGet 团队不提供对此客户端的支持。请联系其 管理员 获取支持。
#r "nuget: Discord.Net.Extensions.Interactions, 1.1.0"
#r 指令可用于 F# Interactive 和 Polyglot Notebooks. 将此复制到交互工具或脚本的源代码中,以引用包。
// Install Discord.Net.Extensions.Interactions as a Cake Addin #addin nuget:?package=Discord.Net.Extensions.Interactions&version=1.1.0 // Install Discord.Net.Extensions.Interactions as a Cake Tool #tool nuget:?package=Discord.Net.Extensions.Interactions&version=1.1.0
NuGet 团队不提供对此客户端的支持。请联系其 管理员 获取支持。
Discord.Net.Extensions.Interactions
<p align="center"> <a href="https://nuget.net.cn/packages/Discord.Net.Extensions.Interactions/"> <img src="https://img.shields.io/nuget/v/Discord.Net.Extensions.Interactions?style=flat" alt="NuGet"> </a> <a href="https://discord.gg/dnet"> <img src="https://discord.com/api/guilds/848176216011046962/widget.png" alt="Discord"> </a> </p>
一个为 Discord.Net .Interactions 包提供附加功能的扩展。
安装
功能
示例
仅限服务器的命令
从 InteractionModuleBase
继承的命令模块可以用 [GuildModule]
属性标记,以便仅在提供了 IDs 的服务器中注册,而所有其他模块将全局注册。
[GuildModule(123456, 69696969, 1337)]
public class ExampleModule : InteractionModuleBase<SocketInteractionContext>
{
}
使用 interactionService.RegisterCommandsAsync
扩展方法来注册命令。
await interactionService.RegisterCommandsAsync();
支持
还有问题或想要请求功能?请通过 Discord.Net Discord 服务器联系我
产品 | 版本 兼容和额外的目标框架版本。 |
---|---|
.NET | net6.0兼容。 net6.0-android已计算。 net6.0-ios已计算。 net6.0-maccatalyst已计算。 net6.0-macos已计算。 net6.0-tvos已计算。 net6.0-windows已计算。 net7.0已计算。 net7.0-android已计算。 net7.0-ios已计算。 net7.0-maccatalyst已计算。 net7.0-macos已计算。 net7.0-tvos已计算。 net7.0-windows已计算。 net8.0已计算。 net8.0-android已计算。 net8.0-browser已计算。 net8.0-ios已计算。 net8.0-maccatalyst已计算。 net8.0-macos已计算。 net8.0-tvos已计算。 net8.0-windows已计算。 |
-
net6.0
- Discord.Net.Interactions (>= 3.11.0)
NuGet包
此包未由任何NuGet包使用。
GitHub仓库
此包未由任何流行的GitHub仓库使用。