An unofficial .Net wrapper for the Discord API (https://discord.com/)
MIT License
Bot releases are hidden (Show)
This release brings a bunch of new Discord feature as well as some fixes.
This release also brings initial support for User Apps.
Interaction framework example for user app commands is available on our docs.
Due to deprecation of these properties in the API the following parts of the library were marked as Obsolete
:
IsEnabledInDm
properties of application commands & their corresponding buildersContextTypes
should be used instead.EnabledInDmAttribute
CommandContextTypesAttribute
should be used instead.IMessage.Interaction
IUserMessage.InteractionMetadata
should be used istead.GetGuildIconUrl
CDN method (eb5678a)SetGameAsync
(ee386b1)SelectMenuBuilder
from a SelectMenuComponent
incorrectly set the CustomId
(6870ac5)InteractionService.AddModulesXAsync
command duplication (2787db3)MaxBitrate
and UploadLimit
in GuildHelper
(6256de4)Published by Misha-133 8 months ago
This release fixes a couple of bugs within the library and adds some new features.
AppliedTags
to DiscordWebhookClient.SendXAsync
(d382e5c)44
(Add message type 44) (541571c)SelectMenuBuilder
(b18cc31)GetEventCoverImageUrl
throwing NRE in case event cover image is null (138e18c)Published by quinchs 11 months ago
This release adds a bunch of new Discord features into the library, as well as fixes some bugs.
RespondWithModalAsync
methods and implement missing overloads (4e78aec)ModalBuilder
(8591de7)ToJsonString
& (Try)Parse
(7b5c40a)RoleConnectionProperties
(ab3b30d)GetDisplayAvatarUrl
in IUser
(b1787d8)Published by quinchs about 1 year ago
This release brings ease-of-life changes, bug fixes, and new methods for interacting with the Discord API.
When deferring modals, if the model was a response to a slash command, the modal will be deferred with DeferredChannelMessageWithSource
; opposed to DeferredUpdateMessage
which now allows proper deferration of modals (im making that a term now :D).
ComponentBuilder
component removal methods. (d5d7378)OpusEncodeStream
. (59094d2)remove
property to MemberRoleAudit
. (5fb9152)ModifyCurrentApplication
features (166d40f)ReplyAsync
methods missing MessageFlags
parameter. (56769cb)DeferAsync
implementation (5f580f6)UserUpdated
event (9dfd4d7)ModifyAsync
attachments #2236 (0c12079)GetMessagesAsync
with Direction.After
not working as expected (c922497)Published by quinchs over 1 year ago
This release adds the new username system support to Discord.Net, along with fixes and other minor changes.
Notes:
InviteGuild
was renamed to PartialGuild
(#2619)Audit Log Created
gateway event support (dff6a57)Message
property and UpdateAsync()
to IModalInteraction
(83dfa0c)MaxStageVideoChannelUsers
property to IGuild
(bdd755b)SafetyAlertsChannelId
to IGuild
(2112e1f)JsonProperty
attributes in params for modifying automod rules (9df4438)TypingStartedEvent
model to support Clyde (547bc92)DefaultRestClient
(84431de)THREAD_DELETE
(fe4130d)SlashCommandExecuted
event on failed result (fe9657a)NameLocalizations
) for ChoiceAttribute
(75ae488)ChannelPermissions.All()
exception on forums (6265dd5)SendMessageAsync
& SendFile(s)Async
methods & modify webhook message attachments (898ee56)channel
to channel_id
in interactions (d5ba7d2)@Misha-133
@gehongyan
@CollinHerber
@kaskii
@TrustNoOneElse
@Cenngo
@cjbonn
@ben-reilly
@KubaZ2
@bsdayo
@AnalogFeelings
@ThePheggHerself
@MichaelMcCarthy117
Published by quinchs over 1 year ago
This release adds AutoMod support, support for webhooks in forums, text-in-stage support, and much more. Notably, this release also fixes issues with voice related to the changes to Discords voice API.
SendFileAsync
to UserExtensions
(25cfb88)ClientDisconnect
event for audio client. (4cad546)OwnerId
to IThreadChannel
and RestThreadChannel
ActiveDeveloper
to UserProperies
TreatAsRegex
propertyRemoveModulesFromGuildAsync
(7acbcfd)RespondWithModal()
which accepts an IModal
instance as template (e7bda0f)GetCurrentUser
method to DiscordRestClient
(e3da96f)GetCurrentUserGuildMemberAsync
method to DiscordRestClient
and RestGuild
(e3da96f)GuildFeatures
property to IUserGuild
(e3da96f)Thread
property to RestMessage
(91e2084)Thread
property to IUserMessage
(0998285)IIntegrationChannel
(75f3c91)FollowAnnouncementChannelAsync
to INewsChannel
(bb056df)AddModalCommand
to ModalBuilder
with option to specify callback (50e0e59)GuildFeatures
to GuildProperties
(177df2c)DiscordWebhookClient
(e69e27a)IVoiceChannel
properties (76bb901)GetActiveThreadsAsync
& add it to ITextChannel
(bd2f719)reason
not being included in audit logs when calling AddBanAsync
and BanAsync
(e71faf7)CreatePost
methods for IForumChannel
(a53f1df)NullReferenceException
caused by Options being undefined. (02d3ce6)customId
template generator to escape regex metachars used in … (1602437)GetEventCoverImageUrl
(0af835a)DateTime
Boilerplate from LogMessage
(14b2901)Add/RemoveRolesAsync
methods (11481a1)Published by quinchs almost 2 years ago
This release properly implements all forum features and fixes a major issue with socket connections. Additionally, TimestampTag
has received a functionality revision, which may be cause for minor refactor when compiling against the new version.
Thanks to the following contributors for this release
GetActiveThreadsAsync
& add it to ITextChannel
(bd2f719)MessageContent
intent & update v2 => v3 guide
(a4d34f6)Published by quinchs about 2 years ago
This release introduces bug fixes mainly targeting the ones related to App Command localizations. This release additionally changes the target API version of the library.
Thanks to the following contributers for this release
Published by quinchs about 2 years ago
This version changes the method signature of every Get*ApplicationCommandsAsync
method to feature two new parameters (withLocalizations
, locale
), see commit 39bbd29.
Additionally, the method signature of every Send*
method of IRestClient
now accepts a new requestHeaders
parameter, custom implementations of IRestClient
need to be updated.
Thanks to the following contributers for this release
RespondWithModalAsync<IModal>()
without prior IModal declaration (500e7b4)ILocalizationManager
to IF (39bbd29)RequiredInput
attribute to example in int.framework intro (ee6e0ad)IgnoreGroupNames
to IF docs (cf25acd)Published by quinchs over 2 years ago
Published by quinchs over 2 years ago
This release fixes bugs with voice channel permissions and an NRE in GuildMemberUpdated
Published by quinchs over 2 years ago
This release brings with it Text-In-Voice channel support and Forum channel support as well as bug fixes.
Users
has been changed to ConnectedUsers
within voice channels. The Users
property now gets all users who can view the channel rather than the connected users.
Thanks to the following contributors for this release
.With
methods to ActionRowBuilder (13ccc7c)IDiscordClient.GetUserAsync
impl in DiscordSocketClient
(f47f319)Published by quinchs over 2 years ago
This release fixes a json Invalid Operation Exception when using the new permissions v2 system.
Published by quinchs over 2 years ago
This release brings along the long awaited V2 permission system into the interaction service.
This release is compatible with 3.5.0 and should not require code adaptation.
SlashCommandBuilder
/SlashCommandOptionBuilder
(0554ac2)Published by quinchs over 2 years ago
This release brings with it bug fixes and API changes.
This release changes the IGuild.GetBansAsync
behavior per this commit. Any code referencing the get guild bans functions must be updated to the newer version supporting pagination.
Thanks to the following contributors for this release
RespondWithModalAsync<T>()
for modifying the modal (d2118f0)before
entity being incorrect (bfd0d9b)Published by quinchs over 2 years ago
This release fixes some bugs as well as adds some minor features.
This release removes one of the CreateRoleAsync
methods on the SocketGuild/RestGuild classes. The reason for this is without fully qualifying all the parameters there was a ambiguous reference, see #2181
Please make sure your codebase uses the correct CreateRoleAsync
function.
Published by quinchs over 2 years ago
This release brings with it Complex parameters to the interaction service (docs here). This release also adds support for sending MessageFlags
with messages, currently only MessageFlags.SuppressEmbeds
is supported.
This version changes the method signature of SendMessageAsync
, any third party libraries using this method will need to be updated. Besides the method change all the rest of the changes are additions + bug fixes, this version is compatible with code from 3.3.2
Thanks to the following contributors for this release
Published by quinchs over 2 years ago
This release fixes a critical bug related to sharded clients and ratelimits
Published by quinchs over 2 years ago
This release fixes a few impactful bugs including bots not being able to receive interactions in dms.
Published by quinchs over 2 years ago
This release adds support for Modals and Slash Command file parameters.
Check out the getting started guide for modals and text input component docs.
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}");
}