diamondburned
3cb993aff9
cmdroute: Allow routing ComponentInteraction
2023-08-04 14:14:00 -07:00
PlavorSeol
78e456d49e
discord: Fix calculation of default avatar URL ( #398 )
...
* Fix the calculation of a default user avatar index
* run go fmt
2023-07-17 23:01:50 -07:00
diamondburned
4224b93c4e
discord: Add User.DisplayOr{Username,Tag}
2023-06-08 22:45:40 -07:00
diamondburned
2b0395ab12
api: Fix c07f574
broken tests
...
Closes #395 .
2023-06-07 18:03:26 -07:00
diamondburned
176d9921c7
*: -short should skip integration tests
2023-06-07 18:02:48 -07:00
sam
13a6bf10cc
discord: Support the new username system ( #393 )
...
* add support for the new username system
* rename User.GlobalName to DisplayName
2023-06-07 17:56:07 -07:00
ayn2op
73986699b7
discord: add missing permissions
...
Reference: https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags
Related: https://github.com/discord/discord-api-docs/pull/6039
2023-06-07 10:14:17 -07:00
Diamond
2ec786a788
*: Update cache-install for CI
...
This changes the locked commit to the latest branch version.
Not very ideal, we should have a v1 branch instead, but eh.
2023-06-06 17:08:54 -07:00
diamondburned
c07f574558
api: Don't omitempty SendMessageData.Flags
...
This might fix Discord pings not working. AFAIK Discord might have
changed the defaults which might have broken some of our bots.
Bots that want to set flags should explicitly do so. We're not
supporting Discord's defaults.
2023-05-24 14:25:19 -07:00
diamondburned
61f2ed7363
discord: Use <@x> for member mentions
2023-05-22 06:02:58 -07:00
ayn2op
fea383c61b
discord: move AppFlagAutoModerationRuleCreateBadge outside
2023-04-07 06:07:05 -07:00
ayn2op
6c1928f183
discord: add AppFlagAutoModerationRuleCreateBadge to ApplicationFlags
...
PR: https://github.com/discord/discord-api-docs/pull/6021
Commit: ad723a1732
2023-04-07 06:07:05 -07:00
ayn2op
b8daf636f0
discord: add Channel field to InteractionEvent struct
...
PR: https://github.com/discord/discord-api-docs/pull/6051
Commit: 88a761816b
2023-04-07 02:44:12 -07:00
Stefan Ric
82c55dffac
voice/udp: Reflect upstream changes from Discord
2023-03-20 14:05:21 -07:00
diamondburned
ba9d20b34b
gateway: Add IntentMessageContent
...
See https://discord.com/developers/docs/topics/gateway#message-content-intent .
2023-03-15 15:16:42 -07:00
hi117
abe3d2aa9b
discord: Imporve StringSelectComponent's description ( #386 )
2023-03-15 15:12:58 -07:00
hi117
f4ec5bc80e
discord: Fix reference to deleted SelectComponent ( #387 )
2023-03-15 15:11:46 -07:00
hi117
c2657da488
discord: Add limit for SelectOption.description ( #388 )
2023-03-15 15:11:08 -07:00
dependabot[bot]
68c2877780
*: Bump golang.org/x/crypto ( #380 )
...
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: direct:production
...
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:50 -08:00
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