Commit Graph

589 Commits

Author SHA1 Message Date
Shubham Parihar
4bf49809f2 refactor: improve typings and docs related to threads (#5991)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-07-03 20:38:38 +01:00
monbrey
374c779f7f feat(InteractionCollector): reworked to be more generic (#5999)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-07-03 13:35:39 +01:00
Antonio Román
2446ff5251 refactor(Util): make class extend null (#6000) 2021-07-03 13:25:35 +01:00
Ishmaam Khan
e7ad2fe207 feat: PermissionOverwriteManager (#5318)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2021-07-03 13:24:38 +01:00
Antonio Román
a11a10525b refactor: rename events to be consistent with WS names (#6010)
Co-authored-by: Noel <buechler.noel@outlook.com>
2021-07-03 13:23:53 +01:00
SpaceEEC
7dd1a8da08 docs(Collector): properly document endReason (#6016) 2021-07-03 13:23:15 +01:00
ckohen
568691ce6a fix: correct permissions checks and cache on update (#6015) 2021-07-03 13:23:01 +01:00
Antonio Román
98e45a5995 feat(Formatters): added new URL utilities and docs (#6014)
* feat(Formatters): added new URL utilities and docs

* refactor: use static class to fix docsgen error

* fix(Typings): declare members as public

* docs(Formatters): add method tags

* docs: remove empty line

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

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-07-03 13:22:20 +01:00
Rodry
56b5b7ee82 types(MessageOptions): fix components being optional (#6005) 2021-07-03 08:58:29 +01:00
DTrombett
0dc5dd5808 types(*): create mention types (#6003) 2021-07-03 08:58:18 +01:00
Pravesh Kunwar
1242c5434d types(VoiceState): fix optional params (#5993) 2021-07-03 08:57:41 +01:00
BannerBomb
c40b06cac9 types(ClientUser): updated setAFK signature (#6011) 2021-07-03 08:57:31 +01:00
Adrian Paschkowski
3a718d8c62 fix(Typings): Improve components typings in MessageEditOptions (#6002) 2021-07-02 19:54:13 +01:00
Antonio Román
27e217caee chore(Constants): added new error codes (#5975) 2021-07-02 19:53:48 +01:00
kikorp78
fe6cc0c15d types(MessageSelectMenu): fix typings (#5995) 2021-07-02 00:44:05 +01:00
BannerBomb
726073fef7 docs: WebSocketShard#send and TextBasedChannel#send (#5998) 2021-07-02 00:42:11 +01:00
Antonio Román
1e73c25fbf feat(RoleManager): added edit method, alias Role#edit (#5983)
Co-authored-by: monbrey <rsm999@uowmail.edu.au>
2021-07-01 22:32:03 +01:00
Hackerboi 69
521d26c57f types(Interactions): fix function overload types (#5989) 2021-07-01 17:37:25 +01:00
monbrey
941cd86881 types: few missing thread channels (#5988) 2021-07-01 10:01:14 +01:00
monbrey
0eeb2775a5 types(MessageOptions): improved component typings (#5987) 2021-07-01 10:00:33 +01:00
Shubham Parihar
71fb33a5fe feat(StageChannel): add createStageInstance method & use better naming convention (#5951)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-07-01 09:58:11 +01:00
ckohen
388e05b4af types(ApplicationCommandPermissionsManager): fix types (#5979) 2021-07-01 09:58:01 +01:00
DTrombett
a08ce7dddb types(ThreadChannel): make locked and archived param optional (#5980) 2021-06-30 23:45:59 +01:00
Shubham Parihar
b7ed6752ac feat(Channel): add isThread typeguard for better TS support (#5978) 2021-06-30 16:19:59 +01:00
Rodry
788d58e5a3 types(*): make hex color types compatible with ColorResolvable (#5973)
* types(*): make hex color types compatible with ColorResolvable

* types(*): create HexColorString type

* types(HexColorString): move to a less awkward place
2021-06-30 14:32:14 +01:00
Antonio Román
8c7a28f211 feat(Util): added formatters (#5976) 2021-06-30 09:50:31 +01:00
Mark Fisher
ae37d202a5 types(CommandInteraction): Readd followUp type (#5974) 2021-06-30 06:21:24 +01:00
iCrawl
5842e35881 fix(Typings): erronous RawMessage 2021-06-29 23:38:23 +02:00
monbrey
5e28ff83cb feat(Interactions): option to auto-fetch replies (#5831) 2021-06-29 22:32:33 +01:00
Jake Ward
3174507d57 types(ThreadManager): add type to ThreadManager#create options (#5969) 2021-06-29 21:03:15 +01:00
DTrombett
edab5afff9 fix(Thread): make archive_timestamp not nullable (#5965) 2021-06-29 20:41:21 +01:00
Antonio Román
1925d01d8f fix(Sharding): strict type context and return (#5933) 2021-06-29 20:36:04 +01:00
Papageorgiadis Savvas
87e8cdd3eb feat(Interaction): add guild guard (#5955)
* feat(Interaction): add guild guard

* fix: remove possibly uncached getters & duplicate method

* fix: boolean ensuring

Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>

Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
2021-06-29 20:35:52 +01:00
ckohen
6264c60e97 feat(Managers): new ApplicationCommandPermissionsManager (#5897)
Co-authored-by: SpaceEEC <24881032+SpaceEEC@users.noreply.github.com>
Co-authored-by: Yoshida Tomio <mail@tomio.codes>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2021-06-29 19:19:48 +01:00
ckohen
bbc48fdad6 chore(Threads): general fixup and catch up on features (#5959)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2021-06-29 18:58:51 +01:00
Amish Shah
63a8df1c1f chore(Types): include @discordjs/voice typings (#5941)
Co-authored-by: Noel <buechler.noel@outlook.com>
2021-06-29 18:44:45 +01:00
Antonio Román
acdcb906ae types(ColorResolvable): change string to #${string} (#5950) 2021-06-29 00:42:54 +01:00
Jan
6c447b12e3 fix(Collector): docs and types (#5937) 2021-06-29 00:37:45 +01:00
Peter Maguire
d38b34756b docs(Features): resolved typo in FATEWAY_PRESENCE_LIMITED (#5952)
* Fix documentation typo

* Update index.d.ts
2021-06-29 00:34:43 +01:00
monbrey
e37ef3af21 types: define ApplicationCommand enums in lib (#5947) 2021-06-28 12:00:07 +01:00
DraftMan
0a0630c049 revert(BitField): Bring back-compatibility after BitField serialization (#5910) 2021-06-28 11:54:14 +01:00
monbrey
03d3a5cdde types: fix remaining Raw type references, update discord-api-types dep (#5942) 2021-06-27 22:48:11 +01:00
monbrey
b15d825bb3 refactor(MessagePayload): rename APIMessage (#5921) 2021-06-27 12:47:15 +01:00
Rodry
e44ae96100 fix(User): fix bot and system properties being incorrect in some cases (#5923) 2021-06-27 12:46:24 +01:00
Antonio Román
985d4d6a43 refactor: removed code and split options (#5918)
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>

BREAKING CHANGE: Removed `APIMessage#split`
BREAKING CHANGE: Removed `MessageEditOptions#code`
BREAKING CHANGE: Removed `BaseMessageOptions#code`
BREAKING CHANGE: Removed `BaseMessageOptions#split`
2021-06-26 23:11:40 +01:00
Jan
0d0c8f07f2 refactor(Collector): make filter an option (#5903)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-06-26 10:57:06 +01:00
monbrey
1439183ad3 feat(MessageComponentInteraction): component getter (#5840)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
2021-06-26 10:55:37 +01:00
ckohen
6065b11634 types(ThreadMemberManager): fix incorrect usage (#5928) 2021-06-26 10:54:23 +01:00
Jan
261612596d feat(MessageMentions): add repliedUser (#5905) 2021-06-25 11:07:31 +01:00
monbrey
e5fcf0bee5 feat(MessageSelectMenu): droppybois (#5692)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
2021-06-24 22:25:16 +01:00