samhza
dc92845315
discord: move Interaction over; update api.CommandCreateData ( #274 )
...
- Moved gateway.InteractionCreateData to discord.Interaction, now
gateway.InteractionCreateData is a struct that wraps
discord.Interaction.
- Split InteractionData into CommandInteractionData and
ComponentInteractionData.
- Renamed ButtonInteraction to ComponentInteraction.
- Updated api.CommandCreateData to add new fields.
- Update Component types' Type() methods to pointer receivers.
2021-09-09 16:06:44 -07:00
starshines
f7880b91ee
discord: Add select component type ( #260 )
2021-08-10 14:02:30 -07:00
Maximilian von Lindern
c00567599b
api: Threads ( #257 )
...
* api/gateway: Implement threads
* discord/api: rename PermissionOverwrites fields to Overwrites
* discord: rename Minutes to ArchiveDuration
* discord: Rename ArchiveDuration constants
Co-authored-by: diamondburned <datutbrus@gmail.com>
2021-08-08 13:19:15 -07:00
Starshine System
42aa73a592
gateway: change InteractionOption.Value to json.Raw, add helper methods
2021-08-03 09:07:09 -07:00
Samuel Hernandez
40e1a3757d
*: Migrated Go Modules to v3
2021-06-01 19:59:01 -07:00
diamondburned
694d6a2bba
gateway: Clarify field presence for InteractionCreateEvent
2021-05-29 21:32:35 -07:00
Scott
10c8837000
api: Finalized buttons implementation ( #200 )
...
* all: Added Components fields to message-related types
* discord: Documented Reactions field
* discord: Implement fix for Component
* gateway: Added User and Message fields to InteractionCreateEvent
* api: Made InteractionResponseData fields optional for UpdateMessage responses
* api: Deprecated and updated interaction response types
* gateway: Update optional interaction event fields
* discord: Added ComponentWrap for json unmarshalling
* state: Update components on MessageUpdate
* Updated buttons example
2021-05-29 21:32:33 -07:00
Chan Wen Xu
c880cb2fc8
interaction: Implement buttons
2021-05-29 14:16:44 -07:00
Starshine System
20166f33cc
gateway: fix Joined field in GuildCreateEvent ( #193 )
2021-04-11 16:56:05 -07:00
diamondburned
968112fb53
Discord: typed snowflake for Interaction
2021-02-17 17:41:19 -08:00
Matthew Penner
7c3374543e
Discord: Add basic support for slash commands
2021-01-27 10:44:14 -08:00
diamondburned
5e2af90fd0
Gateway: Rollback weird user changes
2020-12-01 18:07:42 -08:00
diamondburned
a2333996a2
Gateway: Presence to contain user and guild fields
...
This commit changes the gateway.Presence struct to be similar to commits
prior to the last refactor, that is, the struct would have the User and
GuildID fields. This is done so it's easier to store them.
2020-11-28 22:36:33 -08:00
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
88258b51c2
replace usage of discordapp.com with discord.com in docs
2020-11-03 10:14:53 -08:00
diamondburned
fd16db1385
Gateway: Fixed MessageReactionRemoveEmoji not having Event suffix
2020-10-28 19:31:43 -07:00
diamondburned
75df94d9f4
*: Migrated Go Modules to v2
2020-10-28 15:39:59 -07:00
diamondburned
8aa60ebf8e
*: Removed the Game field
...
The Activities field should now be used. Access the first element.
2020-10-28 14:01:08 -07:00
diamondburned
af7f413cea
Gateway: Clarified GuildMemberListGroup.ID docs
2020-08-14 21:13:48 -07:00
Tadeo Kondrak
d290b0d01c
*: Add typed Snowflake IDs ( #122 )
...
This PR closes #120 .
2020-07-29 16:58:33 -07:00
diamondburned
9d7f5cb953
Gateway: Deprecated useless type definitions for embedded structs
2020-07-14 21:38:31 -07:00
diamondburned
7572caad31
Discord: Added Relationship API methods; moved structs around
2020-07-14 18:01:24 -07:00
diamondburned
edb8a46ef2
Gateway: Added intent helpers and more context API support
2020-07-11 12:50:32 -07:00
diamondburned
d3d9811276
Gateway: Added Relationship events and handlers; minor reformatting
2020-07-11 00:02:57 -07:00
diamondburned (Forefront)
64c6ca7916
Gateway: Fixed GuildCreateEvent not having Channels
2020-05-17 22:48:16 -07:00
diamondburned (Forefront)
adb23eeb8e
Gateway: Added new InviteCreateEvent and InviteDeleteEvent
2020-05-12 17:51:23 -07:00
mavolin
f453c1eefa
Gateway: Fix #45
2020-05-12 04:54:16 +02:00
diamondburned (Forefront)
5c85e4aa64
Gateway: Fixed a typo in GuildCreateEvent
2020-04-21 15:32:00 -07:00
diamondburned (Forefront)
9873d475aa
State: Added Reaction state handlers
2020-04-12 16:14:27 -07:00
diamondburned (Forefront)
8899462ff0
Gateway: Added undocumented GuildMemberListUpdate event
2020-03-15 22:55:45 -07:00
diamondburned (Forefront)
4a1d6ad456
Gateway: Added SESSIONS_REPLACE
2020-02-23 09:56:16 -08:00
diamondburned (Forefront)
4e9bd53b0f
Gateway: Added extra events
2020-02-15 21:29:25 -08:00
diamondburned (Forefront)
27e315ca66
Fixed bug where message state would screw up
2020-01-20 00:53:23 -08:00
diamondburned (Forefront)
ac685b0df4
Minor fixes, undocumented things, and editorconfig
2020-01-19 13:54:16 -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
8fc7229c3f
Added an untested Gateway package
2020-01-14 20:43:34 -08:00