1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-10-31 20:14:21 +00:00
Commit graph

68 commits

Author SHA1 Message Date
diamondburned (Forefront) 01021f0902 Fixed a compile bug 2020-06-19 00:59:44 -07:00
diamondburned (Forefront) 88dd0f8995 State now handles MsgCreate's missing Member.User field, some bug fixes
This addresses discord/discord-api-docs#1440.

State documentation has been added, which documents the store and
handlers as well.

Bug fixes include:

- PreHandler being called after the state handler; it is now called
before as documented.
- Minor behavior changes regarding Guild Create events. Refer to State's
documentation.
2020-06-19 00:33:22 -07:00
Maximilian von Lindern 1373e42fe1
State: fix State.Message not working when the message's channel is not found in the Store (#117)
* State: fix State.Message not working when the message's channel is not found in the Store

* State: fix State.Message not working when the message's channel is not found in the Store
2020-06-08 07:30:16 -07:00
Maximilian von Lindern de3d0e2160
Gateway: Split GuildCreateEvent (#116)
* Session: fix event handler loop not getting properly closed

* Implement #113

* Session: move guild events to state

* Session: close hStop
2020-06-06 13:47:15 -07:00
mavolin 943ca00ae5 State: implement #114 2020-06-06 10:24:34 -07:00
mavolin efd2ce4c03 State: reduce times a go routine is spawned 2020-06-06 10:24:34 -07:00
diamondburned (Forefront) 53c1ea0f0d State: Fixed Discord not setting GuildID for Ready.Guild.Channels 2020-05-17 23:11:14 -07:00
diamondburned (Forefront) dc303a8635 Merge branch 'master' of github.com:diamondburned/arikawa 2020-05-17 13:31:15 -07:00
diamondburned (Forefront) dfcf6770c3 State: Fixed message out-of-bound during copying 2020-05-17 13:31:08 -07:00
mavolin 41ce1f389e
make all error messages lowercase 2020-05-16 23:14:49 +02:00
mavolin 38b2d4d2b4
State: fix errors not returned 2020-05-16 22:36:46 +02:00
mavolin 6202f53ebb
State: implement #76 2020-05-16 22:15:59 +02:00
diamondburned (Forefront) 5aec467779 State: Fixed incoming messages being backwards in order 2020-05-16 13:05:11 -07:00
mavolin 40a61dab98
State: resolve errors 2020-05-12 05:06:28 +02:00
diamondburned (Forefront) d82aa60fdc Utils: Added extra wsutil logging 2020-05-11 16:57:40 -07:00
diamondburned (Forefront) eb09447323 State: Fixed a data race for (*DefaultStore).Messages() 2020-05-07 12:39:47 -07:00
diamondburned (Forefront) ea7e0d6229 State: Separated DiffMessage for reusability 2020-05-05 20:26:05 -07:00
diamondburned (Forefront) af682d3f35 API: WithContext documentation 2020-05-03 14:04:09 -07:00
diamondburned (Forefront) a0bccd9c35 API: Added WithContext API, closes #15 2020-05-03 14:02:03 -07:00
diamondburned (Forefront) 536018b5f8 State: Fixed VoiceStateSet 2020-04-21 15:38:31 -07:00
diamondburned (Forefront) 5acfe9c981 State: Fixed voice states store being nil 2020-04-21 15:32:15 -07:00
diamondburned (Forefront) d4d8172d26 State: Added VoiceStates 2020-04-20 11:03:15 -07:00
Matthew Penner 5845348e47 Make only get voice state return ErrNotImplemented 2020-04-18 20:58:32 -06:00
Matthew Penner b6c167970a Add VoiceStates returned on GuildCreate and Ready to the state cache 2020-04-18 20:34:25 -06:00
Matthew Penner 9686a41539 Add voice state caching 2020-04-18 20:22:49 -06:00
diamondburned (Forefront) e95227d3f5 State: Fixed reaction adds not being updated 2020-04-12 21:25:22 -07:00
diamondburned (Forefront) 7905e2138b Fixed tests that broke because of previous breaking change 2020-04-12 16:24:28 -07:00
diamondburned (Forefront) 9873d475aa State: Added Reaction state handlers 2020-04-12 16:14:27 -07:00
diamondburned (Forefront) 3ee307b788 Bot: Added Usager, improved help 2020-04-08 21:25:50 -07:00
diamondburned (Forefront) 6dafb30401 State: Added more wrappers for direct messaging channels 2020-04-07 19:33:56 -07:00
diamondburned (Forefront) 58f0feb143 State: Unavailable guilds are no longer added into the state 2020-04-06 13:27:33 -07:00
diamondburned (Forefront) 1e400dfc27 Store: Small bug fixes related to the state store 2020-03-29 10:50:37 -07:00
diamondburned (Forefront) 1b785b1c38 State: Added guild emoji handlers 2020-03-11 19:41:14 -07:00
diamondburned (Forefront) 69f8a5d6ec State: Fixed DefaultStore's Channel() not finding DMs 2020-03-10 20:44:35 -07:00
diamondburned (Forefront) 04a33c3ee4 State: Added a noop state store for convenience. 2020-02-29 19:09:03 -08:00
diamondburned (Forefront) 0cd486fc38 Revert "Gateway: State refactored into smaller components"
This reverts commit 11465c62bd.
2020-02-29 18:54:14 -08:00
diamondburned (Forefront) 11465c62bd Gateway: State refactored into smaller components 2020-02-29 18:50:50 -08:00
diamondburned (Forefront) f0102d765f Gateway: Added a retry limit
State: Event handlers now handle all of Ready's Guilds field
Session: Added Wait, which blocks until SIGINT or Gateway error
2020-02-29 18:13:58 -08:00
diamondburned (Forefront) 79c4c1caca Gateway/State: Added message acking and more user update events for State 2020-02-24 21:50:13 -08:00
diamondburned (Forefront) 688248346b State: Added handlers for PresencesReplaceEvent 2020-02-23 20:11:33 -08:00
diamondburned (Forefront) 1201652aa1 State: Fixed default store messages not working properly 2020-02-21 22:03:44 -08:00
diamondburned (Forefront) 4e9bd53b0f Gateway: Added extra events 2020-02-15 21:29:25 -08:00
diamondburned (Forefront) 0de1e579f3 State: Author* methods now try and use Message.Member 2020-02-12 20:19:24 -08:00
diamondburned (Forefront) 8e3826e5d6 State: Fixed an error related to the last commit 2020-02-10 20:28:36 -08:00
diamondburned (Forefront) 165ef71cb5 State: Changed Self to Me for consistency 2020-02-08 11:51:00 -08:00
diamondburned (Forefront) 91e213135c State: Changed Self to Me for consistency 2020-02-08 11:48:45 -08:00
diamondburned (Forefront) 5acf01d984 State: Fixed bug where range values are dereferenced incorrectly
https://github.com/golang/go/wiki/CommonMistakes#using-reference-to-loop-iterator-variable
2020-02-07 00:22:41 -08:00
diamondburned (Forefront) cea3e47c27 discord: Fixed APIString method for emoji 2020-01-25 00:05:14 -08:00
diamondburned (Forefront) ea9f2c2036 Fixed Webhook Update event 2020-01-24 21:24:33 -08:00
diamondburned (Forefront) 7e73f00eb9 Fixed bug where ParseContent interface methods won't return a proper error 2020-01-20 20:25:47 -08:00