Maximilian von Lindern
f1f4f06979
*: Rename error types to have Error suffix ( #215 )
2021-06-06 12:40:24 -07:00
Maximilian von Lindern
a808b52f00
state: Add paginating State.Messages ( #213 )
...
* Store,State: Add update param to all store.XXXStore.XXXSet methods
* State: add paginating Messages
* Store: Fix test error
* store: merge shouldPrependMessage and shouldAppendMessage into single messageInsertPosition
2021-06-03 21:39:49 +02:00
Samuel Hernandez
40e1a3757d
*: Migrated Go Modules to v3
2021-06-01 19:59:01 -07:00
Maximilian von Lindern
df5954d2e1
all: Revert incorrect "GuildID" changes ( #211 )
2021-05-30 14:16:16 -07:00
Maximilian von Lindern
c45096c9fa
discord: Fix faulty marshal of Channel.RTCRegionID ( #210 )
2021-05-30 14:14:41 -07:00
Maximilian von Lindern
428ef4ac70
rate: Add rate.AcquireOptions
2021-05-29 22:25:52 -07:00
Maximilian von Lindern
8a7c6c48a7
session,bot: Remove references to CloseGracefully and use Close instead
2021-05-29 22:18:05 -07:00
Maximilian von Lindern
6c2fb008eb
gateway: Rename RequestGuildMembersData.GuildID to GuildIDs for consistency
2021-05-29 22:17:55 -07:00
Maximilian von Lindern
a3a3f5a1b8
wsutil: Make wsutil.GracefulCloser part of wsutil.Connection
2021-05-29 22:17:49 -07:00
Maximilian von Lindern
d2b70ebfa7
all: Remove deprecated symbols
2021-05-29 22:17:44 -07:00
Maximilian von Lindern
5a1837a094
discord/api: Add StageInstances
2021-05-29 22:17:39 -07:00
diamondburned
4595c87e36
discord: Fix {un,}marshal loop
2021-05-29 22:07:39 -07:00
Maximilian von Lindern
6f73088e7d
api/discord: Add RTCRegionID and VoiceQuality
2021-05-29 22:07:39 -07:00
diamondburned
b936d00ead
discord: Minor comment fixes for components
2021-05-29 21:32:38 -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
Maximilian von Lindern
e04b19eb0f
api: Increase arikawa version in UserAgent to v3
2021-05-29 21:32:31 -07:00
Maximilian von Lindern
0119944b28
api/gateway: Increase API and gateways versions to 9
2021-05-29 21:32:20 -07:00
unknown
a1ab986ded
discord: Emoji methods use IsUnicode()
2021-05-29 14:16:44 -07:00
unknown
58fea822e1
discord: Fixed docs links
2021-05-29 14:16:44 -07:00
unknown
3b212908a5
utils: Change Enum to int32
2021-05-29 14:16:44 -07:00
unknown
d69abe49de
discord: Add AllVoice perms
2021-05-29 14:16:44 -07:00
unknown
a7d87a7dd0
api: Use MessageFlags const
2021-05-29 14:16:44 -07:00
unknown
f5b3e3972b
discord: Use consts for Discord constants
2021-05-29 14:16:44 -07:00
Chan Wen Xu
c880cb2fc8
interaction: Implement buttons
2021-05-29 14:16:44 -07:00
Maximilian von Lindern
7785887719
API: Update the Client.CreateChannel docs to mention the recent permission change
2021-05-29 12:40:10 -07:00
Maximilian von Lindern
56aaed3d60
State: Fix data race between ready and guild create handler
2021-05-29 12:38:22 -07:00
unknown
f8195f6e87
discord: Add Emoji.IsCustom() & IsUnicode() methods
2021-05-20 22:53:46 -07:00
unknown
25152c85d9
discord: Fixed typo
2021-05-20 22:53:46 -07:00
unknown
cfd620ee39
discord: Add User.Tag() method
2021-05-20 22:53:46 -07:00
unknown
5026795551
discord: Add CreatedAt() methods
2021-05-20 22:53:46 -07:00
unknown
a10c4d2062
discord: Document User.Mention()
2021-05-20 22:53:46 -07:00
Chan Wen Xu
5b63307a4a
discord: Add certified moderator user flag
...
A new user flag has been documented in discord/discord-api-docs@55cd3d7 .
This commit adds the flag to arikawa.
2021-05-20 09:40:21 -07:00
Starshine System
20166f33cc
gateway: fix Joined field in GuildCreateEvent ( #193 )
2021-04-11 16:56:05 -07:00
diamondburned
cafff103e5
Bot: Add ErrorReplier
...
This commit adds the ErrorReplier callback into Context, which allows
the user to implement a custom way to format errors, such as putting
them into an embed.
2021-04-08 13:09:10 -07:00
diamondburned
728bc5c472
Gateway: Test Reconnect error
2021-04-07 11:42:13 -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
diamondburned
9925461a25
Gateway: Potential fix for URL()
2021-04-05 12:20:56 -07:00
diamondburned
c9a7ec8122
Gateway: Add URL test
2021-04-05 12:20:56 -07:00
diamondburned
2dadb0701d
Gateway: Add automatic BotData connection
...
This commit modifies Gateway constructors to allow the user to easily
feed existing Identifier instances as well as updating those instances
to adhere to the Discord-returned gateway rate limits.
These changes should make it easier for typical bot sharding, although
automatic sharding is not implemented.
2021-04-05 12:20:56 -07:00
diamondburned
050c1b6497
Webhook: Add rate limiter and WithContext
2021-03-05 20:01:33 -08:00
diamondburned
1ffbde98c5
State: Guarantee message order in store
2021-02-25 23:57:45 -08:00
diamondburned
f5dc90c2d4
API: Add File.AttachmentURI for convenience
2021-02-24 01:59:33 -08:00
diamondburned
3713c9d404
Bot: Added Run(); updated examples
2021-02-23 21:40:44 -08:00
diamondburned
3b5a4ed94d
Voice: Add packet correction for RTCP per RFC3350
2021-02-22 12:33:12 -08:00
diamondburned
a939a26cab
Bot: Errors to reply as well
2021-02-18 11:08:21 -08:00
diamondburned
968112fb53
Discord: typed snowflake for Interaction
2021-02-17 17:41:19 -08:00
diamondburned
65d7b8765b
Bot: Allow self-mentions; deprecate SanitizeMessage
2021-02-14 13:14:38 -08:00
diamondburned
74019dc909
Bot: Reply with reference to message
2021-02-14 12:39:39 -08:00