Skip to content

Releases: discord-net/Discord.Net

v3.6.0

28 Apr 15:28
Compare
Choose a tag to compare

[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

Fixed

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

v3.5.0

05 Apr 19:23
Compare
Choose a tag to compare

[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

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

v3.4.1

09 Mar 21:36
Compare
Choose a tag to compare

[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

Fixed

v3.4.0

03 Mar 00:14
Compare
Choose a tag to compare

[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

Added

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

v3.3.2

16 Feb 15:16
a1cfa41
Compare
Choose a tag to compare

[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

v3.3.1

16 Feb 12:56
Compare
Choose a tag to compare

[3.3.1] - 2022-02-16

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

Added

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

v3.3.0

09 Feb 04:34
Compare
Choose a tag to compare

[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

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)

v3.2.1

30 Jan 07:18
Compare
Choose a tag to compare

[3.2.1] - 2022-01-30

This release contains a few bug fixes related to the library itself.

Thanks to the following contributors for this release

Added

Fixed

  • #2030 Fix logging a TaskCanceledException out of users control (82f3879)
  • #2064 Fix markdown formatting in Glossary (f525131)
  • #2066 Fix Channel Types Attribute (1917961)
  • #2071 Fix attempt to get application info for non-bot tokens (37ada59)
  • #2072 Fix thread member download on create (09eb9fa)
  • #2063 Fix stream position not being zero when uploading files (6dada66)

Misc

  • #2059 Update HttpException to display inner-errors on the HttpException.Message for better debugging (5773b8e)

v3.2.0

15 Jan 10:13
Compare
Choose a tag to compare

[3.2.0] - 2022-01-15

This release contains new features of the Discord API and general library fixes. It also adds a new config option called DefaultRatelimitCallback allowing you to view your ratelimits.

Thanks to the following for their contributions in this release:

Upgrade Path

This is a minor release, and is compatible when recompiling from v3.1.0

Added

  • #2015 Add user-built AddCommand overloads to ModuleBuilder (68e3bed)
  • #2016 Add Construct Method to InteractionModuleBase and Fix NRE on User-Built Module Creation (4ed4718)
  • #2035 Add GetChannelType extension method (64423a0)
  • #2036 Add missing guild features (7075d4e)
  • #2037 Add default ratelimit callback (4d9389b)
  • #2038 Add AddRow and WithRows to ComponentBuilder (3429cf9)
  • #2040 Add user locale & guild locale in interactions (2731e20)
  • #2041 Add search methods to InteractionService (9a52d05)

Fixed

  • #1562 Fix OperationCancelledException and add IAsyncEnumerable to wait without thread blocking (cd36bb8)
  • #2014 Fix InteractionContext.Guild (944a0de)
  • #2023 Fix ModifyAsync when only modifying a message's flags (e3eb0a9)
  • #2025 Fix IsTopLevelCommand returning the wrong value (4b7cda0)
  • #2031 Fix DefaultChannel to exclude threads (a06ba9f)
  • #2033 Fix Interaction delete original response throwing 404 (291d1e4)
  • #2034 Fix exception when uploading files with non seekable streams (7f4feea)
  • #2044 Fix ApplicationId not being used for interactions (c682564)
  • #2045 Fix argument null exception on Message Create (a07531f)
  • #2046 Fix ThreadMember null ref in constructor (bcd5fa4)

Misc

  • #2018 Match argument defaults with IDiscordInteraction on SocketInteraction (093e548)
  • #2024 Remove .ToLower from group name registration (9594ccc)
  • #2042 Move gateway intents warning to ready event (3633929)

v3.1.0

24 Dec 20:36
Compare
Choose a tag to compare

This release brings with it bug fixes as well as guild member timeouts.

Added

Fixed

Misc

  • #1994 Make HasResponded public and add it to IDiscordInteraction (1fbcbb8)
  • #1997 Make module service scopes optional (cb1aad3)

Full Changelog: 3.0.0...3.1.0