Skip to content

v4.5.0

Choose a tag to compare

@Francessco121 Francessco121 released this 10 Dec 01:31
· 81 commits to master since this release
5cf2110

This release adds support for some small newer Discord API features, such as getting custom user statuses and creating reply messages.

New Message Create/Edit Options (#85)

  • Added AllowedMentions property to CreateMessageOptions and EditMessageOptions for avoiding accidental mentions in messages.
  • Added CreateMessageOptions.MessageReference for creating reply messages.
  • Added new DiscordMessageFlags:
    • SourceMessageDeleted
    • Urgent
    • HasThread
    • Ephemeral
    • Loading

New DiscordGame (Activity) Properties (#92)

Information such as custom user statuses and rich presence details can now be read.

  • Added new DiscordGame properties:
    • CreatedAt
    • Timestamps
    • ApplicationId
    • Details
    • State
    • Emoji
    • Party
    • Assets
    • Secrets
    • Instance
    • Flags
    • Buttons
  • Added new DiscordGameTypes:
    • Listening
    • Watching
    • Custom
    • Competing

New GuildPrune Parameters (#84)

  • Added includeRoles parameter to GetGuildPruneCount and BeginGuildPrune for pruning users with specific roles.
  • Added computePruneCount parameter to BeginGuildPrune to allow reduced execution time for large guilds.
  • The days parameter of GetGuildPruneCount and BeginGuildPrune is now nullable (when null Discord will use their own default).

New CDN URL Builders (#95)

  • Added new static DiscordCdnUrl builders and their DiscordCdnUrlTypes:
    • ApplicationCover
    • ApplicationAsset
    • AchievementIcon
    • StickerPackBanner
    • TeamIcon
    • Sticker
    • RoleIcon

NuGet

Version 4.5.0 can be downloaded via NuGet here.