dependabot[bot]
2310bedc5e
examples/voice: Bump golang.org/x/crypto ( #381 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.0.0-20210921155107-089bfa567519 to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases )
- [Commits](https://github.com/golang/crypto/commits/v0.1.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-25 07:23:19 -08:00
dependabot[bot]
99156b7e9d
examples/voice: Bump golang.org/x/sys ( #379 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.0.0-20211001092434-39dca1131b70 to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases )
- [Commits](https://github.com/golang/sys/commits/v0.1.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-25 02:18:36 -08:00
dependabot[bot]
1778b52dd6
*: Bump golang.org/x/sys ( #378 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.0.0-20211001092434-39dca1131b70 to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases )
- [Commits](https://github.com/golang/sys/commits/v0.1.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-25 02:18:09 -08:00
sam
c1cc1b8a54
discord: Add the other select interaction data types ( #377 )
2023-02-21 16:28:14 -08:00
ayn2op
759a2eede5
discord: add missing fields to MessageType enum
2023-02-16 08:05:56 -08:00
diamondburned
23140acf87
gateway: Load latency on reconnection
2023-02-12 15:52:18 -08:00
ayn2op
9d3f579e90
api: add Flags field to SendMessageData struct
2023-02-11 03:31:13 -08:00
ayn2op
53c0da7358
discord: add SuppressNotifications to MessageFlags
...
Related: https://github.com/discord/discord-api-docs/pull/5910
2023-02-11 03:31:13 -08:00
diamondburned
52f70d95eb
*: Add GitHub Actions ( #371 )
...
*: Add shell.nix for development
*: Add test workflow
2023-01-31 00:31:46 -08:00
diamondburned
00c3ed4b8a
discord: GuildNews -> GuildAnnouncement
2023-01-31 00:13:50 -08:00
ayn2op
0033d02c11
discord: Add missing fields in Channel struct ( #366 )
2023-01-31 00:09:20 -08:00
ayn2op
55d19000a1
discord: Rename IntentGuildBans; add GuildAuditLogEntryCreateEvent ( #370 )
...
* Rename GuildBans intent & add GUILD_AUDIT_LOG_ENTRY_CREATE event
* Add IntentGuildBans constant for backward compatibility
2023-01-27 01:34:50 -08:00
ayn2op
05dbf0e2b4
discord: Add Flags field to Member struct ( #369 )
...
Reference: https://github.com/discord/discord-api-docs/pull/5874
2023-01-26 13:09:19 -08:00
ayn2op
57dbdbdbd0
discord: Add missing fields to Application ( #365 )
...
* Add missing fields to Application struct
* Change InstallParams.Permissions type to Permissions from string
2023-01-06 14:44:19 +00:00
ayn2op
97c4be4abf
discord: VoiceState.RequestToSpeakTimestamp nullable ( #367 )
2023-01-06 14:43:46 +00:00
ayn2op
dc3453beaa
discord: Add NitroBasic to UserNitro type ( #364 )
2023-01-02 14:46:14 +07:00
ayn2op
7f6871077a
discord: Add AutoModerationActionMessage ( #362 )
2023-01-02 14:28:43 +07:00
ayn2op
f7164d6520
discord: Add Guild.NSFWLevel ( #363 )
2023-01-02 14:25:45 +07:00
diamondburned
c0a522a93e
session: Add OnInteractionError that logs by default
2023-01-01 18:01:08 +07:00
diamondburned
3b98cde06f
README: Fix bare minimum example
2022-12-10 06:03:57 -08:00
diamondburned
ced922d377
examples: Update commands to use cmdroute
2022-12-10 06:03:04 -08:00
diamondburned
080c734b37
cmdroute: Add OverwriteCommands
...
This adds a small helper function just for convenience.
2022-12-10 06:02:37 -08:00
diamondburned
feb624758b
README: Slight restructure
...
This commit rewrites some parts of the README.
It removes the section about package bot, because we all should just
forget that it ever existed. Thanks, Discord.
It also removes a section that compared the library against Discordgo.
The section was written 3 years ago so it was very outdated. Instead, it
is replaced with a "Library Highlights" section, which provides much
more insights on the library itself.
2022-12-10 05:21:56 -08:00
diamondburned
99e5f6c2b8
httpdriver: Fix MockRequest.AddHeader crash
2022-12-09 15:39:33 -08:00
diamondburned
b3b2478481
httpdriver: ExpectMockRequest should return error instead
2022-12-08 19:48:57 -08:00
diamondburned
ea4beab6bd
httpdriver: Fix MockResponse not impl'ing Response
2022-12-08 19:42:22 -08:00
diamondburned
bf75621068
httpdriver: Add ExpectMockRequest
...
This commit adds the httpdriver.ExpectMockRequest function, which will
be super useful for testing inside and outside the library.
2022-12-08 19:38:59 -08:00
diamondburned
3bb8c2b019
httpdriver: Add Method into MockRequest
2022-12-08 19:17:28 -08:00
diamondburned
d4bfd69cf6
httpdriver: Add Mock{Request,Response}
...
This commit adds MockRequest and MockResponse to aid in testing.
It doesn't provide a MockClient, since there are multiple testing
strategies and we don't want to do them all.
2022-12-08 17:16:11 -08:00
diamondburned
cd1a044bc8
voice: Fix voicegateway.SpeakingFlag being invalid
...
Thanks, @topisenpai!
2022-12-07 00:25:55 -08:00
diamondburned
5811606559
gateway: Fix Send rate limiting
...
Prior to this commit, gateways can send 120 events before being
throttled at a terribly slow rate of 1 send per minute.
This commit permits gateways to send 5 events before being throttled at
a rate of slightly less than 120 events per minute.
2022-12-07 00:25:55 -08:00
diamondburned
789afaa88f
session: Fix Connect->Open not handling ctx
2022-12-07 00:25:55 -08:00
Jason Chu
4db60bca9d
voice: Close previous UDP sessions on Continue ( #358 )
2022-12-03 19:39:43 -08:00
Sam Xie
12a84ee999
discord: Add omitempty tag for category id ( #357 )
2022-11-28 14:54:25 -08:00
Tyler Stuyfzand
769215970e
session: Introduce SendGateway ( #356 )
...
* Support SendGateway to help with voice usage
* Remove unnecessary Gateway interface function
* Add clarification comment
Co-authored-by: Tyler <admin@meow.tf>
2022-11-25 11:16:13 -08:00
Sam Xie
91c86f02ec
discord: Add PermissionViewGuildInsights ( #355 )
2022-11-24 21:04:52 -08:00
twoscott
1b31249626
discord: Add new select components
2022-11-20 20:17:44 -08:00
twoscott
e5aabda660
discord: Add StringOption Min/MaxLength
2022-11-20 20:16:58 -08:00
diamondburned
eb23d43cee
session: Connect to retry on non-fatal errors
2022-11-18 02:09:16 -08:00
diamondburned
5a156cc699
gateway: Expose GatewayOpts getter
2022-11-18 02:01:18 -08:00
diamondburned
78ad477b83
Add GatewayOpts.ErrorIsFatalClose
2022-11-17 22:07:52 -08:00
diamondburned
87c479a2dc
gateway: Use PartialUnmarshal for ReadyEventExtras
2022-11-03 02:30:25 -07:00
diamondburned
60ed12f3c0
gateway: Add Ready.SessionID
2022-10-31 04:34:21 -07:00
diamondburned
f8d6199e80
gateway: Re-type SessionsReplaceEvent
2022-10-31 04:30:10 -07:00
diamondburned
60bcb4c966
gateway: Add Ready.Sessions
2022-10-31 04:11:45 -07:00
diamondburned
181dcb1bdd
api: Introduce api/cmdroute
...
This commit introduces a slash commands and autocompletion router. It
abstracts the switch-cases that the user has to do in each
InteractionEvent handler away.
The router is largely inspired by go-chi's design. Refer to the tests
for examples.
2022-10-13 23:01:29 -07:00
diamondburned
329ad0f404
discord: Add AutocompleteOptions.Unmarshal
2022-10-13 23:01:29 -07:00
diamondburned
b6221c6426
discord: Use the right type for AutocompleteOption.Options
2022-10-13 23:01:28 -07:00
diamondburned
70a7a3e44f
discord: Add some omitempty for interaction.go
2022-10-13 23:01:28 -07:00
zBNF
e058e7c7b7
api: Allow disabling interaction pubkey verification ( #350 )
...
* feat: add support for disabling signature verification
* feat: refactor solution to not break api
* feat: make InteractionServer.ServeHTTP use InteractionServer.httpHandler
2022-10-11 18:01:31 -07:00