An unofficial .Net wrapper for the Discord API (https://discord.com/)
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)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)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)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)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
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)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)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
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)