samhza
1b12057e51
discord: Make OverboundError.Error() have a pointer receiver ( #232 )
2021-06-18 00:15:02 -07:00
samhza
37b8871c65
api: Update sending/editing messages for v9 ( #230 )
...
api.{Send,Edit}MessageData and their equivalents in package api/webhook
have been updated to add some fields added in Discord API v9.
(webhook.Client).EditMessage now also returns a message, because that
endpoint returns a message on success.
2021-06-17 23:32:11 -07:00
Germano Eichenberg
94090b92ff
discord, gateway: Add IsPending to Member & SupplementalMember ( #231 )
2021-06-17 13:40:57 -07:00
diamondburned
da7c6c6dba
gateway: Allow custom SessionID
2021-06-14 15:23:08 -07:00
Hamza Ali
134f49d00f
discord: Add Flags field to InteractionResponseData
2021-06-14 15:23:08 -07:00
diamondburned
68313eb872
discord: Fix Channel not unmarshaling
2021-06-14 15:23:08 -07:00
diamondburned
5b328bdab0
shard: Remake shard manager ( #226 )
2021-06-14 15:22:55 -07:00
Samuel Hernandez
af3bedc472
api: allow interaction responses to include files
...
function RespondInteraction doesn't return a message.
systemPkgs
2021-06-10 16:58:10 -07:00
diamondburned
b8f452828d
ci: Test building examples
2021-06-10 16:58:07 -07:00
diamondburned
ba49bff80a
state: Fix voice state removal condition
...
This commit addresses issue #220 .
2021-06-10 16:52:31 -07:00
Maximilian von Lindern
c8e7eff04e
discord: rename ActivityTimestamp to ActivityTimestamps
2021-06-06 13:12:24 -07:00
Maximilian von Lindern
2875635532
bot: remove deprecated Subcommand.SanitizeMessage
2021-06-06 13:12:02 -07:00
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