Almeida
ee2b7cd920
refactor(APIGuildScheduledEventBase): make creator_id optional ( #315 )
2022-02-08 20:50:26 +02:00
Almeida
269a75ccf7
feat(RESTJSONErrorCodes): add error 40004 ( #314 )
2022-02-08 20:37:46 +02:00
Suneet Tipirneni
87b9b0885a
fix(GatewayThreadCreateDispatchData): newly_created is optional, and true when present ( #312 )
2022-02-03 01:32:31 +02:00
Suneet Tipirneni
7e542152da
feat(GatewayThreadCreateDispatch): Add newly_created field` ( #311 )
2022-02-01 23:54:33 +02:00
Almeida
c48aab3921
refactor: allow omitting allow and deny in permission_overwrites ( #310 )
2022-02-01 21:36:23 +02:00
Almeida
8e13cd80c6
refactor(userflags): remove None ( #308 )
...
BREAKING CHANGE: The `None` user flag is bye-bye (although I doubt anyone is using it)
2022-01-31 17:24:24 +02:00
Suneet Tipirneni
70bab5d1b2
refactor: change const enums to regular enums ( #306 )
2022-01-26 21:27:54 +02:00
Suneet Tipirneni
663c4e97fb
feat(APIScheduledEvent): add image prop ( #303 )
2022-01-26 00:15:03 +02:00
Suneet Tipirneni
9c2b185367
feat(RESTJSONErrorCodes): add error 30042 ( #305 )
2022-01-25 22:28:45 +02:00
Advaith
76588d9d38
feat(MessageFlags): add FailedToMentionSomeRolesInThread ( #280 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-01-25 21:06:15 +02:00
Suneet Tipirneni
80ed7ba1c1
feat(APIMessageInteraction): add member field ( #299 )
2022-01-25 20:56:44 +02:00
Suneet Tipirneni
56d39756c0
feat(RESTJSONErrorCodes): add error 30046 ( #304 )
2022-01-25 20:48:39 +02:00
Suneet Tipirneni
7655e20248
feat(RESTJSONErrorCodes): add error 50068 ( #302 )
2022-01-25 20:46:22 +02:00
Suneet Tipirneni
d95d9562dc
feat(APIThreadMetadata): add create_timestamp field ( #301 )
2022-01-20 01:03:44 +02:00
Suneet Tipirneni
4194bd9054
feat(RESTAPIPostChannelMessage, RESTAPIPostWebhookMessage): add flags for creation ( #300 )
2022-01-20 00:37:02 +02:00
Suneet Tipirneni
51fb37cbba
feat(RESTJSONErrorCodes): add error code 50086 ( #286 )
...
Co-authored-by: Almeida <almeidx@pm.me >
2022-01-19 21:34:23 +02:00
Suneet Tipirneni
310c68f034
feat(APIGuildPreview): add stickers ( #279 )
2022-01-19 21:08:19 +02:00
Suneet Tipirneni
2c1fbda621
types: Add tagged type unions for channel types ( #200 )
...
BREAKING CHANGE: All of the channel types are now split based on their type. As such, you will need to assert the type (either by checking it with the enum or by casting the data as the correct channel) before accessing data.
*If you encounter any missing properties due to this, please open an issue! This is a big change, and we hope nothing is missing*
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2022-01-19 15:58:02 +02:00
Rodry
08a8b28ee1
refactor(ActivityType): change Game to Playing ( #298 )
...
BREAKING CHANGE: `Game` was renamed to `Playing`
2022-01-19 01:13:03 +02:00
Suneet Tipirneni
b07d5a0c22
feat(Locales): add locale string enum ( #297 )
2022-01-19 00:36:49 +02:00
Suneet Tipirneni
03b8d3fee0
feat(APIInteraction): add locale props to interactions ( #273 )
...
Reference: https://github.com/discord/discord-api-docs/pull/4265
2022-01-11 02:11:32 +02:00
Suneet Tipirneni
03f12d71ee
feat(UserFlags): add Spammer flag ( #294 )
2022-01-10 00:31:24 +02:00
Jan
83f29b6928
feat(RouteBases): add base for guild scheduled events ( #293 )
2022-01-09 23:59:15 +02:00
Ben
9a982ff8d9
feat(RESTPatchAPIGuildMember): add modify current member and deprecate nick route ( #262 )
...
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com >
2022-01-09 20:30:26 +02:00
Blake Leonard
5056b0f2b3
feat(RESTPatchAPIGuildMember): add communication_disabled_until field ( #289 )
2022-01-07 21:14:03 +02:00
Vlad Frangu
7ecf9b2c16
chore(release): 0.26.1 🎉 ( #285 )
0.26.1
2022-01-02 03:22:53 +02:00
Vlad Frangu
fe1f5313a8
fix(APIApplicationCommandOption): correct type for integer and number ( #284 )
2022-01-02 03:19:25 +02:00
Jiralite
0cf51abc26
feat(APIAuditLogChangeData): Add communication_disabled_until ( #281 )
2021-12-27 18:30:02 +02:00
cherryblossom000
751aee6fa7
feat(APIGuildScheduledEvent): add more precise types for stage instance/voice/external events ( #278 )
...
This commit turns `APIGuildScheduledEvent` into a union of
`APIStageInstanceGuildScheduledEvent`, `APIVoiceGuildScheduledEvent`,
and `APIExternalGuildScheduledEvent`, which each has more precise types
according to [the docs][1].
This commit also fixes a bug as previously
`APIGuildScheduledEvent#entity_metadata` was not nullable, even though
it should be.
[1]: https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-field-requirements-by-entity-type
2021-12-26 16:56:43 +02:00
Almeida
9f4f59c8e5
feat(ApplicationFlags): add embedded application flags ( #277 )
...
While Discord considers it not relevant, invites for in-app applications use at least one of these flags. Reference PR: https://github.com/discord/discord-api-docs/pull/4248
2021-12-25 14:30:10 +02:00
Vlad Frangu
cd580fa2c6
chore(release): 0.26.0 🎉 ( #276 )
0.26.0
2021-12-24 17:31:30 +02:00
Vlad Frangu
c20e5ae2a9
chore: bring in support for TS 4.5's exactOptionalPropertyTypes ( #275 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-12-24 17:08:58 +02:00
Vlad Frangu
7fe78cec25
chore: cleanup chat input options ( #274 )
2021-12-24 15:37:08 +02:00
Jiralite
bfc5e46f53
feat: Add API error code 50109 ( #268 )
...
* feat: add API error
* refactor: elongate error name
2021-12-23 10:44:42 +02:00
Suneet Tipirneni
8bbb81942b
types: make application command option union easier to use ( #250 )
2021-12-22 20:19:45 +02:00
Bryce Roethel
46db72da2f
fix(GatewayStageInstance): Stage Instance dispatches not included in GatewayDispatchPayload ( #267 )
2021-12-21 14:37:35 +02:00
Suneet Tipirneni
0bbc9721f6
feat(APIGuildMember): add guild timeouts ( #235 )
2021-12-21 14:32:54 +02:00
Jiralite
7eee39d86c
fix(StickerPack): Optional banner_asset_id ( #270 )
...
BREAKING CHANGE: `banner_asset_id` is now optional. Reference PR: https://github.com/discord/discord-api-docs/pull/4245
2021-12-16 20:20:20 +02:00
Suneet Tipirneni
2c72242a03
feat(GatewayThreadMemberUpdateDispatchData): add guild_id extra field ( #266 )
2021-12-14 21:26:46 +02:00
Cynthia
7ab780b3ae
fix: only a partial object is needed when updating attachments ( #263 )
2021-12-13 11:08:39 +02:00
Marvin Witt
315ce35849
fix(NonDispatchPayload): t & s fields are always null on non-dispatch payloads ( #259 )
2021-12-08 15:16:31 +02:00
Advaith
c67d426e3d
fix(APIInvite): channel can be null ( #182 )
...
BREAKING CHANGE: this marks the channel property of invites as possibly null
2021-12-07 22:57:28 +02:00
Suneet Tipirneni
e9d02a19fc
feat: add support for user guild member read oauth2 scope and route ( #254 )
2021-12-07 22:25:50 +02:00
Suneet Tipirneni
9e619fc460
feat(RESTJSONErrorCodes): add error 20029 ( #257 )
2021-12-07 19:26:01 +02:00
Jiralite
b01716bf22
feat: Add API error code 50055 ( #256 )
2021-12-07 01:29:36 +02:00
Suneet Tipirneni
c7efcd5505
feat(APIAuditLog): add guild_scheduled_events prop ( #251 )
2021-12-01 10:17:08 +02:00
Vlad Frangu
52c91f8f73
chore(release): 0.25.2 🎉 ( #249 )
0.25.2
2021-11-30 22:28:16 +02:00
Suneet Tipirneni
47382b6183
feat(Guild): boost progress bars ( #227 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-11-30 21:12:26 +02:00
PikaDude
51dee6e0e5
fix(APISelectMenuComponent): options property is required ( #248 )
2021-11-30 20:11:44 +02:00
Vlad Frangu
3ff85eede4
chore(release): 0.25.1 🎉 ( #246 )
0.25.1
2021-11-30 13:15:45 +02:00