Commit Graph

483 Commits

Author SHA1 Message Date
diamondburned a0785bd657 CI: Increased time limit to account for slow integration tests 2020-07-11 00:06:31 -07:00
diamondburned d3d9811276 Gateway: Added Relationship events and handlers; minor reformatting 2020-07-11 00:02:57 -07:00
diamondburned (Forefront) 16ed406c53 Session: Fixed a panic bug when the gateway fails 2020-06-29 11:00:07 -07:00
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) 9ce0620652 Cleaned up go.mod 2020-06-01 13:52:15 -07:00
diamondburned (Forefront) 9747675741 CI: Fixed syntax 2020-05-30 15:22:13 -07:00
diamondburned (Forefront) 77d6067340 CI: Better mutual exclusivity of unit and integration tests 2020-05-30 15:19:51 -07:00
diamondburned (Forefront) 783dfe7ba6 CI: Unit and integration tests are now mutually exclusive 2020-05-30 15:15:32 -07:00
diamondburned (Forefront) f91518f3c6 CI: haha json go brr 2020-05-30 14:45:22 -07:00
diamondburned (Forefront) bafeb1082a CI: Added Dismock, better coverage parsing 2020-05-30 14:32:23 -07:00
ks129 93fbfd98d0 Fix aliases appending
Add 3 dots on appending to merge 2 slices.
2020-05-24 23:08:55 -07:00
ks129 23d97044ec Simplify aliases adding
- Removed duplicates check
- Fixed docstring
2020-05-24 23:08:55 -07:00
ks129 75fe1bd03a Implement command aliases
- Add alias parsing to `Context.findCommand`.
- Add new function to `Subcommand`: `AddAliases` that add new alias(es) to command.
- Added `Aliases` property to `MethodContext`
2020-05-24 23:08:55 -07:00
mavolin 960ba486bd API: code cleanup 2020-05-24 17:28:04 -07:00
mavolin a07f343b39 API: fix id field getting sent on EditChannelPermission 2020-05-24 17:28:04 -07:00
mavolin 52bec08cc6 Discord: fix discovery splash url not getting properly calculated 2020-05-24 17:24:58 -07:00
mavolin 6c3b1e0c56 API: verify Embed and AllowedMentions on message edit 2020-05-24 16:57:23 -07:00
mavolin 55e9c28d37 API: fix Message.Author.ID getting sent instead of Message.ID 2020-05-24 09:08:47 -07:00
mavolin 46b001548d Discord: fix wrong hash for discovery splash url 2020-05-24 09:08:24 -07:00
mavolin 19b970bad7 Discord: fix #105 2020-05-23 14:24:03 -07:00
Maximilian von Lindern ce38507fb0
Discord: fixes around meta images (#104)
* API: fix illogical order of parameters

* Discord: fixes around meta images
2020-05-23 10:17:30 -07:00
mavolin 6fbc3e6afd Discord: fix #102 2020-05-23 09:04:12 -07:00
mavolin 147b01641b API: fix illogical order of parameters 2020-05-22 19:19:08 -07:00
mavolin b67b993095 API: fix illogical order of parameters 2020-05-22 19:14:01 -07:00
mavolin 6cc6d05f5f API: use CreateWebhookData instead of direct arguments 2020-05-22 19:00:51 -07:00
mavolin 93d9323b3b API: fix accidental append instead of prepend 2020-05-22 17:09:55 -07:00
mavolin 7b52582c93 API: fix unlimited pagination error 2020-05-22 16:18:01 -07:00
mavolin e4b43c0a83 Discord: fix invalid calc of after 2020-05-22 16:01:09 -07:00
mavolin 530bff74a2 Discord: fix faulty default image link 2020-05-22 14:40:36 -07:00
mavolin eefb6d731c API: implement #93 2020-05-22 12:27:57 -07:00
mavolin a76c9031c1 API: fix #91 2020-05-22 10:52:30 -07:00
mavolin 5fefaf07c4 API: fix #89 2020-05-22 10:47:46 -07:00
Maximilian von Lindern 68701704a1 Discord: fix wrong field naming 2020-05-22 08:14:35 -07:00
mavolin 68d3129bfd Discord: add docs 2020-05-22 08:14:35 -07:00
mavolin f4be7971ee Discord: add missing fields to Guild struct 2020-05-22 08:14:35 -07:00
diamondburned (Forefront) 9da01cccb3 Voice: Fixed a potential Write() stalling bug 2020-05-20 15:05:50 -07:00
mavolin c5f1bf4753 Discord: add docs for auditlog.go 2020-05-18 10:25:17 -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) 64c6ca7916 Gateway: Fixed GuildCreateEvent not having Channels 2020-05-17 22:48:16 -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 805df29c2e Discord: fix #83 2020-05-17 10:34:47 -07:00
mavolin 1c53befad4 API: fix wrong endpoint for GuildWidget and ModifyGuildWidget 2020-05-17 10:34:11 -07:00
diamondburned 032ae736ab
Merge pull request #80 from mavolin/lowercase-errors 2020-05-16 17:32:17 -07:00
diamondburned 05f01964fe
Merge pull request #81 from mavolin/77-no-limits 2020-05-16 17:31:43 -07:00