-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Simon Hjorthøj edited this page Dec 19, 2021
·
13 revisions
This is an addon for the Discord API Wrapper Discord.Net.
Make sure to use the preview version of this package if you are planning to use the preview of Discord.Net.
- Creating dynamic embed pages.
- Creating dynamic multi buttons.
- Multi buttons select.
- Removing all multi buttons messages and the select message..
- There is some Methods that will return either a DiscordID From either slash or normal commands.
- Same thing for GuildID.
- It does also contain FileUpload and SendMessages that both work with the slash and normal commands.
- Discord.net Preconditions.
- Markdown Utilities.
- String Utilities.
- More is to be added in the future.
To properly use the features this addon provides you need to add the EmbedPagesService
or MultiButtonsService
to your service provider depending on which part you want.
var provider = new ServiceCollection()
.AddSingleton<EmbedPagesService>() // For embedding pages.
.AddSingleton<MultiButtonsService>(); // For multi buttons.
....
public EmbedPagesService EmbedPagesService { get; set; }
public MultiButtonsService MultiButtonsService { get; set; }
private readonly EmbedPagesService _embedPagesService;
private readonly MultiButtonsService _multiButtonsService;
public CTOR(EmbedPagesService embedPagesService, MultiButtonsService multiButtonsService) {
_embedPagesService = embedPagesService;
_multiButtonsService = multiButtonsService;
}