Commit Graph

673 Commits

Author SHA1 Message Date
Vlad Frangu
74fc23b3de chore(Deps): update @discordjs/builders (#6259) 2021-08-01 01:42:20 +01:00
ckohen
00c2bf81cd types: use api-types for stricter typings (#6230)
* types: use api-types for stricter typings

* fix: fixes from pr comments

Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com>
Co-Authored-By: Antonio Román <kyradiscord@gmail.com>

* types: bigint not BigInt

Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
2021-07-31 22:48:11 +01:00
Jiralite
24931d713b refactor(VoiceState): Change kick to disconnect (#6251) 2021-07-31 21:04:10 +01:00
1Computer1
bb5e648f3d refactor: merge collections with keeping entries at max (#6242) 2021-07-31 21:03:58 +01:00
Rodry
a25e16599a feat(MessageEmbed): add setFields method (#6186)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-07-31 13:15:49 +01:00
Rodry
331a9d3ffc feat(ThreadChannel): add fetchOwner() method (#6207)
* feat(ThreadChannel): add owner and fetchOwner()

* fix(ThreadChannel): remove owner and return ThreadMember with fetchOwner

* fix(ThreadChannel): apply suggestions from code review

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>

* fix(ThreadChannel): correctly point to the manager

* docs(FetchOwnerOptions): update desc to mention threads

* fix(ThreadChannel): fetchOwner can return null

* docs(ThreadChannel): owner is nullable

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
2021-07-31 13:00:33 +01:00
Suneet Tipirneni
77c72e625f types(ButtonMessageOptions): make button/link button typings more specific (#6212)
* types(ButtonMessageOptions): make button typings more specific

* Update typings/index.d.ts

Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com>

Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com>
2021-07-31 12:59:58 +01:00
Rodry
434e330754 refactor(Message): accept a single object instead of 3 arguments (#6244)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
2021-07-31 12:22:19 +01:00
ckohen
198a5c490d refactor: move member adding to manager (#6231)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
2021-07-31 12:21:47 +01:00
ckohen
2a07055cc0 refactor: use guild-wide route for fetching active threads (#6193)
Co-authored-by: SpaceEEC <24881032+SpaceEEC@users.noreply.github.com>
2021-07-31 12:19:41 +01:00
1Computer1
00bae4fe6b refactor: remove extended collection (#6246)
Co-authored-by: iCrawl <buechler.noel@outlook.com>
2021-07-31 12:08:59 +01:00
Jiralite
65ae06429d refactor: Strengthen channel typings in appropriate places (#6232) 2021-07-31 09:52:41 +01:00
ckohen
dbb59ba1b2 feat(Util): add SweptCollection for auto sweeping of caches (#6110)
Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com>
Co-authored-by: 1Computer1 <22125769+1Computer1@users.noreply.github.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: NotSugden <28943913+NotSugden@users.noreply.github.com>
Co-authored-by: Shino <shinotheshino@gmail.com>
Co-authored-by: SpaceEEC <24881032+SpaceEEC@users.noreply.github.com>
Co-authored-by: Noel <icrawltogo@gmail.com>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2021-07-30 22:57:46 +01:00
ckohen
5f710ae559 refactor(Message): make thread a getter for accuracy (#6215)
* refactor(Message): make thread a getter for accuracy

* docs: reword info block
2021-07-30 00:04:05 +01:00
Jiralite
a69e2f7904 refactor: Match subcommand (group) name casing with Discord's (#6204) 2021-07-29 11:52:06 +01:00
GoldenAngel
4beb64769c chore(Integration): Cleanup removed methods (#6220) 2021-07-29 11:51:47 +01:00
Justin
e000af5c98 feat(WebhookClient): allow creation of clients via URLs (#6192) 2021-07-29 11:48:43 +01:00
Scott Bucher
19b242ac10 feat(FetchRecommendedShardsOptions): account for large bot sharding (#6184)
Co-authored-by: Justin <justinleeong@gmail.com>
2021-07-29 02:52:51 +01:00
ckohen
4f1f32f2a5 types(WsEvents): add thread ws events (#6194) 2021-07-28 21:35:49 +01:00
ckohen
26ba0e1036 feat(GuildAuditLogs): add threads (#6195) 2021-07-28 20:05:01 +01:00
Jiralite
f060a3fcd7 fix: Use string instead of Snowflake for invites (#6202) 2021-07-28 20:04:51 +01:00
Jiralite
5e433b5995 docs(InteractionResponses): Document missing properties (#6178) 2021-07-28 01:30:22 +01:00
ckohen
9679b90872 fix(ThreadChannel): better property handling (#6172) 2021-07-28 01:29:06 +01:00
Advaith
b22272f860 feat(Guild): add fetchWidget() for getting widget data (#6180) 2021-07-27 11:15:31 +01:00
Advaith
2f1cc1fc27 feat(ApplicationCommandOptionType): add NUMBER (10) (#6128) 2021-07-27 11:12:43 +01:00
Tiemen
4886ae23ab refactor: only cache commands from own user (#6161) 2021-07-23 20:19:17 +01:00
Milo
4f8ca2936a fix(Typings): type attachments to InteractionUpdateOptions (#6162)
* fix(Typings): type attachments with never

* Update typings/index.d.ts

Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com>

* chore(Typings): fix

* chore(Typings): add fetchReply

Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com>
2021-07-23 20:18:30 +01:00
Shino
690c121aa9 feat(CommandInteractionOptionResolver): add sub-command required option (#6165) 2021-07-23 20:17:34 +01:00
ckohen
cd47a524af refactor(Message): combine patch methods (#6071) 2021-07-22 09:05:38 +01:00
Shino
328501bd8e refactor(CommandInteractionOptionResolver): add readonly data property (#6156) 2021-07-21 22:22:47 +01:00
Apokalypt
85865058ed types(DataManager): add 'K' to type parameter of 'resolveId' (#6152)
Co-authored-by: Apokalypt <enterprise@apokalypt.fr>
2021-07-21 08:38:55 +01:00
Tristan Guichaoua
1e90be8f7a types(ColorResolvable): readonly tuple (#6153) 2021-07-20 20:20:37 +01:00
Jan
5addcd15d8 refactor(OptionResolver): accept single type instead of an array (#6154) 2021-07-20 20:20:20 +01:00
Advaith
54d6a3a070 feat(Sticker): updates, sticker packs, and guild stickers (#5867)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: Tiemen <ThaTiemsz@users.noreply.github.com>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: BannerBomb <BannerBomb55@gmail.com>
Co-authored-by: Noel <icrawltogo@gmail.com>
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
2021-07-20 00:17:21 +01:00
Vlad Frangu
76888e6c1b chore(Deps): update discord-api-types to 0.19.0 (#6147) 2021-07-20 00:15:42 +01:00
Shino
77784aca43 fix(CommandInteraction): change options type from Collection to array (#6139) 2021-07-19 08:02:53 +01:00
Devin
8ea04b295d Updates identity to correct scope name of identify (#6140) 2021-07-19 08:02:37 +01:00
DTrombett
63ce065fc3 refactor: change const enums to interfaces (#6078)
* types(*): revert const enum to enum

* refactor: change const enums to interfaces
2021-07-18 19:29:40 +01:00
GoldenAngel
9f039a8679 feat(GuildPreview): add createdAt & createdTimestamp (#6130)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-07-18 19:18:53 +01:00
Shino
f293132345 feat(CommandInteraction): add CommandInteractionOptionResolver (#6107)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
2021-07-18 19:16:32 +01:00
Antonio Román
ef5ba05996 types(Message): mark #thread as nullable (#6129) 2021-07-17 12:25:05 +01:00
Antonio Román
5ca97c9351 refactor: remove timer utilities from Client (#6113) 2021-07-16 13:31:25 +01:00
Joey Smalen
f200f14a40 feat(REST): append additional information to the required User Agent (#6112)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2021-07-16 12:27:12 +01:00
DTrombett
8db6df3d1e types(Options): add types for cacheWithLimits (#6095) 2021-07-16 12:20:38 +01:00
Antonio Román
576eee8de2 refactor: remove typing caching (#6114)
Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com>
2021-07-16 12:20:05 +01:00
Shino
4206e35b23 feat(Client): add conditional ready typings (#6073) 2021-07-14 16:19:38 +01:00
DTrombett
60148c6a78 types(Interaction): change inGuild return type (#6094) 2021-07-14 16:14:20 +01:00
Bluenix
a9e7ebd94f types(PartialWebhookFields): add APIMessage to deleteMessage union (#6085) 2021-07-14 16:13:32 +01:00
Hackerboi 69
98c60789a2 types(Interactions): fix function overloads (#6109) 2021-07-13 13:31:55 +01:00
monbrey
1dcad051a8 revert: support for nested arrays of components, fix error handling (#6081) 2021-07-12 07:53:27 +01:00