Releases: Discord-Net-Labs/Discord.Net-Labs
v3.4.2
v3.4.1
v3.4.0
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
- Add Audit Log Data classes for Threads by @PoolPirate in #301
- Interaction Command Service by @Cenngo in #52
New Contributors
- @PoolPirate made their first contribution in #301
Full Changelog: 3.3.3...3.4.0
v3.3.3
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
andSlowmode
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
- Make RestUserCommand public by @d4n3436 in #292
- Fix Components not showing on FollowUpWithFile (#288) by @exsersewo in #293
- Implement Better Discord Errors by @quinchs in #291
- Change the minimum length of slash commands to 1 by @pdelvo in #284
- Fix ratelimit timings by @quinchs in #297
New Contributors
Full Changelog: 3.3.2...3.3.3
v3.3.2
Changes
- Fixed autocomplete not accepting values
- Added
GuildScheduledEventUserAdd
andGuildScheduledEventUserRemove
- Added new
Cacheable<>
type for rest based gets while maintaining strong typed entities.
Full Changelog: 3.3.1...3.3.2
v3.3.1
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
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
andAlwaysResolveStickers
.
Pull Requests
- Support Min and Max values on ApplicationCommandOptions by @CottageDwellingCat in #273
- Logomark, doc settings edit by @Rozen4334 in #258
- Automatically fix ordering of optional command options by @CottageDwellingCat in #276
- Fix maximum number of Select Menu Options by @Floowey in #282
- Interaction Specific Interfaces by @Cenngo in #283
- Add Guild Scheduled Events by @quinchs in #279
New Contributors
Full Changelog: 3.2.0...3.3.0
v3.2.0
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
toIGuild
. - 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 toMessageProperties
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
, andEMBEDDED
toPartyPrivacyFriends
,PartyPrivacyVoiceChannel
, andEmbedded
inActivityProperties
. - Removed error log for gateway reconnects.
PRs
- Added new activity flags by @BillChirico in #254
- Added support for GUILD_JOIN_REQUEST_DELETE event by @WilliamWelsh in #253
- Added BotHTTPInteraction user flag by @drobbins329 in #252
- Added support for animated guild banners by @MrCakeSlayer in #255
- Docs work (WIP) by @Rozen4334 in #242
- Added student hub guild directory channel by @MrCakeSlayer in #256
- Removed BannerId and AccentColor by @Liege72 in #260
- Support Guild Boost Progress Bars by @CottageDwellingCat in #262
- Added missing values to SystemChannelMessageDeny by @CottageDwellingCat in #267
- Amend creating slash command guide by @drobbins329 in #269
- Added state checking to ConnectionManager.StartAsync by @CottageDwellingCat in #272
New Contributors
- @BillChirico made their first contribution in #254
- @Liege72 made their first contribution in #260
Full Changelog: 3.1.7...3.2.0
v3.1.7
Added
- Added
Icon
property when modifying roles. - Added
GuildAvatar
andGetGuildAvatarUrl
toIGuildUser
.
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