Commit Graph

484 Commits

Author SHA1 Message Date
Shubham Parihar
af2fad9473 fix(CommandInteraction): cmds with no options throw error (#5734) 2021-06-03 09:34:40 +01:00
Shubham Parihar
fdad140997 feat(CommandInteraction): make options a collection (#5705) 2021-06-02 17:44:50 +01:00
Lupa
5141ea4f06 fix(CommandInteraction): channel type should be text based channels (#5690)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-06-02 11:05:35 +01:00
Shubham Parihar
086c3f0799 fix: interfaces not importing due to re-export of Snowflake (#5723)
Co-authored-by: Noel <icrawltogo@gmail.com>
2021-06-02 01:01:59 +01:00
Souji
7b85a7259f feat(*): enforce strings (#4880)
BREAKING CHANGE: Removes all Resolvables for only string inputs

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-06-01 16:31:49 +01:00
monbrey
66a6a1fced types(Snowflake): export the type (#5722) 2021-06-01 07:02:59 +01:00
SpaceEEC
b212b64214 feat(Message): allow editing files into messages (#5718) 2021-05-31 20:56:26 +01:00
Shubham Parihar
256d1b0dfc docs(Webhook): update typings and docs for #editMessage (#5713) 2021-05-31 20:56:08 +01:00
Noel
76db642543 types: use Snowflake type (#5717)
* types: use Snowflake type

* Update typings/index.d.ts

Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>

Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
2021-05-31 20:55:18 +01:00
Souji
d52bcd46ec feat: easier guards for channelUpdate (#5716)
* feat: easier guards for channelUpdate

* typings: more explicit typings for client events involving channels

* docs: event doc consistency regarding channel types
2021-05-31 16:38:37 +01:00
Jan
48d6850d9a feat: add support for fetching multiple guilds (#5472)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Noel <icrawltogo@gmail.com>
2021-05-29 22:37:45 +01:00
Vanished
e300518597 Added Certified Moderator badge flag. (#5642)
Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com>
2021-05-29 15:29:29 +01:00
Antonio Román
a73a5cf914 fix(Types): make event listeners accept async callbacks (#5602) 2021-05-29 12:28:21 +01:00
SpaceEEC
b90b0c3cfa fix(ApplicationCommandOptionData): options property should be itself (#5679)
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
2021-05-27 12:14:13 +01:00
Shubham Parihar
3fe7add2c5 feat(Guild): add the new nsfw_level property (#5660)
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
Co-authored-by: Noel <icrawltogo@gmail.com>
2021-05-27 12:12:52 +01:00
Shubham Parihar
b40027beb9 types(PermissionOverwriteOptions): remove unused interface (#5651) 2021-05-27 12:12:44 +01:00
SpaceEEC
9f491ffeb9 fix(APIMessage): document Interaction as valid MessageTarget (#5678) 2021-05-27 11:54:42 +01:00
Jan
ed593c91fb feat: InteractionDeferOptions (#5641) 2021-05-26 12:09:14 +01:00
Noel
f8703e3e59 chore: general cleanup (#5661) 2021-05-22 11:40:30 +02:00
Jan
03256bd9f8 fix(ApplicationCommandManager): limit permission methods to guilds (#5613)
* fix(ApplicationCommandManager): limit permission methods to guilds

* docs: add warn tags

* feat: improve error message

* style: eslint

* chore: make error name more verbose
2021-05-22 10:02:24 +02:00
Shubham Parihar
56d44fbf1c fix(CommandInteraction): update typings and docs for #editReply (#5630) 2021-05-22 09:58:06 +02:00
Casper
38bf24a6e5 chore(Colors): use new Discord colors (#5624)
* chore(Colors): use new Discord colors

* chore(Colors): add fuchsia color

* chore(Colors): add fuchsia color to ColorResolvable
2021-05-22 09:52:48 +02:00
monbrey
68b40dd91d feat(CommandInteraction): ephemeral followup messages (#5618)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
2021-05-15 00:40:23 +02:00
Souji
f831872125 feat(GuildChannel): createInvite target options (#5514)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: Advaith <advaithj1@gmail.com>
2021-05-11 22:25:09 +02:00
Vicente
d219ecd05c docs(GuildChannelManager): add stage option (#5608) 2021-05-11 22:23:58 +02:00
monbrey
2e2464bf07 feat(GuildMemberManager): extend API coverage (#4872)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-05-11 22:23:42 +02:00
Shubham Parihar
58763b0e91 feat(GuildChannel): make createOverwrite and updateOverwrite not dependent on cache (#5489)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
2021-05-11 22:23:09 +02:00
SpaceEEC
74e97ef91b fix(Message): editing with MessageEmbed or APIMessage (#5612) 2021-05-11 22:22:48 +02:00
monbrey
c56c4a8dc8 feat(MessageManager): extend API coverage (#4869)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com>
Co-authored-by: Advaith <advaithj1@gmail.com>
2021-05-11 00:32:15 +02:00
Shubham Parihar
7ce741dacd feat(Message): add ReplyMessageOptions for #reply (#5296) 2021-05-10 23:58:19 +02:00
uhKevinMC
31b4390042 feat(ShardingManager): add options typings (#5583)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-05-10 23:54:32 +02:00
Shubham Parihar
2345c6db0c typings(WebhookMessageOptions): omit reply instead of replyTo (#5610) 2021-05-10 22:48:32 +02:00
MBR-0001
6d09160f5b feat: GuildBanManager (#5276)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com>
Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com>
2021-05-10 12:35:25 +02:00
ckohen
1ecda83da7 refactor(MessageOptions): move replyTo to reply#messageReference and add failIfNotExists (#5298)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com>
2021-05-10 12:27:36 +02:00
Advaith
135abccd9c feat(APIRequest): support setting global headers in HTTPOptions (#5586)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2021-05-10 10:56:56 +02:00
monbrey
1398431bca feat(Message): replace referencedMessage with fetchReference (#5577) 2021-05-10 10:56:46 +02:00
Jan
ca9e5a0ee1 feat(Message): allow removing attachments (#5557) 2021-05-10 10:56:33 +02:00
Jan
9f74f95f69 feat: add support for application command events (#5596) 2021-05-08 01:25:27 +02:00
Jan
f7643f7bbe feat: interactions (#5448)
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com>
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
Co-authored-by: Advaith <advaithj1@gmail.com>
Co-authored-by: Shiaupiau <stu43005@gmail.com>
Co-authored-by: monbrey <rsm999@uowmail.edu.au>
Co-authored-by: Tiemen <ThaTiemsz@users.noreply.github.com>
Co-authored-by: Carter <carter@elhnet.net>
2021-05-07 17:22:33 +02:00
Junseo Park
026afc2c1a feat(Sticker): added Sticker (#4909)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
Co-authored-by: monbrey <rsm999@uowmail.edu.au>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com>
Co-authored-by: Advaith <advaithj1@gmail.com>
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com>
Co-authored-by: Mestery <48163546+Mesteery@users.noreply.github.com>
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
2021-04-30 21:53:25 +02:00
izexi
63398d6ae4 feat(Webhook): add 'fetchMessage' method (#5530) 2021-04-30 21:49:32 +02:00
Souji
d9fa180cf9 feat(GuildManager): allow system channel flags in create (#5504) 2021-04-30 21:48:57 +02:00
Souji
4866e2672f feat(Guild): setChannelPositions parent, lockPermissions keys (#5507)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
2021-04-30 21:48:51 +02:00
Souji
5397021efb fix(Emoji): name can be null (#5513) 2021-04-30 21:47:15 +02:00
monbrey
c9b53539d5 refactor(Sharding): use options objects (#5510)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2021-04-30 21:46:20 +02:00
Souji
116ecf246e feat(Webhook): sourceGuild, sourceChannel, improve owner (#5508) 2021-04-30 21:44:23 +02:00
Souji
8a059cccb8 feat(Guild): allow description and features in edit (#5505) 2021-04-27 09:36:48 +02:00
Souji
2c54f72670 chore(UserFlags): remove system flag (#5517) 2021-04-25 18:59:13 +02:00
Jan
1b827fe136 refactor: add discord-api-types as a dependency (#5539) 2021-04-23 02:18:07 +02:00
GoldElysium
0d68ca8eb9 fix: typings for 'Message' (#5518) 2021-04-21 02:44:19 +02:00