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

Releases: andersfylling/disgord

DisGord v0.15.1

10 Nov 07:40
Compare
Choose a tag to compare
  • Updated nhooyr/websocket to v1.7.4

DisGord v0.15

05 Nov 00:29
Compare
Choose a tag to compare

Full Changelog

Enhancements:

  • Added option to provide a reason with a "admin action". Eg, you can now state why a member was kicked - the reason will appear in the audit log.

Fixed bugs:

  • develop branch gives ws error on read #236
  • Missing 1k/24h identifies rate limit #237

other:

  • Removed gorilla/websocket dependency

Thanks to

disgord.AllEvents

26 Oct 18:46
Compare
Choose a tag to compare

Some bots might not need the majority of the events, and that makes the IgnoreEvents config field fairly bothersome. This adds a new function that returns all the events with exceptions as a parameter.

Also fixes:

  • internal generation issue for the Activity type
  • Reset implementations

Support reading custom status

26 Oct 17:33
Compare
Choose a tag to compare

This adds the emoji field for the Activity type and adds the ActivityTypeCustom const. Allowing bots to see the emoji if the activity is a custom one.

discord/discord-api-docs#1162

continuation of the v0.13 solution

25 Oct 10:29
Compare
Choose a tag to compare

I messed up v0.13 by setting Message.Nonce to string. While in fact it can be string or int. Due to this, nonce is now always going to be interface{}. However message create nonce will be string only.

DisGord v0.13

24 Oct 20:19
Compare
Choose a tag to compare

So I was forced to change the Message.Nonce type to string (originally snowflake). Since I'm still on v0, this is marked as a "minor" update. Be aware that the change holds breaking content. But this fixes unmarshalling issues that relates to Messages causing program panics. I've also adjusted the snowflake to allow for signed ints, just in case.

discord/discord-api-docs#1157
discord/discord-api-docs#1158

DisGord v0.12.2: replaces CreateBotURL with InviteURL

24 Oct 15:13
Compare
Choose a tag to compare

Full Changelog

Fixed bugs:

  • Client.CreateBotURL panics in powershell #233

DisGord v0.12.1: CPU resource improvement

24 Oct 09:46
Compare
Choose a tag to compare

v0.12.1

Full Changelog

Fixed bugs:

  • emitter uses continue in select statement #230

  • increase timeout for queue checks in gateway emitter #231

DisGord v0.12

22 Oct 20:09
Compare
Choose a tag to compare

v0.12.0

Full Changelog

Implemented enhancements:

  • Add voice options self-mute & deafen #218 (ikkerens)
  • Use slice in Request Guild Members Command #210 (andersfylling)
  • Replace uber dep for atomic with sync.atomic #213
  • Add a convenience method for reactions #211
  • improve docs about snowflake.Snowflake vs disgord.Snowflake #161
  • Better support for distributed instances #224
  • create workflow that verifies install scipt works on push to develop #170
  • dynamic buckets + option to inject custom system #173 (andersfylling)
  • Enhanced ready event for guild loading. #198
  • refactor websocket logic #162
  • Clarify if a message event is from a guild or a direct message #153
  • Initiate reconnect instead of stopping when Client.Connect() fails #141
  • Allow using channels instead of just handlers in .On method #131
  • Internal loop for GetMessages #130
  • helper functions for v0.12 #126
  • Feature/integration tests #205 (andersfylling)
  • rename ShardConfig.TotalNrOfShards to ShardConfig.ShardCount #204 (andersfylling)
  • auto release on milestone close #192 (andersfylling)
  • Use millisecond precision header #165 (andersfylling)
  • specify events to ignore rather than handle #149 (andersfylling)
  • Implement voice-kicking #133
  • use LFU as crs (breaking) #181 (andersfylling)

Fixed bugs:

  • WEBHOOKS_UPDATE was missing and s causing related handlers not to fire
  • Lockable for Channel and Emoji when using build tag disgord_parallelism/disgord_removeDiscordMutex would not compile
  • Member is missing internalUpdate #193
  • Guild.LoadAllMembers does not check for duplicates #190
  • How to handle gateway error 4011? #184
  • Update dockerfile #191
  • Deadlock during reconnect phase #132
  • Deadline for heartbeat ack is too low #168
  • refactor websocket logic #162
  • fixes issue with identify for distributed bots doing sharding #199 (andersfylling)
  • fixes client.Ready for distributed bots #197 (andersfylling)
  • UpdateStatus while not connected will silently do nothing #209
  • disgord does not complain about unknown handler signatures #208
  • Use slice in Request Guild Members Command #210 (andersfylling)
  • Remove depalias #214
  • Event Guild Members Chunk does not update members count #128

Closed issues:

  • replace shutdown channel with context.Context #169
  • "not by bot" filter for reactions #157
  • discord invite links invalid? #187
  • Allow setting number of total shards #177
  • add internal alias pkg #163
  • support ms precision in ratelimit headers #158
  • Unknown import path "zeromod" #156
  • Add option to disable listening for presence_updates and typing events #160
  • Sharded caching #183
  • replace cache strategy with TLFU (Time aware Least Frequently Used) #180
  • Standardise error types #178
  • add new message fields #159

Merged pull requests:

Read more

DisGord v0.11.2

22 Jun 11:48
Compare
Choose a tag to compare

Adds missing fields to Message.CopyOverTo.

If you experience guild_id to be 0, in MESSAGE_CREATE events. It might be because you're copying the message which did previously not copy over the guild_id field.