Releases: andersfylling/disgord
DisGord v0.15.1
- Updated nhooyr/websocket to v1.7.4
DisGord v0.15
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:
other:
- Removed gorilla/websocket dependency
Thanks to
disgord.AllEvents
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
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.
continuation of the v0.13 solution
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
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.
DisGord v0.12.2: replaces CreateBotURL with InviteURL
DisGord v0.12.1: CPU resource improvement
v0.12.1
Fixed bugs:
DisGord v0.12
v0.12.0
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:
- panic when registerring a incorrect handler signature (fixes #20… #217 (andersfylling)
- upgrade websocket/nhooyr to fix atomic panic on ARM systems #216 (andersfylling)
- detects premature Emit usage (fixes #209) #215 (andersfylling)
- Removed circle ci #212 (svenwiltink)
- upgrade deps #206 (andersfylling)
- Some grammar changes/fixes, more to come #203 (GreemDev)
- allow injecting custom identify rate limiter #227 (andersfylling)
- copy only config + doc update #226 (andersfylling)
- document build tags + introduce legacy build tag for REST method… #202 (andersfylling)
- remove short events pkg #201 (andersfylling)
- add GuildsReady method (fixes #198) #200 (andersfylling)
- Allow registering event channels as if they are handlers #147 (andersfylling)
- Refactor sharding #146 (andersfylling)
- User.AvatarURL(size int) string #189 (victionn)
- [br] auto-scaling on error + re-distributing message queues #188 (andersfylling)
- upgrade time #186 (andersfylling)
- add nhooyr websocket packet #176 (andersfylling)
- set minimum go version to 1.12 #175 (andersfylling)
- Feature/snowflake v4 #172 (andersfylling)
- allow kicking member from voice channel (fixes #133) #171 (andersfylling)
- use callback and not channels for shard syncing #167 (andersfylling)
- add DM check to Message #166 (andersfylling)
- add IsByBot middleware + refactored logic into utils #155 (jfoster)
- clarify self-bot support (resolves #150) #151 (nikkelma)
- Move private pkgs to internal pkg #223 (andersfylling)
- add config option LoadMembersQuietly #229 ([andersfylling](https://github.com/ande...
DisGord v0.11.2
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.