diamondburned
0ab9d901e1
Example: Fixed simple bot intents
2021-02-07 16:22:38 -08:00
diamondburned
ac2f3ba68a
Bot: Close gracefully by default
2021-01-29 23:25:15 -08:00
Maximilian von Lindern
a969b11709
Gateway: Add graceful closing with CloseGracefully ( #185 )
...
* gateway: add the possibility of graceful closure
* wsutil: rename ConnGracefulCloser to GracefulCloser
* Gateway: rename Gateway.CloseSession to .CloseGracefully
2021-01-29 20:25:10 -08:00
Prophet
878b36fa2f
Example links in readme direct to v2 examples ( #184 )
2021-01-28 13:45:57 -08:00
diamondburned
c43fe15964
CI: Properly skip PRs
2021-01-28 13:41:43 -08:00
diamondburned
00ec43c794
Added Sourcehut CI
2021-01-28 00:11:58 -08:00
Matthew Penner
7c3374543e
Discord: Add basic support for slash commands
2021-01-27 10:44:14 -08:00
diamondburned
afc4183020
Discord: Activity to have AppID instead for consistency
...
This change is breaking for the discord.Activity struct, but it's worth
having the consistency.
2021-01-27 10:30:09 -08:00
diamondburned
5252b5af8d
httputil: Fix Timeout causing premature cancelation
2021-01-24 22:45:56 -08:00
Dan Anstis
da3f728ed4
Bot: Handle iphone style quotes ( #182 )
2021-01-14 16:23:14 -08:00
diamondburned
de3049b730
httputil: Fixed JSON body not reusable
2021-01-13 15:22:45 -08:00
mavolin
d940a97a0f
Discord: add support for string based OverwriteTypes as used in GuildCreate
2021-01-10 13:29:11 -08:00
diamondburned
d9a159d948
Bot: Fixed invalid test breaking
2021-01-05 21:15:38 -08:00
diamondburned
771591e5eb
State: Error out on fetching permission of a channel not in guild
2021-01-05 21:09:16 -08:00
diamondburned
8a21375916
CI: Removed perseverance test due to CI time
2021-01-05 13:39:13 -08:00
diamondburned
dcee1c2506
Discord: Fixed MessageType values
2021-01-05 13:38:37 -08:00
diamondburned
169b361262
Gateway: Add Threads into GuildSubscribe
2021-01-01 00:33:35 -08:00
diamondburned
c6d8c741e8
CI: Add perseverance test for Gateway
2020-12-31 23:48:29 -08:00
diamondburned
7b67a98405
Gateway: Prevent heartbeat reconnecting twice
2020-12-31 23:01:38 -08:00
diamondburned
2f6ab0d451
API: Fix atomic SIGSEGV in ARM
2020-12-31 10:24:51 -08:00
diamondburned
f1f052180b
Heart: Improve thread-safety and pace responsiveness
...
This commit consists of these smaller commits:
Gateway: SessionID to be a method for thread safety
This commit breaks the SessionID field of the Gateway struct to
be thread-safe by wrapping its access with a read-write mutex.
As this is a bug fix, it is reasonable of a breaking change
Heart: Allow later binding of event channel
Voice: Use the new Heart API
Heart: Fixed data races
Heart: Allow changing pace, thread-safe Heartbeat
2020-12-31 01:32:45 -08:00
diamondburned
700b55102d
API: Added JoinInvite
2020-12-31 00:16:43 -08:00
diamondburned
05de2d7b61
Gateway: Made Shard field empty for default
2020-12-30 23:43:08 -08:00
diamondburned
f3f075b27f
API: Add get Note endpoint
2020-12-26 16:13:10 -08:00
diamondburned
d69d6750dc
API: Separated min function
2020-12-26 16:08:41 -08:00
diamondburned
088b304303
Gateway: Rename MessageNotifications to Notifications for consistency
2020-12-19 19:22:35 -08:00
diamondburned
d5f3979f95
Gateway: Rename UserGuildMute to UserMuteConfig for correctness
2020-12-19 19:06:09 -08:00
diamondburned
7aff3f9f24
Gateway: Added MuteConfig into UserChannelOverride
2020-12-19 18:59:15 -08:00
diamondburned
4e62f120a2
Gateway: Readd Presences into Ready
2020-12-19 18:46:21 -08:00
diamondburned
e0f051b4c6
Shellwords: Simpler error and implementation
2020-12-19 18:02:31 -08:00
diamondburned
3e2814748f
Discord: Fixed Sticker rec bug, simpler TagList method
2020-12-19 16:08:28 -08:00
diamondburned
157d64b423
Moreatomic: Replaced invalid mutex with modified sync.Map impl
2020-12-19 02:35:13 -08:00
diamondburned
36c2f166be
Moreatomic: Fixed upgradable mutex usage
2020-12-18 23:57:56 -08:00
diamondburned
3ddb472644
Moreatomic: Cave in and use upgradable mutex over sync.Map
2020-12-18 23:47:47 -08:00
diamondburned
f11edb7260
State: Add Ready Supplement handlers
2020-12-18 22:51:26 -08:00
diamondburned
c9dd51aeb6
Store: Fixed defaultstore out of bound error
2020-12-18 22:33:11 -08:00
diamondburned
88911a7d11
Store: Fixed defaultstore not accepting GroupDM channels
2020-12-18 22:18:04 -08:00
diamondburned
9df396bb7f
Bot: Fixed unable to call Plumbed method by command
2020-12-18 15:00:21 -08:00
diamondburned
82006b622b
CI: Bumped Dismock
2020-12-16 15:18:05 -08:00
diamondburned
fdeff18f5d
API: Fix integration test
2020-12-16 14:51:32 -08:00
diamondburned
78a76ecb42
Discord: Revert "APIEmoji shouldn't be path-encoded"
...
This reverts commit dae2a0ffc1
.
2020-12-16 14:51:00 -08:00
diamondburned
dae2a0ffc1
Discord: APIEmoji shouldn't be path-encoded
2020-12-16 14:30:00 -08:00
diamondburned
808dfb28bb
httputil: Fixed Multipart writer not closing
2020-12-16 14:08:31 -08:00
diamondburned
1483dd71d8
Webhook: Shorter constructor function names
2020-12-16 13:22:26 -08:00
diamondburned
868825da7d
Webhook: Breaking fix redundant type names
2020-12-16 13:17:56 -08:00
diamondburned
525d0bb3f6
API: Move ExecuteWebhookData, add package sendpart for uploads
...
This commit moved ExecuteWebhookData from package api to package webhook
inside package api. This change required splitting the multipart
abstractions away from package api, so they are now inside package
sendpart in utils.
This commit will break code that uploads anything, as the type name is
now sendpart.File from api.SendMessageFile. The behavior should be the
same as before.
2020-12-16 13:11:11 -08:00
diamondburned
91dc41e388
API: Expose Max fetch constants
...
This commit exposes the Max fetch constants to allow package users to
externally reimplement any part of the API abstractions without having
to redeclare more constants.
2020-12-16 12:26:25 -08:00
diamondburned
86756dfbaa
Discord: Added typed APIEmoji
...
This commit adds a new discord.APIEmoji type along with changes to
certain methods in package API that utilizes this new type. Similarly to
typed snowflakes, this should help reduce mistakes when using the React
functions.
2020-12-16 12:24:23 -08:00
Maximilian von Lindern
f887060983
Webhook: Add support for message edit and delete ( #180 )
...
* Webhook: Add support for message edit and delete
* Webhook: remove global functions
* Webhook: move package Webhook into api/
* Webhook: Moved (unused in API) data struct to package webhook
Co-authored-by: diamondburned <datutbrus@gmail.com>
2020-12-16 12:11:11 -08:00
diamondburned
9a820c3749
CI: Update Dismock
2020-12-15 14:16:12 -08:00