Skip to content

v4.3.0

Choose a tag to compare

@Francessco121 Francessco121 released this 03 Oct 21:20
· 98 commits to master since this release

Additions

New Channel Types (#64)

  • Added DiscordChannelType.GuildNews
  • Added DiscordChannelType.GuildStore

New Invite Properties (#58)

  • Added DiscordInvite.TargetUser
  • Added DiscordInvite.TargetUserType
  • Added DiscordInvite.ApproximatePresenceCount
  • Added DiscordInvite.ApproximateMemberCount
  • Added new enum DiscordInviteTargetUserType

New GetInvite Parameter

DiscordHttpClient.GetInvite now has a new optional parameter withCounts, which when specified as true will return a DiscordInvite with both ApproximatePresenceCount and ApproximateMemberCount filled out.

New Guild Properties (#62)

  • Added DiscordGuild.MaxPresences
  • Added DiscordGuild.MaxMembers
  • Added DiscordGuild.VanityUrlCode
  • Added DiscordGuild.Description
  • Added DiscordGuild.Banner
  • Added DiscordGuild.PremiumTier
  • Added DiscordGuild.PremiumSubscriptionCount
  • Added new enum GuildPremiumTier
  • Added DiscordCdnUrl.ForGuildBanner
  • Added DiscordCdnUrlType.GuildBanner

Constants For Guild Features (#63)

  • A new static class is available named DiscordGuildFeature which contains constants for each guild feature such as "ANIMATED_ICON".
  • Added DiscordGuild.HasFeature as an alternative to searching DiscordGuild.Features

New Message Metadata (#65)

  • Added DiscordMessage.Member
  • Added DiscordMessage.MentionedChannels (note: this is only available for crossposted messages)
  • Added DiscordMessage.Activity
  • Added DiscordMessage.Application
  • Added DiscordMessage.MessageReference
  • Added DiscordMessage.Flags
  • Added new enum DiscordMessageActivityType
  • Added new enum DiscordMessageFlags
  • Added new class DiscordChannelMention
  • Added new class DiscordMessageActivity
  • Added new class DiscordMessageApplication
  • Added new class DiscordMessageMember
  • Added new class DiscordMessageReference

New Message Types (#66)

  • Added DiscordMessageType.UserPremiumGuildSubscription
  • Added DiscordMessageType.UserPremiumGuildSubscriptionTier1
  • Added DiscordMessageType.UserPremiumGuildSubscriptionTier2
  • Added DiscordMessageType.UserPremiumGuildSubscriptionTier3
  • Added DiscordMessageType.ChannelFollowAdd

Guild Member Permission Extensions (#67)

All of the existing methods in DiscordPermissionHelper are now available as extension methods off of DiscordGuildMember.

  • Added ext DiscordGuildMember.HasPermission
  • Added ext DiscordGuildMember.AssertPermission

Changes

Deprecated API For Listing Open DM Channels

Bots have not been able to use API features related to listing open DM channels for a while now.

  • Deprecated DiscordHttpClient.GetUserDMs

Deprecated OAuth2-only User Properties

Bots never had access to some user properties that have been in Discore for a while, these are now deprecated. If Discore ever adds full support for OAuth2 applications, these will come back. For now, since these properties will always be null, they will be marked as obsolete as a warning that they shouldn't be relied upon currently.

  • Deprecated DiscordUser.HasTwoFactorAuth
  • Deprecated DiscordUser.IsVerified
  • Deprecated DiscordUser.Email

Rate Limit Improvements (#55, #57)

  • Discore now correctly handles rate-limit buckets, this will further reduce the chance 429 encounters
  • All API requests now take advantage of the new millisecond precision for rate-limit timestamps

Miscellaneous

  • Discore will now log a warning if a Gateway connection ends up with different shard information than what was specified during the connection. This should never (and probably will not) ever happen, but now will properly be logged if it does.

Updated Dependencies

  • ConcurrentHashSet: 1.0.2 -> 1.1.0
  • Newtonsoft.Json: 10.0.3 -> 12.0.2
  • Nito.AsyncEx.Coordination: 1.0.2 -> 5.0.0
  • System.ValueTuple: 4.4.0 -> 4.5.0

NuGet

Version 4.3.0 can be downloaded via NuGet here.