Discord.Net Versions Save

An unofficial .Net wrapper for the Discord API (https://discord.com/)

3.7.1

1 year ago

[3.7.1] - 2022-5-27

This release fixes bugs with voice channel permissions and an NRE in GuildMemberUpdated

Added

  • #2325 Add missing interaction properties (d3a693a)
  • #2330 Add better call control in ParseHttpInteraction (a890de9)

Fixed

  • #2329 Voice perms not retaining text perms. (712a4ae)
  • #2331 NRE with Cacheable.DownloadAsync() (e1f9b76)

3.7.0

1 year ago

[3.7.0] - 2022-05-24

This release brings with it Text-In-Voice channel support and Forum channel support as well as bug fixes.

Upgrade Path

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

  • @Almighty-Shogun
  • @Cenngo
  • @Misha-133
  • @MJHeijster
  • @moiph
  • @nkpetko
  • @openmilk
  • @Rozen4334
  • @sabihoshi
  • @serkanyazicioglu
  • @ShineSyndrome
  • @SubZero0
  • @Tripletri

Added

  • #2269 Text-In-Voice (23656e8)
  • #2281 Optional API calling to RestInteraction (a24dde4)
  • #2283 Support FailIfNotExists on MessageReference (0ec8938)
  • #2284 Add Parse & TryParse to EmbedBuilder & Add ToJsonString extension (cea59b5)
  • #2289 Add UpdateAsync to SocketModal (b333de2)
  • #2291 Webhook support for threads (b0a3b65)
  • #2295 Add DefaultArchiveDuration to ITextChannel (1f01881)
  • #2296 Add .With methods to ActionRowBuilder (13ccc7c)
  • #2307 Add Nullable ComponentTypeConverter and TypeReader (6fbd396)
  • #2316 Forum channels (7a07fd6)

Fixed

  • #2290 Possible NRE in Sanitize (20ffa64)
  • #2293 Application commands are disabled to everyone except admins by default (b465d60)
  • #2299 Close-stage bucketId being null (725d255)
  • #2313 Upload file size limit being incorrectly calculated (54a5af7)
  • #2319 Use IDiscordClient.GetUserAsync impl in DiscordSocketClient (f47f319)
  • #2320 NRE with bot scope and user parameters (88f6168)

3.6.1

2 years ago

[3.6.1] - 2022-04-30

This release fixes a json Invalid Operation Exception when using the new permissions v2 system.

Added

  • #2272 add 50080 Error code (503e720)

Fixed

  • #2267 Permissions v2 Invalid Operation Exception (a8f6075)
  • #2271 null user on interaction without bot scope (f2bb55e)
  • #2274 Implement fix for Custom Id Segments NRE (0d74c5c)

Misc

  • 3.6.0 (27226f0)

3.6.0

2 years ago

[3.6.0] - 2022-04-28

This release brings along the long awaited V2 permission system into the interaction service.

Upgrade path

This release is compatible with 3.5.0 and should not require code adaptation.

Added

  • #2136 Passing CustomId matches into contexts (4ce1801)
  • #2222 V2 Permissions (d98b3cc)

Fixed

  • #2260 Guarding against empty descriptions in SlashCommandBuilder/SlashCommandOptionBuilder (0554ac2)
  • #2248 Fix SocketGuild not returning the AudioClient (daba58c)
  • #2254 Fix browser property (275b833)

3.5.0

2 years ago

[3.5.0] - 2022-04-05

This release brings with it bug fixes and API changes.

Upgrade path

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

  • @Almighty-Shogun
  • @Rozen4334
  • @Suchiman
  • @d4n3436
  • @drobbins329
  • @FeroxFoxxo
  • @Cenngo
  • @clarotech
  • @TricolorHen061
  • @dukesteen

Added

  • #2204 Added config option for bidirectional formatting of usernames (e38104b)
  • #2210 Add a way to remove type readers from the interaction/command service. (7339945)
  • #2213 Add global interaction post execution event. (a744948)
  • #2223 Add ban pagination support (d8757a5)
  • #2201 Add missing interface methods to IComponentInteraction (741ed80)
  • #2226 Add an action delegate parameter to RespondWithModalAsync<T>() for modifying the modal (d2118f0)
  • #2227 Add RespondWithModal methods to RestInteractinModuleBase (1c680db)

Fixed

  • #2168 Fix Integration model from GuildIntegration and added INTEGRATION gateway events (305d7f9)
  • #2187 Fix modal response failing (d656722)
  • #2188 Fix serialization error on thread creation timestamp. (d48a7bd)
  • #2209 Fix GuildPermissions.All not including newer permissions (91d8fab)
  • #2219 Fix ShardedClients not pushing PresenceUpdates (c4131cf)
  • #2225 Fix GuildMemberUpdated cacheable before entity being incorrect (bfd0d9b)
  • #2217 Fix gateway interactions not running without bot scope. (8522447)

Misc

  • #2193 Update GuildMemberUpdated comment regarding presence (82473bc)
  • #2206 Fixed typo (c286b99)
  • #2216 Fix small typo in modal example (0439437)
  • #2228 Correct minor typo (d1cf1bf)

3.4.1

2 years ago

[3.4.1] - 2022-03-9

This release fixes some bugs as well as adds some minor features.

Upgrade path

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.

Added

  • #2169 Component TypeConverters and CustomID TypeReaders (fb4250b)
  • #2180 Attachment description and content type (765c0c5)
  • #2162 Add configuration toggle to suppress Unknown dispatch warnings (1ba96d6)
  • #2178 Add 10065 Error code (cc6918d)

Fixed

  • #2179 Logging out sharded client throws (24b7bb5)
  • #2182 Thread owner always returns null (25aaa49)
  • #2165 Fix error with flag params when uploading files. (a5d3add)
  • #2181 Fix ambiguous reference for creating roles (f8ec3c7)

3.4.0

2 years ago

[3.4.0] - 2022-3-2

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.

Upgrade Path

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

  • @sabihoshi
  • @Cenngo
  • @EpicOfficer
  • @CottageDwellingCat
  • @d4n3436

Added

  • #2146 Add FromDateTimeOffset in TimestampTag (553055b)
  • #2062 Add return statement to precondition handling (3e52fab)
  • #2131 Add support for sending Message Flags (1fb62de)
  • #2137 Add self_video to VoiceState (8bcd3da)
  • #2151 Add Image property to Guild Scheduled Events (1dc473c)
  • #2152 Add missing json error codes (202554f)
  • #2153 Add IsInvitable and CreatedAt to threads (6bf5818)
  • #2155 Add Interaction Service Complex Parameters (9ba64f6)
  • #2156 Add Display name support for enum type converter (c800674)

Fixed

  • #2117 Fix stream access exception when ratelimited (a1cfa41)
  • #2128 Fix context menu comand message type (f601e9b)
  • #2135 Fix NRE when ratelimmited requests don't return a body (b95b942)
  • #2154 Fix usage of CacheMode.AllowDownload in channels (b3370c3)

Misc

  • #2149 Clarify Users property on SocketGuildChannel (5594739)
  • #2157 Enforce valid button styles (507a18d)

3.3.2

2 years ago

[3.3.2] - 2022-02-16

This release fixes a critical bug related to sharded clients and ratelimits

Fixed

  • #2116 Fix null rest client in shards
  • #2117 Fix attempt to read ratelimit body stream twice

3.3.1

2 years ago

[3.3.1] - 2022-02-16

This release fixes a few impactful bugs including bots not being able to receive interactions in dms.

Added

  • #2107 Add DisplayName property to IGuildUser. (abfba3c)

Fixed

  • #2110 Fix incorrect ratelimit handles for 429's (b2598d3)
  • #2094 Fix ToString() on CommandInfo (01735c8)
  • #2098 Fix channel being null in DMs on Interactions (7e1b8c9)
  • #2100 Fix crosspost ratelimits (fad217e)
  • #2108 Fix being unable to modify AllowedMentions with no embeds set. (169d54f)
  • #2109 Fix unused creation of REST clients for DiscordShardedClient shards. (6039378)

Misc

  • #2099 Update interaction summaries (503d32a)

3.3.0

2 years ago

[3.3.0] - 2022-02-09

This release adds support for Modals and Slash Command file parameters.

Modals

Check out the getting started guide for modals and text input component docs.

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}");
        }

Added

  • #2087 Add modals (c8f175e)
  • #2088 Add support for slash command attachment type (33efd89)

Fixed

  • #2091 Fix modifying attachments on interactions and extend the module base (97e54e1)
  • #2076 Fix rest message components cannot pass through execute method (b45aebf)
  • #2077 Fix clone being created on updated entity (7d6f4f3)
  • #2092 Fix Current user null on reconnect (b424bb2)
  • #2089 Fix guild feature enum (d142710)
  • #2090 Fix attempts to fetch channels in interactions (6290f75)

Misc

  • #1713 Simplify code in DiscordComparers (43b20bc)
  • #2079 Add IEnumerable collection parameters instead of arrays for MessageExtensions (75e94fe)