v3.3.0
Published on February 9, 2022 by Quin Lynch
3.3.0
This release adds support for Modals and Slash Command file parameters.
Modals
Check out the getting started guide for modals https://discordnet.dev/guides/int_basics/modals/intro.html and text input component docs https://discordnet.dev/guides/int_basics/message-components/text-input.html.
Slash Command File Parameters
Currently theres no docs for this yet but its relativly simple to include in your slash command handlers
[SlashCommand("attachment", "test an attachment")] public async Task AttachmentAsync([Summary("file", "The attachment to upload")]IAttachment attachment) { await RespondAsync($"Got {attachment.Filename}! {attachment.ProxyUrl}"); }
Checkout the full changelog https://github.com/discord-net/Discord.Net/releases/tag/3.3.0