1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-05 06:26:08 +00:00
Commit graph

28 commits

Author SHA1 Message Date
diamondburned 6ef093eb98 Gateway: Refactor, v8 user struct updates
This commit refactored several structures from package discord to be in
package gateway. Those structures are mostly presence ones, which per
official documentation has a lot more to do with the Gateway API than
the REST API or anything else.

This commit also renamed several global variables to have a more
consistent and obvious name.

As of v8, the user API has had a lot of minor and some major changes,
especially regarding its Ready event API. The most significant change is
the addition of the ReadySupplemental event as well as several changes
to the Ready field itself.

All of these changes above are breaking, and they have already broken
the state package. These breaking changes will be addressed in other
packages by the next commit.
2020-11-28 17:22:03 -08:00
mavolin fc5d10ced8 Discord: optimize struct sizes; add missing fields 2020-11-22 09:16:24 -08:00
mavolin 647efb8030 Discord: add Mention method to mentionable Snowflakes 2020-09-24 11:54:45 -07:00
mavolin 2a032ebfab Discord: add watching activity 2020-08-03 17:46:04 -07:00
Maximilian von Lindern 1585797b52 *: Linting and typo fixes (#134)
* Linting and typo fixes

* Linting and typo fixes

* revert comma fix
2020-07-29 16:58:33 -07:00
Tadeo Kondrak d290b0d01c *: Add typed Snowflake IDs (#122)
This PR closes #120.
2020-07-29 16:58:33 -07:00
diamondburned 7572caad31 Discord: Added Relationship API methods; moved structs around 2020-07-14 18:01:24 -07:00
mavolin 530bff74a2 Discord: fix faulty default image link 2020-05-22 14:40:36 -07:00
mavolin 2c4022734b
Discord: create XURLWithType methods 2020-05-15 22:07:27 +02:00
Samuel Hernandez d252ad1db3
Discord: Fix UserFlags constants for good 2020-05-05 21:08:40 -04:00
diamondburned (Forefront) 3536ae4cb6 Discord: Added a helper HasFlag function 2020-05-04 23:13:15 -07:00
Samuel Hernandez becc1e129a
Discord: Added PublicFlags to User
In the Discord API, User objects were recently given a public_flags
property that bots can access (without OAuth). I've added a field to the
User struct for this.
2020-05-05 01:34:45 -04:00
diamondburned (Forefront) d4fd61c24b Discord: Fixed invalid iota for UserFlags 2020-05-04 20:36:39 -07:00
diamondburned (Forefront) 88eb0a6d85 Discord: Added missing UserFlags constants, fixed overflow 2020-05-04 20:22:06 -07:00
diamondburned (Forefront) 0d81f9176a Discord: Added a fallback avatar URL 2020-04-14 20:52:48 -07:00
diamondburned (Forefront) 74f7f5877d Gateway: Fixed more omitempties for UpdateStatus 2020-03-30 22:50:46 -07:00
diamondburned (Forefront) 38eabeb1e9 Gateway: Fixed UpdateStatus omitempty and structs 2020-03-30 22:46:34 -07:00
diamondburned (Forefront) 9f6d1bde30 Gateway: Separated Activity types 2020-03-30 22:00:28 -07:00
diamondburned (Forefront) 687cad0c72 Discord: Fixed incorrect ActivityType constant 2020-02-23 18:20:13 -08:00
diamondburned (Forefront) 4a1d6ad456 Gateway: Added SESSIONS_REPLACE 2020-02-23 09:56:16 -08:00
diamondburned (Forefront) 4b53d72db1 Discord: Removed invalid avatar discriminator URL 2020-02-17 09:28:52 -08:00
diamondburned (Forefront) 7836c15cf8 Added User AvatarURL 2020-01-23 22:00:41 -08:00
diamondburned (Forefront) e61d6f5ccf Added more Mention methods 2020-01-23 21:45:47 -08:00
diamondburned (Forefront) b11b3e1a42 Added state handlers 2020-01-18 13:04:12 -08:00
diamondburned (Forefront) 03d226e23d WIP integration test 2020-01-14 23:34:18 -08:00
diamondburned (Forefront) d6ab7b9d52 Completed guilds, added max pagination API 2020-01-06 22:45:29 -08:00
diamondburned 6b993f2032 Added Permissions and stuff 2020-01-03 20:19:24 -08:00
diamondburned e41a2c7c42 Moved Discord structs to package discord 2020-01-02 11:53:08 -08:00
Renamed from api/user.go (Browse further)