Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Releases: Discord-Net-Labs/Discord.Net-Labs

v3.4.2

26 Nov 21:19
Compare
Choose a tag to compare

What's Changed

  • Improve the GuildFeatures converter by @d4n3436 in #311
  • Fix Message/User commands are not being executed when their name have spaces on it by @Cenngo in #310

Full Changelog: 3.4.1...3.4.2

v3.4.1

26 Nov 19:33
Compare
Choose a tag to compare

What's Changed

  • Fix SocketVoiceChannel options are created as generic mentionables in Interaction service by @Cenngo in #308

Full Changelog: 3.4.0...3.4.1

v3.4.0

26 Nov 16:21
Compare
Choose a tag to compare

This release brings along with it the new Interaction Service! Big thanks to @Cenngo. You can view the docs for it here

Changes

  • Updated summaries of interaction related classes.

Fixes

  • Fixed NRE when modifying allowed mentions.

PRs

New Contributors

Full Changelog: 3.3.3...3.4.0

v3.3.3

23 Nov 08:00
Compare
Choose a tag to compare

This version fixes a few bugs with some features and adds a few QOL changes.

Better errors

HttpException now is alot easier to work with, the DiscordCode property is now a DiscordErrorCode enum containing a list of all documented error codes allowing you to easily catch certain exceptions when needed ex:

try
{
    await user.Banasync();
}
catch(HttpException ex) when ex.DiscordCode == DiscordErrorCode.InsufficientPermissions
{
    // missing permission
}

I've also added a better way to view json errors using the new Errors property. You can access the list of errors and see their path within the json as well as the reason for the error.

Added

  • Added Emoji to roles
  • Added Invitable and Slowmode to thread creation
  • Added better discord errors.
  • Added UseInteractionSnowflakeDate to config

Fixes

  • Fixed preconditions using less than when they should be at most
  • Fixed rest resolvable data being lazy

Misc

  • Changed the minimum length of slash command names to 1

PRs

New Contributors

Full Changelog: 3.3.2...3.3.3

v3.3.2

21 Nov 14:37
Compare
Choose a tag to compare

Changes

  • Fixed autocomplete not accepting values
  • Added GuildScheduledEventUserAdd and GuildScheduledEventUserRemove
  • Added new Cacheable<> type for rest based gets while maintaining strong typed entities.

Full Changelog: 3.3.1...3.3.2

v3.3.1

21 Nov 07:14
Compare
Choose a tag to compare

Small fix to rest based interactions:

  • Slash commands will now have populated data.
  • Added ConfigureAwait(false) to async calls in rest based interactions

Full Changelog: 3.3.0...3.3.1

v3.3.0

19 Nov 10:50
Compare
Choose a tag to compare

Version 3.3.0 brings with it guild events and rest based interactions!

Guild Events

Guild events have been implemented into labs! you can find the docs here

Rest-based Http Interactions

You can now use http based interactions with the rest client.

string publicKey = "YOUR_APPS_PUBLIC_KEY";
var signature = request.Headers["X-Signature-Ed25519"];
var timestamp = request.Headers["X-Signature-Timestamp"];
var body = await new StreamReader(request.InputStream).ReadToEndAsync();

try
{
   RestInteraction interaction = await client.Rest.ParseHttpInteractionAsync(publicKey, signature, timestamp, body);
   // your code here
}
catch(BadSignatureException)
{
    // return a 401
}

Changelog

  • Added guild events.
  • Added Rest-based http interactions.
  • Added RTCRegion to voice channel properties.
  • Changed default sticker behavior. You can configure getting default stickers on startup and auto resolve stickers with AlwaysDownloadDefaultStickers and AlwaysResolveStickers.

Pull Requests

New Contributors

Full Changelog: 3.2.0...3.3.0

v3.2.0

09 Nov 05:40
Compare
Choose a tag to compare

3.2.0

3.2.0 comes with some quality of life changes and a few new features.

The main breaking change in this update is the new GuildFeatures class inside of guilds, it helps eliminate having to deal with your own collection of known guild features by exposing an enum containing them all. If your bot was dependent on the old method please make sure to update it.

I've also gone ahead and implemented multi file uploads and editing attachments including files on messages. You can now use SendFilesAsync and change the Attachments property when editing messages.

Changelog

Added

  • Added GetThreadMemberAsync implementation.
  • Added GuildFeatures to IGuild.
  • Added checks for gateway intent in some methods. DownloadUsersAsync will throw an exception if you don't have the gateway intent enabled locally now, this should help new people specify the correct intents locally.
  • Added strong types to GuildJoinRequestDeleted events.
  • Added SendFilesAsync to channels.
  • Added Attachments property to MessageProperties

Fixed

  • Fixed numeric type check for slash command options.
  • Fixed followup with file overwrite having incorrect parameter locations.
  • Fixed non value type options not being included in autocomplete

Misc

  • Renamed PARTY_PRIVACY_FRIENDS, PARTY_PRIVACY_VOICE_CHANNEL, and EMBEDDED to PartyPrivacyFriends, PartyPrivacyVoiceChannel, and Embedded in ActivityProperties.
  • Removed error log for gateway reconnects.

PRs

New Contributors

Full Changelog: 3.1.7...3.2.0

v3.1.7

20 Oct 09:37
Compare
Choose a tag to compare

Added

  • Added Icon property when modifying roles.
  • Added GuildAvatar and GetGuildAvatarUrl to IGuildUser.

Fixed

  • Fixed InvalidOperationException in modify guild channel.

Misc

  • Revert received at time, confirmed by discord staff to be accurate

Pull requests

  • FAQ revamped, metadata updated by @Rozen4334 in #241

Full Changelog: 3.1.6...3.1.7

v3.1.6

15 Oct 07:01
Compare
Choose a tag to compare

Tag building should fix nuget