Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Releases: andersfylling/disgord

rename Update to UpdateBuilder to avoid confusion

17 Jan 13:49
Compare
Choose a tag to compare

This will not break your code. Instead your IDE will, hopefully, notify you that the .Update(..) methods are deprecated in favour of .UpdateBuilder(..).

Remember you can see deprecated methods in deprecated.go/deprecate.go.

v0.25

17 Jan 13:03
Compare
Choose a tag to compare

I noticed several types were outdated (redundant fields or missing fields), which is now updated (at least the majority of them)!

New const types for several messages which may break your code. However, should only take a few seconds to fix and gives you compile time correct code.

config DMIntents is now added, and config.Intents is deprecated to avoid confusion.

Members chunking now has indexing and nonce (finally). A bunch of members were missing guild id, this has now been fixed.

Guild members chunk is now cached!

List of changes here: v0.24.2...v0.25.0

Appreciation goes out to the contributors of this release:

Added webhook filters to std!

05 Jan 20:23
677cf31
Compare
Choose a tag to compare

Thanks to #364 the std pkg now has two new functions: IsByWebhook and NotByWebhook

Patches bulk delete endpoint

03 Jan 00:52
9cf12b0
Compare
Choose a tag to compare

v0.24

27 Dec 12:31
5a89a1a
Compare
Choose a tag to compare

Minor:

  • support for membership screening: #361

Breaking:

  • Cache now has no size limitation by default. Inject your own instance if you require this.

v0.23.2

02 Dec 23:11
Compare
Choose a tag to compare

Fixes the incorrect invite url (/invite => /invites)

Patches to the rate limit parsing

28 Nov 18:33
Compare
Choose a tag to compare

The issue #356 comments on some incorrect logic when handling rate limits. Previously this would cause several requests to simply fail (say you're spamming reactions), this patch fixes that.

Note that there's still a bucket race, so the second request might use a old/invalid bucket, which can cause a temporary rate limit. This is being worked on.

v0.23.0

27 Nov 03:42
Compare
Choose a tag to compare

I realised that Guild(..).GetMemberPermissions(user_id) was missplaced. This breaking change simply renames it to Guild(..).Member(..).GetPermissions(). That's all!

v0.22

25 Nov 03:52
Compare
Choose a tag to compare

Improvements (fixes):

  • Voice reconnect (#351)
  • Voice resume is now granted a longer timeout vs the ready event
  • cleaned up some undefined op codes in voice (#352)
  • most example are now verified by CI!
  • bot token is verified during the New method!
  • Reseter, DeepCopier and Copier now have proper go generate logic (no more forgetting to update the copy methods on changes)
  • starting up an event client with illegal or not enabled intents, will finally log an error! (but not shutdown the application)
  • more robust gateway connections or better error checking and logging

Renamed / moved:

  • Client.VoiceConnectOptions(...) => Client.Guild(guild_id).VoiceChannel(channel_id).Connect(...)

Added Discord features:

  • Message replies
  • Message stickers

v0.21

28 Oct 19:15
Compare
Choose a tag to compare

Client.On has been deprecated! Yep! Checkout Client.Gateway()... for compile time validated options instead. This also regards Connect, Disconnect, etc. Everything related to the gateway behavior has been moved to .Gateway() for a more consistent/predictable API. (the On method might return once generics are launched, we will see).

I've also unexported DeepCopy and CopyOverTo methods to clean up documentation. Instead you can call disgord.DeepCopy(...) or disgord.DeepCopyOver(..) respectively.

This upgrade shouldn't cause a breaking change, all deprecated methods should be marked. Making it easier to upgrade.

Note! on v0.22 all deprecated methods will be removed.