Global.Discord
1.1.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Global.Discord --version 1.1.4
NuGet\Install-Package Global.Discord -Version 1.1.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Global.Discord" Version="1.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Global.Discord --version 1.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Global.Discord, 1.1.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Global.Discord as a Cake Addin #addin nuget:?package=Global.Discord&version=1.1.4 // Install Global.Discord as a Cake Tool #tool nuget:?package=Global.Discord&version=1.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Global.Discord
Setup a discord bot in C# in less than 5 minutes with this quick and easy package.
This is an educational tool to help beginner Discord.Net Developers learn quickly, it is not a permanent replacement for a command handler class and should not be used as such.
Usage:
In your Program.cs simply copy and paste this:
public class Program { public static void Main(string[] args) ⇒ new Program().ProgramAsync().GetAwaiter().GetResult();
public DiscordSocketClient _Client;
public CommandService _Commands;
public IServiceProvider _Services;
public async Task ProgramAsync()
{
var PublicClient = new DiscordSocketClient();
var Engine = new DiscordEngine();
var Client = await Engine.StartupAsync("Configuration.json", PublicClient);
_Client = Client;
_Commands = new CommandService();
_Services = Engine.ConfigureServices(_Client,_Commands);
await _Commands.AddModulesAsync(Assembly.GetEntryAssembly(), _Services);
var count = _Commands.Commands as List<CommandInfo>;
await Task.Delay(-1);
}
To add an event simple add
_Client.EventNameHere += MethodNameHere;
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Discord.Net (>= 2.4.0)
- Discord.Net.Commands (>= 2.4.0)
- Discord.Net.Core (>= 2.4.0)
- Discord.Net.Rest (>= 2.4.0)
- Discord.Net.Webhook (>= 2.4.0)
- Discord.Net.WebSocket (>= 2.4.0)
- Global.Addons.SkillMenu (>= 1.0.3)
- Microsoft.Extensions.DependencyInjection (>= 5.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.