1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-19 05:12:48 +00:00
Commit graph

41 commits

Author SHA1 Message Date
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
unknown a7d87a7dd0 api: Use MessageFlags const 2021-05-29 14:16:44 -07:00
Maximilian von Lindern ebc74e3168
Gateway: Sharding callback, proper closing (#190)
* Gateway: Fix gateway reconnect

This commit uses the correct timeout, Gateway.ReconnectTimeout, when reconnecting. Furthermore, it adds a delay between consecutive, failed reconnects.

* Gateway: Stop pacemaker when calling Gateway.CloseGracefully

* API: remove unnecessary leading/trailing whitespaces

* Gateway: Add Gateway.OnScalingRequired callback

* Gateway: Make all user initiated user closures graceful and ensure that closures are respected during reconnects

* Gateway: Fix typo

* Gateway: Add Gateway.ReconnectAttempts and deprecate .ReconnectTimeout

* Gateway: Add Gateway.Pause and reexport .Reconnect and .ReconnectCtx

* Gateway: Improve the Gateway.OnShardingRequired docs

* Wsutil: Code cleanup
2021-04-07 11:38:26 -07:00
Starshine System 37d285184a API: Add CrosspostMessage method 2021-04-06 15:34:28 -07:00
Scott abeaef8122
API: Added SendReply methods (#187)
* API: Added SendReply methods

* Grammar edit

* referenceID & adheres to 100 column limit
2021-02-14 12:29:41 -08:00
diamondburned d69d6750dc API: Separated min function 2020-12-26 16:08:41 -08:00
Ethien Duckett 456692da93
API: stay within the boundaries of messageIDs (#160) 2020-11-11 11:07:30 -08:00
Maximilian von Lindern cc1975988d
API: abstract away boundary limits for DeleteMessages (#159)
remove boundary limits for DeleteMessages
rename deleteMessages to deleteMessagesRaw
use constant instead of limit literal
add min helper func
rename utils.go to math.go
2020-11-10 15:34:05 -08:00
diamondburned 75df94d9f4 *: Migrated Go Modules to v2 2020-10-28 15:39:59 -07:00
Maximilian von Lindern 397d288927
API: fix errors in message pagination and streamline changes with other pagination methods (#150)
* API: fix faulty pagination behavior

This fix fixes a condition which lead to all messages getting fetched if the limit was a multiple of 100, instead of just the limit.

* API: add NewestMessages

* API: clarify MessageAfter docs

* API: adapt paginating methods for guild, member and message reaction to match the style of message's pagination methods

* API: return nil if no items were fetched

* API: remove Messages and Rename NewestMessages to Messages
2020-10-19 07:47:43 -07:00
diamondburned dec39c4c2d API: Fixed Messages{Before,After} fetching incorrectly beyond 100s 2020-10-18 22:14:49 -07:00
Tadeo Kondrak d290b0d01c *: Add typed Snowflake IDs (#122)
This PR closes #120.
2020-07-29 16:58:33 -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 e4b43c0a83 Discord: fix invalid calc of after 2020-05-22 16:01:09 -07:00
mavolin b3fabae701
API: implement #77 2020-05-17 01:35:57 +02:00
mavolin 7cb3520bc7
API: re-add pointer to embed to preserve optionality 2020-05-15 19:40:00 +02:00
mavolin 52a7582dab
API: remove the pointer of Embed to concur with SendMessage 2020-05-15 19:19:13 +02:00
mavolin 11cf1eb769
API: implement #63 2020-05-15 19:17:52 +02:00
mavolin e362b10084
API: update docs 2020-05-15 19:14:37 +02:00
diamondburned (Forefront) 9f1f7547b9 API: Reversed EditMessage API for backwards compatibility and consistency 2020-05-12 16:51:35 -07:00
mavolin 72136d5aef
API: implement #49 2020-05-12 05:21:48 +02:00
mavolin fb3ea3ce10
API: code cleanup 2020-05-12 04:05:08 +02:00
mavolin 04a80d33e8
API: add docs, use option types 2020-05-12 03:44:13 +02:00
diamondburned (Forefront) 3a43e413d8 Utils: Deprecated client-scoped JSON driver 2020-05-07 20:43:46 -07:00
diamondburned (Forefront) 748ad5641c API: Added AllowedMentions and more tests 2020-04-19 16:35:37 -07:00
diamondburned (Forefront) be12849668 Changed internal/ to utils/, allowing external imports 2020-04-08 19:28:40 -07:00
diamondburned (Forefront) 4b53d72db1 Discord: Removed invalid avatar discriminator URL 2020-02-17 09:28:52 -08:00
diamondburned (Forefront) 0978d513c4 Fixed bug where Messages can't be fetched 2020-01-19 23:21:57 -08:00
diamondburned (Forefront) 05c8932166 Fixed SendComplex 2020-01-18 19:12:08 -08:00
diamondburned (Forefront) e98c533114 MeanwhileBody tests 2020-01-18 18:27:30 -08:00
diamondburned (Forefront) 958f592cb4 Finished state 2020-01-18 11:34:08 -08:00
diamondburned (Forefront) ef0dd9beef Added API integration tests 2020-01-15 20:44:11 -08:00
diamondburned 127c636310 Moved misc packages to internal 2020-01-15 10:32:54 -08:00
diamondburned (Forefront) d6ab7b9d52 Completed guilds, added max pagination API 2020-01-06 22:45:29 -08:00
diamondburned (Forefront) 966d14a32f Nitpicking function signature formatting 2020-01-05 21:32:25 -08:00
diamondburned (Forefront) 084cf093ae Changed Range method APIs 2020-01-05 21:22:26 -08:00
diamondburned (Forefront) a386f6a359 More things, what a pain in the ass 2020-01-05 19:48:39 -08:00
diamondburned b77d5f20da Fixed package header pointing to sourcehut instead of GitHub 2020-01-02 11:55:45 -08:00
diamondburned e41a2c7c42 Moved Discord structs to package discord 2020-01-02 11:53:08 -08:00
diamondburned 09d9651507 Initial commit 2020-01-01 21:39:52 -08:00