iCrawl
bd75214c57
chore(discord.js): release discord.js@13.12.0
2022-10-10 19:31:58 +02:00
RedGuy12
8a6588a132
feat(Util): backport escapeMarkdown PRs to v13 ( #8703 )
2022-10-10 19:14:36 +02:00
vunsh
ea117bfb7e
docs: update UserContextMenu documentation v13 ( #8721 )
...
Co-authored-by: A. Román <kyradiscord@gmail.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2022-10-09 23:05:10 +02:00
iCrawl
8d6a55d2c7
chore(discord.js): release discord.js@13.11.0
2022-09-15 20:44:27 +02:00
iCrawl
5ef30a0173
chore: deps
2022-09-15 20:30:24 +02:00
Almeida
8f94a9ca2f
chore: fix typescript tests (v13) ( #8628 )
2022-09-15 20:21:15 +02:00
Almeida
fcd52d7fc6
docs: update misleading Client#guildMemberAvailable event description (v13) ( #8627 )
2022-09-15 20:14:15 +02:00
RedGuy12
f4e81330bf
types(GuildChannelManager): correct fetch return type (v13) ( #8551 )
2022-09-13 09:10:47 +02:00
Jeroen Claassens
e6ee7d8374
fix: fixed TS 4.8 compatibility ( #8601 )
2022-09-08 15:02:25 +02:00
JsCoder2022
56177998c5
add MESSAGE_CONTENT intent (v13) ( #8580 )
2022-09-02 17:22:59 +02:00
Jiralite
ca68fc3f6b
feat(GuildBanManager): Add deleteMessageSeconds ( #8575 )
2022-09-02 17:22:36 +02:00
iCrawl
a507ed9590
chore(release): discord.js 13.10.3
2022-08-22 11:42:06 +02:00
iCrawl
f0c0166814
chore: deps
2022-08-22 11:38:39 +02:00
Jiralite
10b12ccea6
types: Disallow some channel types from webhook creation ( #8535 )
2022-08-22 09:46:17 +02:00
Jiralite
526ea74e66
types(ModalMessageModalSubmitInteraction): channelId is not nullable (v13) ( #8505 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
2022-08-17 09:47:31 +02:00
Jiralite
b6f48ec84a
Specify time unit in awaitModalSubmit (v13) ( #8506 )
...
Co-authored-by: Marcus Otterström <github@otterstrom.dev >
2022-08-17 09:47:19 +02:00
GodderE2D
11d69491e0
docs: fix broken discord support link ( #8485 )
2022-08-15 15:53:11 +02:00
iCrawl
30e89a401d
chore(discord.js): release discord.js@13.10.2
2022-08-10 20:54:17 +02:00
RedGuy12
03c59e3a83
types(Message): correct bulkDelete return type (v13) ( #8469 )
2022-08-10 20:37:51 +02:00
iCrawl
9ce7e5edcf
chore(discord.js): release discord.js@13.10.1
2022-08-10 20:22:28 +02:00
Jiralite
2a46d9f58e
fix(ThreadChannel): Handle possibly null parent (v13) ( #8467 )
2022-08-10 20:17:21 +02:00
iCrawl
78e494b06e
chore(discord.js): release discord.js@13.10.0
2022-08-10 19:40:09 +02:00
Jiralite
ae43bca8b0
feat(Guild): Add max_video_channel_users (v13) ( #8424 )
2022-08-08 11:05:46 +02:00
iCrawl
7321507559
chore(discord.js): release discord.js@13.9.2
2022-07-29 10:55:59 +02:00
Almeida
d0a4199760
fix(MessageMentions): ignoreRepliedUser option in has() (v13) ( #8365 )
2022-07-29 10:47:13 +02:00
Jiralite
96125079a2
fix(GuildChannelManager): allow unsetting rtcRegion (v13) ( #8362 )
...
Co-authored-by: SpaceEEC <24881032+SpaceEEC@users.noreply.github.com >
2022-07-26 09:28:44 +02:00
Jiralite
7b41fb6b5a
chore: disable scope-case rule for commitlint (v13) ( #8363 )
...
chore: disable scope-case rule for commitlint
Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2022-07-25 19:40:19 +02:00
Jiralite
4f7c1e35c3
fix(ThreadChannel): Omit webhook fetching (v13) ( #8352 )
2022-07-24 17:26:34 +02:00
iCrawl
622c77ba7a
chore(discord.js): release discord.js@13.9.1
2022-07-24 00:12:06 +02:00
pat
be35db2410
refactor(embed): deprecate addField ( #8318 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Arjun Sharda <77706434+ArjunSharda@users.noreply.github.com >
Co-authored-by: Almeida <almeidx@pm.me >
2022-07-23 23:39:03 +02:00
Jiralite
e95caa7e45
refactor(Presence): Remove redundant date parsing (v13) ( #8341 )
2022-07-23 18:21:53 +02:00
iCrawl
5c1e558570
ci: add vercel check deploy branch script
2022-07-20 23:09:40 +02:00
Almeida
4cf05559a2
fix(ApplicationCommandManager): allow passing 0n to defaultMemberPermissions (v13) ( #8312 )
2022-07-20 20:12:28 +02:00
iCrawl
d9432aba71
ci: correct path to docs.json
2022-07-18 17:58:32 +02:00
iCrawl
f2a6f9fc1d
ci: remove build step
2022-07-18 17:55:37 +02:00
iCrawl
da3d4873a7
ci: fix documentation deployment for v13
2022-07-18 17:53:35 +02:00
iCrawl
64928abb9e
chore(discord.js): release discord.js@13.9.0
2022-07-17 19:39:23 +02:00
iCrawl
7b7cc1c6cb
chore: deps
2022-07-17 19:38:43 +02:00
Cinnamon
00a705707e
docs: add new HTTP Error Codes 50068 (v13) ( #8273 )
2022-07-17 19:10:43 +02:00
BattleEye
4d86cf4ce0
fix(PermissionOverwriteManager): mutates user ( #8282 )
...
Fix PermissionOverwriteManager changing userOrRole
Since it's mutated the original Member object won't be passed to upset and will be seen as invalid if User cache is disabled.
Functions normally even with User cache disabled after the fix.
2022-07-17 19:10:03 +02:00
Jiralite
beb3d8ec26
fix(GuildChannelManager): Access resolveId correctly (v13) ( #8297 )
2022-07-17 18:51:39 +02:00
muchnameless
8fe166dcfd
fix(GuildChannelManager): edit lockPermissions ( #8267 )
2022-07-12 22:34:40 +02:00
Cinnamon
9cc336c43b
docs: Add MessageActivityType (v13) ( #8257 )
2022-07-09 19:42:43 +02:00
MateoDeveloper
a93f4b1ba2
feat(ApplicationCommand): add min_length and max_length for string option (v13) ( #8217 )
2022-07-06 20:39:55 +02:00
Almeida
f457cdd2de
fix(applicationcommandmanager): explicitly allow passing builders to methods (v13) ( #8229 )
2022-07-05 11:12:13 +02:00
Vlad Frangu
f704b261c0
fix: pass in the expected query object type for application commands ( #8189 )
2022-07-03 18:04:44 +02:00
Jiralite
631abee693
types(GuildMemberManager): Non-void return of edit() (v13) ( #8187 )
2022-07-03 18:04:35 +02:00
Superchupu
feb8e30d2e
docs(MessageInteraction): update commandName description (v13) ( #8220 )
2022-07-03 15:43:10 +02:00
Jiralite
4063b90cef
fix: Use non-global flag whilst resolving regular expressions ( #8178 )
...
fix(DataResolver): remove global flag on resolving
2022-06-30 00:39:48 +02:00
KinectTheUnknown
0e0f784447
fix(GuildStickerManager.fetchUser): Changed guildId to guild.id ( #8176 )
...
fix(GuildStickerManager.fetchUser): guildId to guild.id
2022-06-30 00:39:28 +02:00
Almeida
e8d72c7245
fix(guildmemberremove): remove member's presence for v13 ( #8182 )
...
Backports #8181
2022-06-30 00:38:08 +02:00
Almeida
4ae08ad9ef
docs(constants): document missing constants ( #8168 )
2022-06-30 00:37:21 +02:00
Almeida
222fc9c679
feat(interaction): add appPermissions (v13) ( #8195 )
2022-06-30 00:36:07 +02:00
Almeida
079973f1cf
types: add missing shard types (v13) ( #8192 )
2022-06-30 00:35:51 +02:00
Almeida
125696fc79
feat: partially backport perms v2 for v13 ( #8162 )
2022-06-24 00:05:11 +02:00
DD
c198e893c9
fix(WebSocketShard): backport error handler preservation on connections ( #8164 )
2022-06-23 21:13:33 +02:00
iCrawl
7e1904c2ad
chore(release): version
2022-06-23 17:38:54 +02:00
Jiralite
c61fc8082a
fix(VoiceChannel): NSFW property (v13) ( #8161 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: pat <73502164+nyapat@users.noreply.github.com >
2022-06-23 14:51:42 +02:00
Jiralite
65444f510d
docs: TextBasedChannel-> TextBasedChannels typos (v13) ( #8155 )
2022-06-23 12:37:28 +02:00
KinectTheUnknown
70450f6873
typings(Shard#reconnecting): Backport to v13 - Fix event name ( #8126 )
2022-06-20 14:47:54 +02:00
Superchupu
3638b4021a
refactor: deprecate $ prefix from ws.properties keys ( #8095 )
2022-06-17 23:26:57 +02:00
MateoDeveloper
0ab2227984
fix(ModalSubmitInteraction): add isFromMessage() missing method ( #8092 )
2022-06-15 01:02:03 +02:00
Voxelli
afb18b99b7
fix: destroy options during cleanup ( #8082 )
2022-06-13 20:03:56 +02:00
Rodry
613fd43fcf
types(AutocompleteOption): backport fix and improve types ( #8078 )
2022-06-13 20:03:39 +02:00
Jiralite
3095f350e0
fix(AuditLog): default changes to empty array ( #8076 )
2022-06-13 20:03:22 +02:00
Synbulat Biishev
0d0190a6fd
types(GuildChannel): fix type of .isText() method ( #8061 )
2022-06-13 20:03:04 +02:00
iCrawl
8f6df90035
chore(release): version
2022-06-05 19:28:12 +02:00
Almeida
876816ab2a
fix(guildchannelmanager): wrong parameter in _sortedChannels call ( #8011 )
2022-06-05 19:17:38 +02:00
iCrawl
a8f2b2cfb4
chore: deps
2022-06-05 19:07:36 +02:00
Suneet Tipirneni
ddfe15b872
feat: backport text-in-voice support to v13 ( #7999 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2022-06-05 18:30:48 +02:00
Voxelli
114bcc07a9
fix(websocketshard): deal with zombie connection caused by 4009 ( #7581 )
...
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: Vitor <milagre.vitor@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com >
2022-06-05 09:38:31 +02:00
Josh Wee
76df9fdc45
fix: video quality mode data property ( #7946 )
2022-06-05 09:36:07 +02:00
GrapeColor
a51420f7f8
fix(ApplicationCommandOptionType): Add attachment to jsdoc ( #7952 )
...
Co-authored-by: GrapeColor <grapecolor@users.noreply.github.com >
2022-06-05 09:35:36 +02:00
iCrawl
e3cbd45e7d
chore: release
2022-05-13 11:49:56 +02:00
Synbulat Biishev
ea28638a0c
fix(MessageEmbed): fix a typo ( #7906 )
2022-05-12 10:24:54 +02:00
Almeida
43a7870b23
docs(shardingmanager): fix type of execArgv option (v13) ( #7863 )
2022-05-02 09:38:11 +02:00
Hyro
6dcf0bda05
docs: fix and improve localization docs (v13 backport) ( #7807 )
2022-04-21 19:06:28 +02:00
Almeida
816936eafb
fix(GuildEditData): some fields can be null for v13 ( #7633 )
...
* fix(GuildEditData): some fields can be null for v13
* fix: make even more things nullable
2022-04-19 16:01:59 +02:00
Sasial
1d09ad4652
types: fix ModalSubmitInteraction ( #7768 )
2022-04-19 15:59:58 +02:00
Jiralite
5165b18b85
feat: backport ( #7776 )
2022-04-19 15:59:05 +02:00
Rodry
7afcd9594a
types(threadchannel): fix autoArchiveDuration types ( #7817 )
2022-04-19 15:54:39 +02:00
Jiralite
b9802f4b6f
refactor: deprecate v13 properties and methods ( #7782 )
...
* refactor: deprecate splitting
* refactor: deprecate `IntegrationApplication#summary`
https://github.com/discordjs/discord.js/pull/7729
* docs: amend store channel wording
* refactor: deprecate fetching of application assets
* docs: deprecate vip field in voice regions
2022-04-17 10:52:50 +02:00
Jiralite
1040ce0e71
docs(ApplicationCommand): Fix ApplicationCommandOptionChoice ( #7798 )
2022-04-17 10:47:34 +02:00
Jiralite
3eb45e30b3
feat: backport ( #7787 )
2022-04-14 12:48:31 +02:00
Jiralite
ab324ea6ae
feat: backport ( #7786 )
2022-04-14 12:48:10 +02:00
Hyro
022e138b9a
feat: add support for localized slash commands (v13 backport) ( #7766 )
2022-04-14 12:47:46 +02:00
Superchupu
9e4a900e6d
feat: app authorization links and tags for v13 ( #7731 )
2022-04-14 12:47:11 +02:00
Jiralite
6c5613255a
feat: backport ( #7777 )
2022-04-14 12:45:54 +02:00
Jiralite
ff49b82db7
feat: backport ( #7778 )
2022-04-14 12:45:35 +02:00
Jiralite
ae7f991e8d
feat: backport ( #7779 )
2022-04-14 12:45:16 +02:00
Jiralite
cedc333940
feat: backport ( #7783 )
2022-04-14 12:44:24 +02:00
Jiralite
6daee1b235
feat(VoiceChannel): Support video_quality_mode (v13) ( #7785 )
2022-04-14 12:43:25 +02:00
Jiralite
68498a87be
feat(StageInstance): add support for associated guild event ( #7713 )
2022-04-12 17:19:59 +02:00
Jiralite
ab6c2bad84
fix: apply v14 fix ( #7756 )
2022-04-12 17:11:57 +02:00
Almeida
c9e4562fd5
fix(GuildChannelManager): delete method accessing wrong id ( #7771 )
2022-04-12 17:08:57 +02:00
Ryan Munro
e1cdcfa9a6
feat(modals): modals, input text components and modal submits, v13 style ( #7431 )
2022-04-09 11:36:49 +02:00
Jiralite
5e8162a137
feat: Backport Interaction#isRepliable ( #7563 )
2022-04-09 11:36:15 +02:00
Rodry
9f09702854
feat: add methods to managers for v13 ( #7611 )
2022-04-09 11:35:17 +02:00
Jiralite
8e7d15e49d
feat: Add premiumSubscriptionCount to InviteGuild ( #7629 )
2022-04-09 11:34:24 +02:00
Jiralite
b9c5676006
refactor: remove non-breaking stuff ( #7636 )
2022-04-09 11:33:44 +02:00
Almeida
dfea9c27ce
fix(GuildScheduledEvent): handle missing image for v13 ( #7627 )
2022-03-24 20:59:19 +01:00
Jiralite
78140748ce
types(InteractionCollector): Fix guild and channel types ( #7624 )
2022-03-10 09:00:58 +01:00
Ben
a7535a2232
feat(scheduledevents): Event cover images for v13 ( #7613 )
...
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com >
2022-03-07 19:26:57 +01:00
Rodry
7a52785f7d
fix(messagementions): fix has method for v13 ( #7591 )
...
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: Synbulat Biishev <syjalo.dev@gmail.com >
2022-03-06 16:26:57 +01:00
Ben
13dd82d7fa
fix: check if member has admininistrator on moderatable (v13) ( #7578 )
2022-03-02 10:38:04 +01:00
Jiralite
93cdb2f2fa
feat: Backport MessageMentions channel type fixes ( #7562 )
2022-03-02 10:32:57 +01:00
Jiralite
611d3a7b2f
feat: Backport cache types resolving to never ( #7561 )
2022-03-02 10:32:46 +01:00
Jiralite
29d42ed319
feat: Backport sending message flags ( #7560 )
2022-03-02 10:32:36 +01:00
Jiralite
1d97dcff08
feat(ThreadChannel): Backport creation timestamp ( #7559 )
2022-03-02 10:32:25 +01:00
Jiralite
679b87c4f8
feat: Add custom image support to version 13 ( #7557 )
2022-03-02 10:32:13 +01:00
Jiralite
b231bece0e
feat: Backport reason on pin and unpin ( #7556 )
2022-03-02 10:32:03 +01:00
Jiralite
49397c0ca4
fix(ThreadChannel): Require sendable for unarchivable ( #7555 )
2022-03-02 10:31:51 +01:00
Jiralite
215dfe02d5
feat(GuildPreview): Add stickers to version 13 ( #7554 )
2022-03-02 10:31:41 +01:00
Jiralite
69ba067a65
docs: Backport version 13 fixes ( #7552 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
2022-03-02 10:31:28 +01:00
Jiralite
5f621c1995
fix: Backport MessageReaction#me being incorrectly false ( #7553 )
2022-03-02 10:30:13 +01:00
Jiralite
ee1698d928
feat: Backport sweepStickers method ( #7558 )
2022-03-02 10:29:59 +01:00
Ben
2fcf8af421
feat(scheduledevents): add image option (v13) ( #7549 )
2022-02-26 11:14:48 +01:00
EhsanFox
f0960698d2
fix(typings): sweepStageInstances typo ( #7521 )
2022-02-23 08:39:05 +01:00
ckohen
30baff7ecb
fix(MessagePayload): v13 don't set reply flags to target flags ( #7515 )
2022-02-23 08:37:59 +01:00
Jiralite
2b3db734df
feat(thread): v13 add newlyCreated to threadCreate event ( #7481 )
2022-02-20 13:42:23 +01:00
Jiralite
0b54089c43
types: V13 channel create overloads fix ( #7480 )
2022-02-20 13:39:20 +01:00
Jiralite
77b8e01911
fix(Shard): V13 EventEmitter listener warning ( #7479 )
2022-02-17 17:46:06 +01:00
Parbez
bc5ddc36fa
fix(MessageEmbed): set footer to undefined ( #7358 )
2022-02-13 12:44:16 +01:00
Ryan Munro
5bcca8b97f
feat(commands): attachment options ( #7441 )
2022-02-13 12:41:41 +01:00
iCrawl
988a51b764
chore(release): version
2022-01-13 18:24:17 +01:00
Rodry
1f4e633ce3
docs(interaction): add locale list link ( #7261 )
2022-01-13 18:20:35 +01:00
Suneet Tipirneni
233084a601
feat: add Locales to Interactions ( #7131 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
2022-01-13 18:18:02 +01:00
iCrawl
ac8c122c2a
chore(release): version
2022-01-07 23:57:17 +01:00
ckohen
2dabd82e26
fix(sweepers): provide default for object param ( #7182 )
2022-01-07 23:53:27 +01:00
Attituding
780b7ed39f
docs(Sweepers): fix typo ( #7165 )
2021-12-30 10:13:51 +01:00
iCrawl
9cdc4482a0
chore: dev version
2021-12-29 12:08:52 +01:00
iCrawl
2f6f365098
chore(release): version
2021-12-29 12:00:43 +01:00
iCrawl
22cadaf40f
chore: deps
2021-12-29 11:19:20 +01:00
Jiralite
3496516dc9
refactor(MessageEmbed): Deprecate strings for setAuthor() (completely) and setFooter() ( #7153 )
2021-12-29 11:04:16 +01:00
Shubham Parihar
baacd6ba69
feat(GuildMember): add method to check timeout ( #7146 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-12-29 10:52:15 +01:00
Suneet Tipirneni
1391c363e5
chore: bump dapi-types ( #7159 )
2021-12-29 00:34:14 +01:00
iCrawl
4cc6331e5c
chore: fixup commits in changelog
2021-12-28 12:36:06 +01:00
iCrawl
1ae1853788
chore: fixup changelog generation
2021-12-28 12:17:23 +01:00
iCrawl
d80fddf06d
chore: better changelog generation
2021-12-28 12:13:38 +01:00
Antonio Román
3c62bd2d47
refactor: import timers, process, and Buffer from node: ( #7157 )
...
Co-authored-by: muchnameless <12682826+muchnameless@users.noreply.github.com >
Co-authored-by: Almeida <almeidx@pm.me >
2021-12-28 10:15:24 +01:00
muchnameless
d0c3961aef
fix(GuildMemberManager): nick endpoint ( #7151 )
2021-12-26 18:52:48 +01:00
D Trombett
fc4292e2e9
fix(Permissions): toArray shouldn't check admin ( #7144 )
2021-12-26 15:46:35 +01:00
Jiralite
7e5f16b6b3
fix: Remove deprecation warning on Message#cleanContent ( #7143 )
2021-12-26 15:46:28 +01:00
Superchupu
f1d35e32ee
ci: use correct capitalization of npm ( #7150 )
2021-12-26 12:57:24 +01:00
Kyler Chin
2bfc638a5c
feat(ClientOptions): waitGuildTimeout amount client option ( #6576 )
...
Co-authored-by: D Trombett <73136330+DTrombett@users.noreply.github.com >
Co-authored-by: Hackerboi 69 <62872992+thehackerboi69github@users.noreply.github.com >
Co-authored-by: monbrey <rsm999@uowmail.edu.au >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Yoshida Tomio <mail@tomio.codes >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-12-24 14:30:00 +01:00
iCrawl
ea9e897b92
chore: bump version
2021-12-24 12:26:51 +01:00
iCrawl
bf346e7fdf
chore: release
2021-12-24 12:25:12 +01:00
iCrawl
391211040a
chore: deps
2021-12-24 12:21:53 +01:00
Rodry
1626dded5b
types(CategoryChannel): fix createChannel return type ( #7138 )
2021-12-24 11:58:50 +01:00
Rodry
e6f41b578a
fix(BaseMessageComponent): don't create new class instances ( #7140 )
2021-12-24 11:58:37 +01:00
Shubham Parihar
1316fd4c6a
feat: add support for GuildScheduledEvent ( #6493 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: GoldenAngel <50855202+GoldenAngel2@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-12-23 13:39:09 +01:00
Jiralite
aa7c1b2081
feat(GuildMember): Add timeouts ( #7104 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Tiemen <ThaTiemsz@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-12-22 17:54:44 +01:00
Jiralite
2ed02f7fc7
refactor(UserManager): Move methods to the manager ( #7087 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-12-22 14:25:52 +01:00
Suneet Tipirneni
a0a5b0e4fa
types(CategoryChannel): createChannel should default to a text channel ( #7132 )
2021-12-22 14:00:07 +01:00
RaZe
b763dabaa9
fix: Make the followUp function error more clear ( #7129 )
...
Co-authored-by: D Trombett <maxtromb.dt@gmail.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-12-22 11:13:34 +01:00
Antonio Román
7b65a04cb1
types: make channel types a lot stricter ( #7120 )
2021-12-22 11:13:01 +01:00
Jiralite
6bb03f2c34
fix(StickerPack): Nullify bannerId ( #7119 )
2021-12-21 09:16:30 +01:00
Suneet Tipirneni
645b3f84f4
fix: webhook typeguards should use string comparisons ( #7127 )
2021-12-21 09:16:11 +01:00
Suneet Tipirneni
77489b90fc
types: forward cache types to collector filters ( #7126 )
2021-12-21 09:16:02 +01:00
muchnameless
b9b60a37b3
feat: export Sweepers ( #7117 )
2021-12-16 10:06:37 +01:00
Jiralite
55960cc778
feat: Add API error code 50109 ( #7112 )
2021-12-16 10:04:03 +01:00
Jiralite
8efc5c7b8d
chore(GuildMemberManager): Update nick path ( #7114 )
2021-12-15 20:43:12 +01:00
ckohen
d1ef2f5e8b
feat(Client): add global sweepers ( #6825 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Almeida <almeidx@pm.me >
2021-12-15 13:39:27 +01:00
Jiralite
bc6a6c539f
types: Fix possibly null message properties ( #7111 )
2021-12-15 13:39:05 +01:00
Antonio Román
a0fe0acbf1
fix(Message): remove usage of .deleted ( #7109 )
2021-12-14 21:10:14 +01:00
Antonio Román
d43f68488e
docs: deprecate .deleted getters ( #7107 )
2021-12-14 19:34:27 +01:00
Jiralite
1e00fc2001
refactor(RoleManager): Move some methods over from Role ( #7096 )
2021-12-14 19:04:07 +01:00
Suneet Tipirneni
49f9a18020
types: use mapped enums instead of overloads ( #7088 )
2021-12-14 19:03:39 +01:00
Jiralite
9cf44d1c0e
fix(GuildAuditLog): Remove Promises in constructor ( #7089 )
2021-12-14 19:03:21 +01:00
Jiralite
2ce244b502
types(MessageComponentInteraction): Ensure component is not null ( #7099 )
2021-12-12 22:06:24 +01:00
Jan
717e0e963f
refactor(Guild): remove duplicate methods ( #7100 )
2021-12-12 22:06:11 +01:00
Jiralite
ee91f5a19c
docs(Sticker): Fix typo ( #7085 )
2021-12-10 10:09:45 +01:00
Jiralite
5a5c045534
types(GuildAuditLog): Strengthen types ( #7090 )
2021-12-10 10:07:57 +01:00
Antonio Román
de61fe4854
fix(ShardingManager): fix respawnAll not passing delay correctly ( #7084 )
2021-12-10 10:07:35 +01:00
Jiralite
6e57b65e99
docs(Constants): Document missing errors ( #7086 )
2021-12-08 23:50:04 +01:00
Antonio Román
25b8491235
refactor(Util): replace Util.delayFor with tp.setTimeout ( #7082 )
2021-12-08 21:31:01 +01:00
Jiralite
23513d1917
docs(Constants): Adjust GUILD_STORE warning placement ( #7083 )
2021-12-08 21:30:40 +01:00
Rodry
fdba146f9b
docs(StoreChannel): add deprecation warnings ( #7080 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-12-08 18:51:07 +01:00
iCrawl
4515bb1ab2
chore: deps
2021-12-08 10:53:37 +01:00
Suneet Tipirneni
1230bee9bc
types(Message): guild should be non-null when message is in guild ( #6933 )
2021-12-08 10:49:17 +01:00
Antonio Román
b0937502d3
refactor: make Structure#deleted a getter to a WeakSet ( #7074 )
2021-12-08 10:47:54 +01:00
Shubham Parihar
f410536c51
feat: add API error code 20029 ( #7078 )
2021-12-08 10:40:49 +01:00
SethCohen
6f58e8122d
docs(GuildStickerManager): fix create() example ( #7060 )
2021-12-07 20:15:24 +01:00
Antonio Román
5ec542d61f
fix(StoreChannel): mark as deprecated ( #7072 )
2021-12-07 20:15:04 +01:00
Rodry
7f980e38b6
feat(ApplicationCommand): add setX methods for easier editing ( #7063 )
...
Co-authored-by: awned <65061212+ceilingfans@users.noreply.github.com >
2021-12-07 20:14:49 +01:00
Antonio Román
b5cd2884b6
fix(InteractionCollector): handle thread (and parent) deletion ( #7070 )
2021-12-07 11:21:26 +01:00
Jiralite
f028aea333
feat: Add API error code 50055 ( #7068 )
2021-12-07 11:19:45 +01:00
Antonio Román
3846f0d97c
fix(ReactionCollector): check for channel.threads ( #7069 )
2021-12-07 11:19:36 +01:00
Elliot
b6b4570482
types: improve audit logs' typings ( #6647 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com >
2021-12-06 08:57:12 +01:00
Antonio Román
8b200c0fee
feat(SnowflakeUtil): add timestampFrom ( #7058 )
2021-12-06 08:56:29 +01:00
GodderE2D
1c93faa3ab
chore: format .github/tsc.json ( #7062 )
2021-12-06 08:55:16 +01:00
Jiralite
01f8d1bed5
types(Interaction): Narrow memberPermissions ( #7054 )
2021-12-02 14:29:54 +01:00
That_Guy977
5fcda73d9f
fix(GuildChannel): default to this.rawPosition in clone() ( #7057 )
2021-12-02 14:29:21 +01:00
Rodry
552d89fd4e
feat(Guild): add premiumProgressbarEnabled ( #6887 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-12-01 12:40:49 +01:00
Rodry
b183a8eece
docs(Invite): add info blocks for missing props ( #7014 )
2021-12-01 12:33:28 +01:00
Suneet Tipirneni
da86bd4fa3
fix: Interaction channel type should be GuildTextBasedChannels when in guild ( #6998 )
2021-12-01 12:33:11 +01:00
That_Guy977
c07207f219
fix(Util): fix sorting for GuildChannels ( #7002 )
2021-12-01 12:32:13 +01:00
GrapeColor
4fe063f0d0
feat: add UserContextMenuInteraction and MessageContextMenuInteraction ( #7003 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: GrapeColor <grapecolor@users.noreply.github.com >
2021-12-01 12:31:37 +01:00
Suneet Tipirneni
a39d8c4d9d
Revert "types(ApplicationCommandManager): Deprecate old *Data type …usages and allow camel cased dapi types to be used ( #7052 )
2021-12-01 12:28:22 +01:00
Jiralite
85e6812ce2
docs(MessageReference): Fix static link ( #7041 )
2021-12-01 12:27:24 +01:00
Suneet Tipirneni
e305156769
chore: bump deps ( #7048 )
2021-11-29 19:32:26 +01:00
Antonio Román
374f970efe
chore: add myself as contributor in package.json ( #7037 )
2021-11-29 11:20:52 +01:00
Antonio Román
e59fac3fe3
refactor(SnowflakeUtil): clean up utils and improve perf ( #7036 )
2021-11-29 11:20:18 +01:00
Antonio Román
fd63139b41
fix(MessageManager): do not use client.emojis ( #7039 )
2021-11-29 11:19:32 +01:00
Antonio Román
0193efae71
fix(ActionsManager): revert to manual requires ( #7034 )
2021-11-29 11:19:21 +01:00
Antonio Román
fabd34381c
fix(MessagePayload): prevent spread of undefined ( #7029 )
2021-11-29 11:18:41 +01:00
Suneet Tipirneni
2c91c488e8
types(ApplicationCommandManager): Deprecate old *Data type usages and allow camel cased dapi types to be used ( #6959 )
2021-11-29 11:17:57 +01:00
Jiralite
54f937d82c
fix(MessageManager): Allow a string for edit() ( #7033 )
2021-11-25 12:42:11 +01:00
Suneet Tipirneni
9f3bf2927c
CI: Use tsd for Testing Types ( #6983 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-11-23 18:00:58 +01:00
Jiralite
2a0dedf3e9
chore: Emit deprecation messages ( #6994 )
2021-11-23 10:29:45 +01:00
SpaceEEC
7efeff461f
fix: avoid sending bot auth on token endpoints ( #7022 )
2021-11-23 10:28:09 +01:00
Rodry
099536ee60
types(WebhookMessageOptions): disallow stickers ( #7012 )
2021-11-23 10:27:03 +01:00
dai
77aff08345
feat(Shard): add eval context ( #7011 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-11-23 10:26:46 +01:00
Suneet Tipirneni
c1f2fe29ef
types: remove unneeded collector types ( #7008 )
2021-11-23 10:26:18 +01:00
GodderE2D
a1a8ca4814
docs(Constants): fix typo "announcement" ( #7016 )
2021-11-23 10:24:14 +01:00
Suneet Tipirneni
48555cb8eb
types: make event emitters use mapped event types ( #7019 )
2021-11-23 10:23:14 +01:00
Suneet Tipirneni
802a5ac228
chore: collector type cleanup ( #6991 )
2021-11-18 07:58:17 +01:00
Suneet Tipirneni
db09d79423
feat(ThreadChannel): add ThreadChannel#viewable ( #6975 )
2021-11-18 07:58:05 +01:00
Suneet Tipirneni
0c5c7210e7
chore: bump typescript to 4.5 ( #6999 )
2021-11-18 07:55:19 +01:00
Suneet Tipirneni
493e4f9350
feat(ThreadManager): add slowmode option on thread creation ( #6989 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-11-17 22:47:50 +01:00
SpaceEEC
c0ba2d46d0
fix(Sharding): properly handle errors in fetchClientValues ( #6990 )
2021-11-16 18:40:45 +01:00
SpaceEEC
fdb09cbe03
fix(VoiceState): set streaming to false when the stream ended ( #6992 )
2021-11-16 18:40:19 +01:00
Suneet Tipirneni
ecc61f3c74
types(ApplicationSubcommandData): allow autocomplete to be true ( #6981 )
2021-11-16 18:32:25 +01:00
Hackerboi 69
06cd16fe97
types: fix interaction typeguards ( #6976 )
2021-11-16 18:32:16 +01:00
Jiralite
73854ee852
refactor(MessageEmbed): Utilise an object approach for .setAuthor() ( #6966 )
...
Co-authored-by: Almeida <almeidx@pm.me >
2021-11-16 18:31:08 +01:00
Jake Ward
5e0a7d51fc
feat(MessageAttachment): description (alt text) support ( #6871 )
...
Co-authored-by: D Trombett <maxtromb.dt@gmail.com >
2021-11-11 20:29:17 +01:00
Suneet Tipirneni
7630158f59
types: Strengthen autocomplete option types ( #6950 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-11-11 19:38:34 +01:00
Suneet Tipirneni
9f240ea0d1
types: fix cache type fallback types ( #6961 )
2021-11-11 19:37:53 +01:00
GrapeColor
b001e194f1
fix(MessageReaction): Cache myself when MessageReaction#me is true. ( #6956 )
...
Co-authored-by: GrapeColor <grapecolor@users.noreply.github.com >
2021-11-11 19:21:45 +01:00
Vlad Frangu
8e881d2b96
types: unify ApplicationCommandManager#create overloads ( #6970 )
2021-11-11 19:08:28 +01:00
ckohen
c30a818ca9
feat(ApplicationCommand): add support for min and max values ( #6855 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com >
2021-11-11 19:07:21 +01:00
GodderE2D
3c857a6363
docs(README): add installation instruction on @discordjs/voice ( #6964 )
2021-11-11 03:31:09 +01:00
iCrawl
b256ae1fa6
chore: open collective funding
2021-11-09 18:51:43 +01:00
Almeida
49e3ce2133
feat(SystemChannelFlags): add new flag ( #6870 )
...
Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com >
2021-11-06 01:00:18 +01:00
ckohen
c297829d54
types(Events): rest events can be emitted on BaseClient ( #6936 )
2021-11-06 00:58:54 +01:00
すずねーう
dc6454104f
docs(Guild): fix setOwner() example ( #6929 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-11-05 10:32:49 +01:00
Jiralite
28688e27d5
refactor: Deprecate application command events ( #6937 )
2021-11-02 14:43:30 +01:00
Tiemen
f43140abac
feature(UserFlags): add BOT_HTTP_INTERACTIONS ( #6733 )
2021-11-01 18:50:42 +01:00
Almeida
47d74ebf81
feat: add new activity flags ( #6699 )
2021-11-01 18:50:36 +01:00
Advaith
e94073a6ab
feat(ApplicationFlags): add message content intent flags ( #6888 )
2021-11-01 18:50:23 +01:00
iCrawl
076524a064
chore: dev version
2021-11-01 18:48:21 +01:00
iCrawl
5ec04e077b
chore(Release): version 13.3.1
2021-11-01 18:46:16 +01:00
SpaceEEC
9bd3689fb1
fix: assert channel types in message actions ( #6919 )
2021-11-01 18:40:19 +01:00
Rodry
95d2a4d35e
fix(MessageEmbed): only compare image urls in #equals ( #6926 )
2021-11-01 18:36:41 +01:00
Superchupu
bb245b7b35
docs(README): use correct capitalization of npm ( #6930 )
2021-11-01 18:36:26 +01:00
Rodry
204aee799a
types: improve toJSON methods for message components & embeds ( #6925 )
2021-11-01 15:09:00 +01:00
Rodry
2d9ffb8c5b
fix: correctly access guild IDs inside managers ( #6927 )
2021-11-01 15:07:55 +01:00
Indian Ocean Roleplay
b6484ac117
ci: validate typings ( #6913 )
2021-11-01 15:07:27 +01:00
Indian Ocean Roleplay
761a901885
chore: next dev version ( #6920 )
2021-10-29 22:11:00 +02:00
iCrawl
0238da45c5
chore(Release): publish
2021-10-29 20:10:45 +02:00
iCrawl
27fb5e5c6b
chore: repo changes
2021-10-29 19:53:54 +02:00
Indian Ocean Roleplay
673c03f7cf
types(fix): BaseCommandInteractionOptionResolver and CommandInteraction ( #6910 )
2021-10-29 19:38:21 +02:00
Jiralite
d6685b1c50
fix: Handle message bulk delete and thread delete in collectors ( #6902 )
2021-10-29 14:58:31 +02:00
Suneet Tipirneni
14716df6b6
feat(ThreadMemberManager): allow individual members to be fetched ( #6889 )
...
Co-authored-by: ckohen <chaikohen@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-10-29 14:57:53 +02:00
Jiralite
aa4d05504f
docs(Constants): Document missing autocomplete interaction constants ( #6916 )
2021-10-29 14:57:35 +02:00
Almeida
7be9170659
types(Constants): remove deleted properties from Package ( #6908 )
2021-10-29 14:57:12 +02:00
Jiralite
5d987ee56e
docs(InteractionCollector): Add info block about being prone to always running ( #6906 )
2021-10-29 01:39:24 +02:00
Indian Ocean Roleplay
49e686a721
ci: release dev version only if required ( #6879 )
2021-10-29 01:24:04 +02:00
Micah Benac
ddf759c811
feat: add support for autocomplete interactions ( #6672 )
...
Co-authored-by: Suneet Tipirneni <suneettipirneni@icloud.com >
2021-10-29 00:47:50 +02:00
SpaceEEC
14d9a9901b
types(Shard): eval returns a promise resolving with T instead of T[] ( #6901 )
2021-10-29 00:47:18 +02:00
Vlad Frangu
ee93a27e15
types(ApplicationCommandManager): add missing overload for fetch ( #6904 )
2021-10-28 16:19:19 +02:00
Suneet Tipirneni
91a432e49d
types(TextBasedChannel): text channel interaction collectors should have message option ( #6903 )
2021-10-28 16:19:08 +02:00
iCrawl
c278674e8a
chore: change testing to tests for workflow
2021-10-28 02:02:53 +02:00
iCrawl
aa532946c9
chore: repo cleanup
2021-10-28 02:01:19 +02:00
GodderE2D
bdd841a1e7
docs(GuildStickerManager): fix create() example ( #6900 )
2021-10-28 01:21:52 +02:00
Rodry
fae4abf2f7
feat(MessageEmbed): add #equals ( #6885 )
2021-10-27 12:08:20 +02:00
Suneet Tipirneni
b2836daafe
typings: cache types cleanup ( #6867 )
...
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-10-27 12:08:01 +02:00
Advaith
f169c8fe46
fix(ApplicationCommandManager): update guild command cache on c/u/d ( #6841 )
2021-10-27 12:07:50 +02:00
Rodry
740d3f006e
feat(StartThreadOptions): default autoArchiveDuration to channel's defaultAutoArchiveDuration ( #6278 )
2021-10-27 12:07:28 +02:00
GodderE2D
88060395d1
docs(InteractionResponses): move embed var position in example ( #6896 )
2021-10-27 01:08:20 +02:00
Suneet Tipirneni
acbfc5c866
chore: bump discord-api-types & builders ( #6894 )
2021-10-26 21:29:23 +02:00
Rodry
e12a5b6a0c
refactor: move Guild setPositions methods to managers ( #6875 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2021-10-26 21:28:56 +02:00
Lin
b27888455f
refactor: remove gen-esm-wrapper dependency ( #6884 )
2021-10-26 18:12:16 +02:00
GodderE2D
76856b967a
docs(Application): rename Oauth2Application to Application ( #6891 )
2021-10-26 18:04:10 +02:00
StefansArya
ceaf738d2e
fix(TextBasedChannel): return the cached message instead of clone it ( #6877 )
2021-10-25 00:35:59 +02:00
Jiralite
b6c9fd691f
docs(Util): Deprecate .removeMentions() ( #6866 )
2021-10-25 00:35:13 +02:00
chrdek
7621e9da4c
fix(MessageComponentInteraction): component getter is not null anymore ( #6835 )
2021-10-25 00:34:53 +02:00
Almeida
672baa49e6
refactor: fix typos ( #6852 )
2021-10-24 21:34:37 +02:00
Suneet Tipirneni
c3948f8253
types: allow message cached props to be narrowed ( #6838 )
...
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-10-24 21:31:42 +02:00
Jiralite
579569ae18
refactor(GuildManager): Remove redundant check ( #6859 )
2021-10-19 16:11:50 +02:00
Jiralite
399e720b92
feat: Add rtcRegion to GuildManager#create() ( #6858 )
2021-10-19 16:11:29 +02:00
Suneet Tipirneni
e0afcadda4
feat: add typeguards to webhooks ( #6850 )
2021-10-19 16:11:21 +02:00
Suneet Tipirneni
4dff279a6f
fix: PartialGuildMember#id is not null ( #6840 )
2021-10-17 16:19:42 +02:00
Skick
487d32d303
feat(GuildChannelManager): add 'rtcRegion' option to 'create' method ( #6849 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-10-17 16:18:33 +02:00
ckohen
7513b4528c
feat(Permissions): add checkAdmin to permission overwrite checks ( #6847 )
2021-10-17 00:27:52 +02:00
Suneet Tipirneni
e8b69974dc
types(CommandInteractionOptionResolver): allow narrowing of getMember() ( #6831 )
2021-10-17 00:19:49 +02:00
Jiralite
d27fddbf9a
types(BaseMessageComponent): Remove third parameter of create() ( #6833 )
2021-10-17 00:19:36 +02:00
Jiralite
d193d04cea
fix(Webhook): Resolve source guild only if cached ( #6834 )
2021-10-17 00:19:23 +02:00
ObscuritySRL
ef01b84fa8
fix(AllowedImageSizes): add new image sizes ( #6844 )
2021-10-17 00:18:17 +02:00
Jiralite
f7b7aac8b6
docs: Correct tags used for objects ( #6846 )
2021-10-17 00:17:33 +02:00
Jiralite
267a4b3f68
fix(MessageReaction): Prevent event double fire from uncached messages ( #6818 )
2021-10-17 00:16:05 +02:00
Jiralite
38cc89e5ae
docs: Redirect to events correctly ( #6845 )
2021-10-16 00:18:13 +02:00
Jiralite
12ab5c8878
chore: Add missing intent to issue form ( #6829 )
2021-10-14 20:26:52 +02:00
Jiralite
c44ea50157
docs: Typos, consistency and grammar fixes ( #6811 )
2021-10-13 12:20:44 +02:00
Oscar Dominguez
046f44b807
ci(workflow): add cache to workflows using actions/setup-node ( #6821 )
2021-10-13 12:19:07 +02:00
Jiralite
4354c37762
docs(Message): Specify Snowflake in return type of awaitReactions() ( #6822 )
2021-10-13 12:18:00 +02:00
Suneet Tipirneni
b541d0a524
types: message component cached props narrowing ( #6809 )
2021-10-12 21:11:37 +02:00
Hackerboi 69
6898fa3b37
feat(Interaction): add isApplicationCommand check ( #6801 )
2021-10-12 21:11:32 +02:00
Jiralite
460df9eb4d
refactor: Remove redundant user agent parsing ( #6820 )
2021-10-12 21:11:25 +02:00
Rodry
bd48e6df84
feat(CommandInteraction): add toString method ( #6793 )
2021-10-12 21:11:18 +02:00
Rodry
5566404850
types(ApplicationCommandOptionData): remove required on subcommands ( #6790 )
2021-10-12 21:11:11 +02:00
Alessandro Impellizzeri
29667c96e5
fix(Guild): guild.available is never set on new joins ( #6769 )
2021-10-12 21:10:59 +02:00
Jeroen Claassens
b47467755c
fix(Types): export more types ( #6808 )
2021-10-12 19:38:12 +02:00
Jiralite
187581dd84
types(Integration): Add IntegrationType values ( #6815 )
2021-10-12 19:35:26 +02:00
Jiralite
b030130df1
docs: Replace FetchOwnerOptions type definition ( #6814 )
2021-10-12 19:35:16 +02:00
Jiralite
d57ec7ab68
docs: Remove dangling reference ( #6810 )
2021-10-11 13:57:00 +02:00
Brage
b1b9c83df0
docs(InteractionCollector): remove repeated "the" ( #6802 )
2021-10-11 13:54:16 +02:00
Shubham Parihar
bfb89de864
fix(GuildBanManager): send reason in the headers instead of json body ( #6800 )
2021-10-09 15:02:39 +02:00
ckohen
26f927b9fe
feat(Client): add apiResponse and apiRequest events ( #6739 )
...
Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com >
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: SpaceEEC <24881032+SpaceEEC@users.noreply.github.com >
2021-10-09 13:56:25 +02:00
Rodry
0d599a1a76
fix(User): don't generate the banner URL when not cached ( #6783 )
2021-10-08 12:36:14 +02:00
Bas950
e24209a8b1
refactor: remove unnecessary checks ( #6777 )
2021-10-08 12:35:24 +02:00
Nico Rausch
d399a28323
feat(ModuleImporter): implement import module compatible with bundlers ( #6709 )
2021-10-08 12:35:13 +02:00
Shubham Parihar
872e7a59b2
refactor(Role): move initialization of delete prop out of _patch ( #6776 )
2021-10-07 23:17:47 +02:00
MarkusRost
78124aed28
chore(GuildMemberRoleManager): Remove unnecessary !prev check ( #6781 )
...
Co-authored-by: Bas950 <bas.van.zanten007@gmail.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-10-07 18:29:00 +02:00
ckohen
b1656bfb4f
fix(GuildMember): more explicit partial check ( #6760 )
2021-10-07 18:28:32 +02:00
MarkusRost
03c4b60384
GuildMemberRoleManager: add role that sets the role icon/emoji ( #6768 )
...
Co-authored-by: Almeida <almeidx@pm.me >
2021-10-07 18:28:12 +02:00
Jiralite
45ebea3216
types(WelcomeChannelData): Allow store channels ( #6778 )
2021-10-07 18:24:53 +02:00
Suneet Tipirneni
a84e51b767
types: make embed author and footer props name and text required ( #6779 )
2021-10-07 18:24:48 +02:00
Shubham Parihar
e31c5ca1a8
fix(Role): check for presence of icon and unicode_emoji before patching ( #6780 )
2021-10-07 18:24:33 +02:00
J-Human
d32956c6b7
docs(MessagePayload): change the typo of "wether" to "whether" ( #6771 )
2021-10-06 08:40:25 +02:00
iCrawl
adc850aa67
chore: release
2021-10-05 16:17:53 +02:00
iCrawl
26340acad9
chore(Release): version
2021-10-05 16:09:40 +02:00
Souji
8bc1ece98e
docs: fetchReply info + example ( #6753 )
2021-10-05 01:37:04 +02:00
Rodry
ba93e85d0d
refactor(User): set accentColor and banner to undefined when not yet received ( #6721 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-10-05 00:16:59 +02:00
ObscuritySRL
d0025beb7b
fix(AllowedImageSizes): add new image sizes ( #6754 )
2021-10-05 00:10:54 +02:00
Demir
c5421af68e
chore(package): change homepage ( #6550 )
2021-10-05 00:08:13 +02:00
Almeida
a194d9c37f
refactor: use optional chaining ( #6757 )
2021-10-05 00:04:53 +02:00
Suneet Tipirneni
d873a19d34
types(Interaction): allow Interaction cached properties to be type narrowed ( #6668 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-10-05 00:01:43 +02:00
Antonio Román
f88f4cca64
types: rename Awaited<T> to Awaitable<T> ( #6756 )
2021-10-04 14:11:42 +02:00
Rodry
00e1e2673b
fix(User): compare flags in #equals ( #6750 )
2021-10-04 09:38:28 +02:00
Rodry
1db3e76054
docs(GuildMemberUpdateAction): event doesn't get emitted on user update ( #6752 )
2021-10-04 09:38:07 +02:00
Jiralite
7eec06145a
fix(VoiceState): Patch streaming value ( #6747 )
2021-10-03 22:55:27 +02:00
Rodry
c3f4de4801
types(GuildBanManager): remove can return null ( #6748 )
2021-10-03 22:55:14 +02:00
Rodry
42acc6eef9
types: add ExcludeEnum utility for easier typings ( #6746 )
...
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
2021-10-03 22:54:43 +02:00
Jiralite
32b5c2e617
types(Webhook): More accurate type for sourceChannel ( #6751 )
2021-10-03 22:53:37 +02:00
Jiralite
abf158dc94
types(WebhooksUpdate): Allow NewsChannels ( #6749 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
2021-10-03 22:53:20 +02:00
Shubham Parihar
7129965423
feat: add support for role icons ( #6633 )
2021-10-03 18:55:29 +02:00
SpaceEEC
a8c21cd754
fix(Message): avoid overwriting properties in _patch ( #6738 )
2021-10-03 15:27:00 +02:00
Jiralite
6e5c768379
docs: Better links for .toJSON() of button and select menu ( #6745 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
2021-10-03 15:26:21 +02:00
SpaceEEC
d15dd5f07d
fix(ReactionCollector): only call the filter function once ( #6734 )
2021-10-03 15:04:37 +02:00
SpaceEEC
905d100d4d
fix(Shard): use provided timeout when respawning ( #6735 )
2021-10-03 15:04:23 +02:00
SpaceEEC
34b2ad0d8e
docs: undocument private constructors ( #6732 )
2021-10-03 15:02:11 +02:00
Jiralite
a8e60105fb
types: More accurate types instead of GuildChannelResolvable ( #6744 )
2021-10-03 15:01:38 +02:00
Almeida
9e421f6ccf
fix(Role): toJSON() throwing due to permission bigints ( #6724 )
2021-10-03 15:01:24 +02:00
ObscuritySRL
28d96e344b
feat(Interaction): add memberPermissions ( #6741 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2021-10-03 15:01:07 +02:00
Rodry
3eacf7a587
feat(CategoryChannel): add createChannel shortcut method ( #6614 )
2021-10-03 15:00:41 +02:00
Almeida
e9daa31eaf
perf: use logical assignments instead of if statements ( #6693 )
2021-10-03 14:59:57 +02:00
Rodry
9eb9591473
fix: don't patch set data with undefined ( #6694 )
2021-10-03 14:59:52 +02:00
Rodry
8b4456e0aa
types(ChannelTypes): remove unknown from CHANNEL options ( #6701 )
2021-10-03 14:59:45 +02:00
Rodry
b76bb8a409
fix(Invite): #guild never resolving into a Guild ( #6742 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-10-02 23:46:32 +02:00
Jiralite
107822d28d
feat: Allow webhooks to fetch, edit and delete messages in threads ( #6695 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-10-02 13:42:25 +02:00
Nyan Spaghetti
cdf65f74e1
fix(GuildManager): add missing types and converts ( #6683 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2021-10-02 13:42:10 +02:00
muchnameless
a7cb314e07
types(TextBasedChannels): fix awaitMessageComponent return type ( #6723 )
2021-10-02 13:41:53 +02:00
Jiralite
3a978f347c
types(Vanity): Make uses non-nullable ( #6715 )
2021-10-02 13:41:30 +02:00
Advaith
10478ad148
feat(Threads): update permissions and fix getters ( #6466 )
2021-10-02 13:41:05 +02:00
muchnameless
7c4d1dffb4
types(Role): Role#comparePositionTo accepts RoleResolvable ( #6722 )
2021-10-02 13:40:52 +02:00
Jiralite
2803db683d
feat(PartialGroupDMChannel): Add recipients & fix name ( #6713 )
2021-10-02 13:40:40 +02:00
cherryblossom000
3f1100976f
docs(Message): fix return type for reply ( #6720 )
2021-10-02 13:40:15 +02:00
Almeida
531b46c60d
refactor: use the node: protocol ( #6710 )
2021-10-02 13:40:02 +02:00
Rodry
466e796a1d
docs(CommandInteractionResolvedData): fix key type ( #6729 )
2021-10-02 13:38:59 +02:00
Almeida
8d80fec86d
fix(Util): default animated to false when omitted on resolvePartialEmoji ( #6725 )
2021-10-02 13:38:37 +02:00
Rodry
fe9500538e
types(Presence): fix ActivityOptions#type and Activity#id types ( #6696 )
2021-09-28 18:57:09 +02:00
ckohen
da3ae4854e
types: fix missing channel type in subcommand options ( #6706 )
2021-09-28 18:55:39 +02:00
Rodry
dfd7b403a9
feat(GuildMember): add guild avatars ( #5696 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com >
Co-authored-by: GoldenAngel <50855202+GoldenAngel2@users.noreply.github.com >
2021-09-28 18:53:37 +02:00
Shubham Parihar
7cba67620e
docs(EmojiResolvable): update description of typedef to remove ambiguity ( #6708 )
2021-09-28 18:52:47 +02:00
Shubham Parihar
c5db0ff606
feat(MessageAttachment): add support for ephemeral property ( #6652 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
2021-09-28 18:52:03 +02:00
Rodry
60aa9ae478
fix(Message): throw error on missing channel ( #6581 )
...
Co-authored-by: D Trombett <73136330+DTrombett@users.noreply.github.com >
2021-09-28 18:51:42 +02:00
ckohen
3b14883e34
feat(ApplicationCommand): add support for channel_types ( #6640 )
...
Co-authored-by: Tiemen <ThaTiemsz@users.noreply.github.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-09-27 13:49:39 +02:00
Shubham Parihar
8426770865
fix(CachedManager): return updated data when cache is false ( #6685 )
2021-09-27 13:49:25 +02:00
Rodry
79b1b20562
chore(IssueForms): remove default titles ( #6659 )
...
Co-authored-by: Souji <timoqueezle@gmail.com >
2021-09-26 21:39:52 +02:00
Jiralite
60b8ba6b86
fix(GuildEmoji): Cache restricted roles and author data ( #6675 )
2021-09-26 21:38:58 +02:00
Rodry
d3da83368d
fix(Constants): allow undefined size ( #6686 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-09-26 21:38:11 +02:00
Jiralite
f8aa4bd470
fix(*RoleManager): Create set of role ids correctly ( #6674 )
...
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
2021-09-26 21:33:59 +02:00
Shubham Parihar
a06a87a7c4
feat(UserManager): allow #fetch to take UserResolvable ( #6677 )
2021-09-26 21:33:50 +02:00
Advaith
1ca8d2c8e8
types: add GuildEmojiManager to Caches ( #6671 )
2021-09-26 21:33:25 +02:00
Shubham Parihar
42fdcaa1da
feat: add api error code 50101 ( #6663 )
2021-09-26 21:33:20 +02:00
Andreas Clausen
94ca0f599d
typings(VoiceState): allow moving members to stage channels ( #6684 )
2021-09-26 21:33:11 +02:00
Megatank58
839974ca43
docs(ApplicationCommandPermissionsManager): fix example set method ( #6658 )
2021-09-23 14:04:49 +02:00
D Trombett
5070d23914
fix(Shard): eval promise never resolves ( #6649 )
2021-09-23 13:48:22 +02:00
Suneet Tipirneni
ecd637f7d6
feat: Add support for API command types in ApplicationCommandManager ( #6621 )
2021-09-23 13:47:17 +02:00
Advaith
66a90d3f89
feat(Permissions): add START_EMBEDDED_ACTIVITIES ( #6622 )
2021-09-23 13:47:09 +02:00
Rodry
caa3b60c30
feat(Integration): add missing props and fix docs/types ( #6623 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-09-23 13:47:01 +02:00
Rodry
29dd319b68
refactor(VoiceState): use manager edit method to remove error ( #6631 )
2021-09-23 13:46:55 +02:00
Rodry
124e177e91
refactor(Constants): better type error in cdn endpoints ( #6637 )
2021-09-23 13:46:40 +02:00
Apokalypt
034782641a
types(Interaction): improve type guard for inGuild() ( #6644 )
2021-09-23 13:42:27 +02:00
Jiralite
b9a4899491
docs(Shard): Point to correct events ( #6641 )
2021-09-23 13:41:26 +02:00
tig
5d87398f9f
fix(xxxable): follow more properly with discord behavior ( #6551 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-09-23 13:41:18 +02:00
Shubham Parihar
603350645d
fix: allow null to be passed in order to reset icon/avatar ( #6646 )
2021-09-23 13:40:51 +02:00
Rodry
92f6471e8e
types(MessageOptions): allow APIEmbed ( #6656 )
2021-09-18 01:09:49 +02:00
tig
88e2622dde
docs(VoiceChannel): deprecate editable ( #6613 )
2021-09-15 00:26:10 +02:00
Jiralite
75d85f7838
types(WelcomeChannel): Allow store channels ( #6615 )
2021-09-15 00:26:03 +02:00
Rodry
8add4b08f5
feat: default values for setX boolean methods ( #6619 )
2021-09-15 00:25:50 +02:00
Souji
0a71a4d18f
chore: issue forms ( #6611 )
2021-09-15 00:25:19 +02:00
Shubham Parihar
183dbd7e53
feat: add api error code 30042 ( #6635 )
2021-09-15 00:24:16 +02:00
Rodry
256fb905fe
types(MessageEmbed): allow APIEmbed type ( #6629 )
2021-09-15 00:19:49 +02:00
Jiralite
3c3522ae8a
docs(PermissionOverwriteManager): Correct @returns of delete ( #6632 )
2021-09-15 00:19:04 +02:00
Suneet Tipirneni
be8912a421
feat: Give removed MessageReactions on messageReactionRemoveAll event ( #6607 )
...
Co-authored-by: D Trombett <maxtromb.dt@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-09-10 20:32:05 +02:00
Shubham Parihar
1b016a30c8
types(TextBasedChannelFields): add back createMessageCollector ( #6616 )
2021-09-10 20:31:29 +02:00
Rodry
3183b1166a
fix(Message): pinnable returning false in non-DEFAULT messages ( #6585 )
2021-09-09 19:51:21 +02:00
Shubham Parihar
f866512e84
feat(ApplicationCommand): add version property ( #6603 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-09-09 18:52:39 +02:00
Suneet Tipirneni
8cc3885739
typings: make channelId non-nullable on MessageComponentInteraction ( #6600 )
2021-09-08 14:42:05 +02:00
Suneet Tipirneni
c62823e43d
typings: Message#createMessageComponentCollector use MessageComponentInteractionOptions<T> ( #6596 )
2021-09-08 14:36:15 +02:00
Jiralite
ea3695585d
types(MessagePayload): Specify typings for files and resolveFile ( #6608 )
2021-09-08 14:34:53 +02:00
Jiralite
ea6a57e927
docs(MessagePayload): Correct return type of resolveFile() ( #6605 )
2021-09-08 14:34:26 +02:00
Hackerboi 69
f57791c5fe
chore: remove jsdoc.json ( #6587 )
2021-09-05 15:40:41 +01:00
Bvdgames
8826e9ffbc
fix(threadMembersUpdate): fixed typo ( #6589 )
2021-09-05 15:39:47 +01:00
Rodry
db73cf9255
docs(MessageButton): fix info tag ( #6590 )
2021-09-05 15:39:27 +01:00
Rodry
08edc0b1db
fix(ThreadChannel): fetchStarterMessage bug ( #6584 )
2021-09-03 18:22:49 +01:00
Rodry
00bd92a451
refactor: ES2021 features ( #6540 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Voltrex <mohammadkeyvanzade94@gmail.com >
2021-09-03 12:58:01 +01:00
Advaith
d81590d566
feat(MessageTypes): add CONTEXT_MENU_COMMAND (23) ( #6425 )
2021-09-03 12:57:33 +01:00
Souji
06460565e4
chore: issue forms ( #6583 )
2021-09-03 12:53:05 +01:00
Suneet Tipirneni
08419561ed
typings: Collector filter parameter inference ( #6574 )
2021-09-01 11:07:26 +01:00
Shubham Parihar
d16ada9708
feat: add api error code 160002 ( #6566 )
2021-08-31 11:38:27 +01:00
Rodry
cdb00053de
typings(MessageReference): correctly add undefined type ( #6563 )
2021-08-31 11:38:12 +01:00
Jiralite
2c219cb982
types: @typedef for StageChannelResolvable ( #6568 )
2021-08-30 21:57:54 +01:00
ckohen
581921f8b7
feat(ApplicationCommand): add #equals ( #6414 )
...
Co-authored-by: Juruel Keanu Lorenzo <keanulorenzo32@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
2021-08-30 11:56:47 +01:00
Suneet Tipirneni
f49f70a4eb
fix: await message component collectors should return component interactions not collectors ( #6562 )
2021-08-30 11:55:39 +01:00
Souji
54b33dd7df
chore: issue forms ( #6560 )
...
* workflow: issue forms
* chore: make intents and partials dropdowns
* chore: add tip about multi-select
* chore: use typescript for cb
2021-08-30 11:53:55 +01:00
GodderE2D
33f6f8211f
docs(WidgetMember): fix typo for deaf ( #6564 )
2021-08-30 08:10:59 +01:00
Jiralite
29d5fd163c
docs(Constants): Fix interaction type link ( #6558 )
2021-08-29 23:45:59 +01:00
Jiralite
34024f5ef6
docs: Fix JSDoc for ClientUser#edit ( #6554 )
2021-08-29 20:55:39 +01:00
DraftMan
9301c9b420
fix(GuildChannel): Fix manageable method for voice-channels ( #6447 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Kyra <kyranet@users.noreply.github.com >
Co-authored-by: ckohen <chaikohen@gmail.com >
2021-08-29 16:26:05 +01:00
Suneet Tipirneni
03d5549461
typings: Allow message component interaction collectors to infer collected interaction types ( #6476 )
2021-08-29 16:25:58 +01:00
Jiralite
774e9609d2
typings(CommandInteractionOptionResolver): Document & type thread channels ( #6521 )
2021-08-29 13:23:20 +01:00
ckohen
a6932546e2
feat(Threads): add support for invitable in private threads ( #6501 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-29 13:23:01 +01:00
Rodry
0fe5f88316
types(MessageComponentInteraction): fix componentType ( #6536 )
2021-08-29 13:22:53 +01:00
Jiralite
b89280a1dd
docs(Util): Correct @param for cleanContent() ( #6531 )
2021-08-27 09:39:19 +01:00
Casper
fc51f61f0c
feat(BaseGuildTextChannel): export BaseGuildTextChannel ( #6527 )
2021-08-25 23:41:15 +01:00
Jeroen Claassens
49e3a14d30
ci: setup npm auto deprecate workflow ( #6520 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-25 18:22:24 +01:00
Megatank58
7d4a40a26d
docs(Formatters): fix typo of TimestampStyles ( #6523 )
2021-08-25 13:20:00 +01:00
Sugden
8a8c69a257
fix(MessageAttachment): re-assign name ( #6518 )
2021-08-24 21:32:56 +01:00
Advaith
839c6da03d
feat(User): banners and accent colors ( #6117 )
...
* feat(User): support banners
don't mind it for now, just trying
* feat(User): support banners
* fix(Constants): declare dynamic
* fix(User): eslint
* typings: update User typings
* fix(User): add banner to equals and json bannerURL
* typings: missing dynamic
* refactor: xID to xId
* types: re-add typings
* feat: add banner color and fetch note
* feat: switch to accent color (swap hex and dec))
* Update src/structures/User.js
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
* Update typings/index.d.ts
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Koyamie <koyamie1@gmail.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
2021-08-24 21:32:18 +01:00
Justin
96e26c428d
feat(MessageAttachment): allow files to be marked as spoilers ( #6509 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-08-24 21:25:45 +01:00
Danny May
5c276398d6
typings: mark enums as const enums ( #6394 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-24 21:24:34 +01:00
Rodry
705c5a1c17
feat(ThreadChannel): add fetchStarterMessage ( #6488 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-08-24 21:22:11 +01:00
Rodry
4bfd5d3e74
docs(GuildChannelCreateOptions): fix #type type ( #6502 )
2021-08-24 21:21:43 +01:00
Jiralite
8a95211230
docs(ThreadManager): Fix typo ( #6485 )
2021-08-24 21:21:22 +01:00
Kevin
141864917a
fix(UserUpdateAction): rely on client.user when ids match ( #6511 )
2021-08-24 21:21:07 +01:00
Jiralite
57b94b9adf
feat(Message): Add method to resolve a component by id ( #6484 )
2021-08-24 21:20:43 +01:00
Megatank58
9ca10cce06
docs: fix wrong type being displayed in docs ( #6504 )
2021-08-24 21:20:23 +01:00
Rodry
fb50dd9841
feat: set methods for MessageActionRow and MessageSelectMenu ( #6490 )
2021-08-24 21:20:03 +01:00
Jeroen Claassens
7aff15a055
typings(MessageEmbed): allow null for setTimestamp ( #6514 )
2021-08-24 21:19:03 +01:00
monbrey
c232baa715
typings: require component type in raw object formats ( #6452 )
2021-08-23 15:26:22 +01:00
Deivid
656b51875f
typings(CommandInteractionOptionResolver): add missing parameter ( #6497 )
2021-08-23 15:23:27 +01:00
Walker Gray
c14e594d8a
feat: export BaseCommandInteraction ( #6478 )
2021-08-23 15:22:48 +01:00
Francis Rivard
21983de3e0
feat(Guild): Add Guild#maximumBitrate getter. ( #6455 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-08-23 15:19:55 +01:00
Francis Rivard
f39b597e31
feat(Message): prevent fetching an interaction webhook. ( #6468 )
2021-08-23 15:18:49 +01:00
Rodry
70cc0295f8
docs(MessageManager): fix typo ( #6482 )
2021-08-21 20:14:18 +01:00
MarkusRost
d6e6244336
fix(Util): allow empty strings in splitMessage ( #6437 )
2021-08-18 09:47:13 +01:00
Rodry
93a83c2cf7
docs(MessageReference): add possible message types ( #6464 )
2021-08-17 21:50:14 +01:00
Rodry
17b407935b
docs(ApplicationCommandType): add DAPI link ( #6463 )
2021-08-17 21:49:53 +01:00
Rodry
6cac03a394
types(ClientPresence): add type declarations and docs ( #6450 )
2021-08-17 21:49:36 +01:00
Milo
76cf52cd0d
chore(Typings): fix WebhookEditMessageOptions not having attachments ( #6430 )
2021-08-17 21:49:26 +01:00
Shubham Parihar
a4b8623b60
feat: add maximum prune requests reached api error ( #6427 )
2021-08-17 21:46:17 +01:00
Shino
5eb3553fd1
feat(Rest): expose https.Agent options ( #6177 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-08-17 21:45:32 +01:00
ckohen
16493e65fd
docs(BufferResolvable): add warning for URL input ( #6451 )
2021-08-17 21:44:37 +01:00
Synbulat Biishev
f294d1eff2
typings(GuildChannel): Added missing typing ( #6454 )
2021-08-17 21:44:02 +01:00
HyRo
9a833b1e0e
fix(BaseClient): Remove selfbot ability ( #6429 )
2021-08-16 08:30:35 +01:00
monbrey
d289d5ccb7
feat(InteractionReponses): allow fetching of ephemeral messages ( #6426 )
2021-08-15 12:10:43 +01:00
Jiralite
2c449b6b48
fix(Sticker): Rename method correctly to _add ( #6421 )
2021-08-15 12:10:31 +01:00
BannerBomb
81bb68d3be
typings: Message#_patch typings return type ( #6433 )
2021-08-15 12:09:49 +01:00
Koyamie
170c0c4985
feat: export ContextMenuInteraction ( #6434 )
2021-08-15 12:09:21 +01:00
ahmood
ecb6e50b46
fix(Message): fix typo ( #6435 )
2021-08-15 12:08:51 +01:00
Jiralite
0109ad0466
chore: Ignore .DS_Store ( #6438 )
2021-08-15 12:08:20 +01:00
Jiralite
84bb4f4153
docs(Formatters): Use id over ID ( #6439 )
2021-08-15 12:08:06 +01:00
Sugden
71fdf6fae0
refactor(Channel): make delete async ( #6417 )
2021-08-14 03:50:53 +01:00
Gm
759faa4174
docs(RoleManager): error in examples ( #6416 )
2021-08-14 03:50:44 +01:00
monbrey
615afab8bb
docs: rename implementation of deferReply ( #6412 )
2021-08-13 01:24:05 +01:00
iCrawl
f1d5ffce04
chore: set dev version
2021-08-13 00:35:05 +02:00
iCrawl
d0bc4d7ff0
chore(Release): version
2021-08-13 00:32:27 +02:00
Ben
2bf09703c1
feat(GuildMemberManager): add 'list' method ( #6403 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Ben <BenjammingKirby@users.noreply.github.com >
2021-08-12 23:05:06 +01:00
Suneet Tipirneni
dcc556c311
typings(ApplicationCommandData): make type field optional ( #6405 )
2021-08-12 22:12:29 +01:00
Jan
14aea12900
feat(GuildManager): allow setting with_counts to false ( #6407 )
2021-08-12 22:12:11 +01:00
Jan
e6f48d849f
docs: remove unparsed examples ( #6404 )
2021-08-12 18:01:09 +01:00
Jan
933d2c5eb7
docs(GuildManager): increase fetch limit to 200 ( #6406 )
2021-08-12 17:29:30 +01:00
Mestery
bbda3c4beb
chore(exports): allow imports of specific paths ( #6367 )
2021-08-12 15:10:38 +01:00
Jiralite
dce8fc7b9d
fix(StageInstance): Ensure discoverableDisabled is not undefined ( #6395 )
2021-08-12 15:06:26 +01:00
Jiralite
44bbfa5c46
fix(WidgetMember): Default to null and not undefined ( #6399 )
2021-08-12 15:06:11 +01:00
Jiralite
4a64662a7d
fix(Guild): preferredLocale to always be a string ( #6402 )
2021-08-12 15:06:03 +01:00
Suneet Tipirneni
6342430073
typings(Constants): add ApplicationCommandTypes to Constants ( #6398 )
2021-08-12 15:05:57 +01:00
Suneet Tipirneni
297a9118e7
typings(ApplicationCommandOptionData): Align command data options types more with discord API ( #6247 )
...
* types(ApplicationCommandData): align command data more with discord API
* types(ApplicationCommandData): clean up type definitions a bit
* types(ApplicationCommandData): fix issue where could be used with and
* types(ApplicationCommandOptionData): make subcommand option stronger
* test(ApplicationCommandOptionData): add typing tests
2021-08-12 15:05:41 +01:00
monbrey
fff887b2f4
feat(CommandInteractionResolvedData): access to "raw" resolved data ( #6384 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-08-12 15:04:40 +01:00
monbrey
d9456a1a76
fix(ContextMenuInteractin): store message as raw value ( #6400 )
2021-08-12 11:38:42 +01:00
Jeroen Claassens
cd4029218f
feat(Utils): add additional formatters ( #6388 )
2021-08-11 21:06:10 +01:00
Suneet Tipirneni
75b48d8d0f
types(ApplicationCommandData): Stronger typings for ApplicationCommandData variants. ( #6382 )
2021-08-11 08:14:54 +01:00
DaStormer
de3c86f804
docs(ApplicationCommandData): fix type property ( #6385 )
2021-08-11 08:04:49 +01:00
monbrey
0266f28096
feat: right-clickybois (context menu support for ApplicationCommand and CommandInteraction) ( #6176 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-08-10 23:56:12 +01:00
ckohen
779e14ef61
docs: update links for api-docs ( #6380 )
2021-08-10 23:52:51 +01:00
ckohen
4c8dc4cda6
docs: switch urls from upstream rearranging ( #6378 )
2021-08-10 21:33:32 +01:00
Jiralite
49d3c0bf87
docs: Correct wrong interaction links ( #6274 )
...
* docs: Correct wrong interaction links
* docs: fix errors and apply single option
* Update src/structures/CommandInteraction.js
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-10 21:32:28 +01:00
Nico
3c17939fd5
fix(Util): remove truthy check before isNaN check ( #6358 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-08-10 21:14:41 +01:00
Kevin
2a3e819fcf
typings(Options): createDefaultOptions => createDefault ( #6376 )
2021-08-10 21:08:41 +01:00
Francis Rivard
006edca410
typings(Events): renamed messageReactionAdd's reaction parameter ( #6371 )
...
Nothing important but why not update it.
2021-08-10 15:33:51 +01:00
Noel
91740ecc30
chore(README): extend installation
2021-08-10 15:27:06 +01:00
Gilang Ramadhan
2985e5380f
chore(README): more explanation in README.md ( #6354 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-10 15:25:59 +01:00
Casper
0062aa6f72
docs(Invite): MANAGE_CHANNELS instead of MANAGE_CHANNEL ( #6361 )
2021-08-09 17:30:30 +01:00
Koyamie
ea8d77ea62
docs(Options): defaultMakeCacheSettings typo ( #6365 )
...
fix defaultMakeCacheSettings to be consistant with the actual name.
2021-08-09 17:29:21 +01:00
Sugden
cd393fd421
chore: update conventional commit URL ( #6351 )
2021-08-08 18:11:45 +01:00
JeroenoBoy
efc20ff669
types(ApplicationCommandOptionData) changed options type ( #6347 )
...
* Changed ApplicationCommandOptionData interface
The options type `this[]` as a self reference causes issues when implementing this interface. Changing this to ApplicationCommandOptionData[] fixes this issue
https://imgur.com/a/0eVBoJU
* fixed ApplicationCommandOption
* Update typings/index.d.ts
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-08 17:37:58 +01:00
Almeida
5f1def3793
types(ImageURLOptions): allow 'gif' format ( #6342 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-08-08 17:36:16 +01:00
Advaith
47d2ef3e40
fix(Constants): fix CDN endpoint typings ( #6332 )
2021-08-08 12:45:00 +01:00
Muhimur
f13d27ca2e
docs: grammar fixes ( #6345 )
2021-08-08 11:57:50 +01:00
Jiralite
570fba33d3
chore: Rename various stuff to "main" ( #6343 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-08 00:08:00 +01:00
Shino
94bb953bf1
ci(PublishDev): remove t and hardcoded dev version ( #6238 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-07 21:20:32 +01:00
ahmood
917e71a9ee
fix(Managers): fix typo in unsupported warning ( #6338 )
2021-08-07 21:19:51 +01:00
Papageorgiadis Savvas
394d48649f
feat(Threads): max autoArchiveDuration option ( #6304 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-07 21:19:29 +01:00
SinisterDeveloper
d87299ba20
fix(GuildMemberRoleManager): typo ( #6335 )
2021-08-07 16:50:28 +01:00
ckohen
d14a6bfe1d
refactor(Options): separate default settings for make cache ( #6330 )
2021-08-07 16:41:12 +01:00
iCrawl
68c059165b
chore: fix bug report and feature request templates
2021-08-07 13:41:41 +02:00
iCrawl
d1d740c1a5
chore: even more labels
2021-08-07 13:31:23 +02:00
iCrawl
ed0f605b23
chore: add additional topic labels
2021-08-07 13:21:37 +02:00
Noel
b2e23ca03c
chore: give labels a facelift ( #6333 )
2021-08-07 12:07:03 +01:00
iCrawl
0d765f53d2
chore: dev version
2021-08-07 11:46:31 +02:00
iCrawl
622f398f4b
chore(Release): prepare release
2021-08-07 11:39:43 +02:00
Noel
909c87353e
fix(GuildMemberManager): refactor fetchMany ( #6328 )
2021-08-07 10:35:51 +01:00
Souji
ceae5960ed
fix(Message): handle fetched messages ( #6325 )
2021-08-07 10:35:30 +01:00
Tiemen
60ace9a2d4
types(Util): fix cleanContent parameter type ( #6321 )
2021-08-07 00:59:03 +01:00
Matt (IPv4) Cowley
9e6a627a13
chore: add other maintainers to GH Sponsors config ( #6329 )
2021-08-06 23:09:43 +01:00
iCrawl
2b61fb5b3c
ci: fix deprecation
2021-08-06 17:45:56 +02:00
Jan
cd1aefb46c
docs: fix bad indentation ( #6316 )
2021-08-06 16:43:21 +01:00
iCrawl
3bff08acf7
chore: bump version
2021-08-06 17:38:30 +02:00
iCrawl
cfde127072
chore: prepare release
2021-08-06 15:30:54 +02:00
ckohen
1200bba7bc
fix(MessageMentions): check guild exists before adding roles ( #6313 )
2021-08-06 14:07:31 +01:00
Noel
52817fc414
fix(GuildMemberManager): fetchMany fixes ( #6314 )
2021-08-06 14:07:14 +01:00
ckohen
3725dcafc0
fix(Caching): sweep archived threads in all channel caches ( #6312 )
2021-08-06 13:54:19 +01:00
Rodry
a0974fdbbb
ci: update to node 16 ( #6315 )
2021-08-06 13:41:13 +01:00
Voltrex
d5e28c2298
refactor: replace dependency with initial implementation ( #6310 )
2021-08-06 13:15:51 +01:00
TotallyNotNero
7787a7695a
docs: grammatical fix ( #6311 )
2021-08-06 13:15:23 +01:00
Muhimur
06644770c8
docs: grammar fixes ( #6308 )
2021-08-06 08:45:12 +01:00
슈리튬
913c9fa176
fix(Message): fix thread getter ( #6309 )
...
For ThreadChannel, errors occur because channel.threads do not exist.
2021-08-06 08:44:56 +01:00
iCrawl
a56ba097dc
chore: deps
2021-08-06 01:25:20 +02:00
Rodry
f473f43d08
feat(Collector): return a boolean on checkEnd ( #6289 )
2021-08-05 20:34:17 +01:00
Rodry
b4afcf8236
docs: general cleanup and improvements ( #6299 )
...
Co-authored-by: DaStormer <40336269+DaStormer@users.noreply.github.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-08-05 20:34:06 +01:00
Jan
4241febe24
refactor(Interaction): rename defer to deferReply ( #6306 )
2021-08-05 17:30:13 +01:00
DaStormer
5b4efd13c9
feat(Channel): add isVoice() ( #6297 )
2021-08-05 16:41:06 +01:00
Timo
dd3a79eead
docs: typo in ClientOptions ( #6305 )
2021-08-05 16:40:55 +01:00
Bluenix
b639b6c653
refactor(InteractionCollector): only keep Ids of objects ( #6084 )
...
Co-authored-by: monbrey <rsm999@uowmail.edu.au >
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-05 16:40:23 +01:00
monbrey
3eb41405f4
fix(BaseGuildTextChannel): call patch ( #6298 )
2021-08-04 23:45:26 +01:00
ckohen
a6d4035176
fix: remove support for overriding caches that break functionality ( #6282 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-04 22:04:40 +01:00
monbrey
5be471b47d
refactor(Channels): fix incorrectly shared properties ( #6262 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2021-08-04 21:55:31 +01:00
Suneet Tipirneni
ae6200e58e
types(MessageButtonOptions): Clean up and export some button option type definitions ( #6291 )
2021-08-04 21:48:46 +01:00
Souji
6e3236ab64
fix(Message): make #channel and #guild getters ( #6271 )
2021-08-04 21:47:32 +01:00
Jeroen Claassens
5b0621fb3a
types: make MessageTarget extend on TextBasedChannels ( #6296 )
...
@kyranet and I found the bug when updating @skyra/editable-commands
when our custom function that accepted an argument of `MessageTarget`
was suddenly no longer accepting `message.channel`. Turns out it was
because of a mistake @kyranet made lulz
2021-08-04 21:33:03 +01:00
Muhimur
90c2e072bf
docs: grammar fix ( #6294 )
2021-08-04 09:49:28 +01:00
Pixxies Design LTD
00d5ceebf7
Fixed typos in the slash command register example ( #6292 )
...
## First "example usage" example
Added a period to the first console.log for consistency. Corrected typo in second console.log to read "Successfully".
2021-08-04 00:44:05 +01:00
Antonio Román
6b2098f7c7
feat(Constants): added more error codes ( #6234 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-03 23:14:25 +01:00
ckohen
09471be30e
fix(WebSocketShard): mark shard ready if no guilds intent ( #6284 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-08-03 23:13:18 +01:00
Antonio Román
61db5f7618
refactor: added TextBasedChannels type ( #6286 )
2021-08-03 23:12:51 +01:00
muchnameless
a72b5a355e
fix(Action): getChannel interaction DM ( #6280 )
2021-08-03 23:10:17 +01:00
muchnameless
3c7c82292a
refactor(MessageComponents): default setDisabled to true ( #6279 )
2021-08-03 23:10:04 +01:00
muchnameless
35fa3b3103
docs(Client): mark _finalize as private ( #6281 )
2021-08-03 00:45:09 +01:00
Timotej Rojko
15aea68946
types(Caches): add GuildStickerManager and GuildInviteManager ( #6268 )
2021-08-02 19:58:34 +01:00
Rodry
7e0618f17a
fix(GuildChannel): setParent not working ( #6276 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-08-02 19:38:30 +01:00
Superchupu
6e0ea020c0
docs: update link of the guide to v13 changes ( #6273 )
2021-08-02 11:58:21 +01:00
Superchupu
2c452dffb8
docs: add missing semicolon to readme ( #6270 )
2021-08-02 08:43:36 +01:00
Sugden
e2e4f6518b
refactor(*): use async functions ( #6210 )
2021-08-02 00:47:43 +01:00
Superchupu
626ff85ae7
docs: change example in readme to slash command ( #6250 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-08-01 16:58:41 +01:00
Kevin
7c540764f0
refactor(GuildChannel): use filter method for #members ( #6253 )
...
Co-authored-by: ckohen <chaikohen@gmail.com >
2021-08-01 16:58:06 +01:00
Timotej Rojko
774f5b77ec
fix(ChannelUpdate): restore accidentally removed line ( #6263 )
2021-08-01 16:19:44 +01:00
Jiralite
bb56f17760
docs(InteractionResponses): Correct @returns on responses ( #6257 )
2021-08-01 11:13:29 +01:00
Vlad Frangu
74fc23b3de
chore(Deps): update @discordjs/builders ( #6259 )
2021-08-01 01:42:20 +01:00
ckohen
93e0239c80
fix(Util): fix collection import ( #6256 )
2021-08-01 01:26:16 +01:00
Vlad Frangu
60028251f7
chore(Deps): update discord-api-type ( #6258 )
...
Bite me, Crawl.
2021-08-01 01:25:56 +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
Jiralite
82daee576a
docs: Refactor a few @returns descriptions ( #6228 )
2021-07-31 09:51:34 +01:00
ThumusLive
8b52d06ca9
docs(Widget): Add the typedef WidgetChannel ( #6182 )
2021-07-31 09:51:20 +01:00
1Computer1
bf221f2bef
fix: array/keyArray removed ( #6245 )
2021-07-31 09:45:33 +01:00
ckohen
797727ab6e
docs: update readme node version requirement ( #6241 )
2021-07-31 09:42:19 +01:00
Vlad Frangu
ee3cdc81dd
chore(Deps): update discord-api-types to 0.21.0 ( #6237 )
2021-07-31 00:21:25 +01:00
Shino
d2757cf899
ci(PublishDev): change version number to be sequential ( #6235 )
2021-07-31 00:11:22 +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
Jiralite
2675b0866c
docs(GuildManager): Correct GuildCreateOptions typo ( #6224 )
2021-07-30 00:04:45 +01:00
monbrey
cc5f1ce75e
docs(Constants): document the Constants object for enum-like usage ( #6208 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-07-30 00:04:23 +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
40b127ee1e
docs(Guild): Correct GuildRolePosition typo ( #6223 )
2021-07-30 00:03:48 +01:00
Jiralite
d310e4fc28
docs(WelcomeChannel): Correct guild return type ( #6222 )
2021-07-29 12:29:01 +01:00
슈리튬
6b85f900fa
fix(TextBasedChannel): Fix MessageCreate handling ( #6217 )
2021-07-29 11:55:37 +01:00
Kevin
105a194546
docs(Constants): fix StickerTypes typedef ( #6218 )
2021-07-29 11:53:38 +01:00
A1ex
f44bfc47c7
docs(MessageMentions): fix documentation for members property ( #6206 )
2021-07-29 11:53:23 +01:00
Jiralite
1009ce169b
docs(Guild): Add GuildTextChannelResolvable type definition ( #6221 )
2021-07-29 11:53:02 +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
SpaceEEC
42a0313034
fix(PermissionOverwrites): throw better error if resolving option fails ( #6219 )
2021-07-29 11:10:27 +01:00
Justin
be5c0eff34
chore: update discord domain name ( #6214 )
2021-07-29 02:54:08 +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
68725476b3
fix(Channel): add default for destructured options ( #6203 )
2021-07-28 21:31:59 +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
IRONM00N
30a58dc801
fix: export various classes that are exported in the typings ( #6166 )
...
The following classes were exported in the typings but not the `index.js` file:
- `ApplicationCommandPermissionsManager`
- `CachedManager`
- `ClientVoiceManager`
- `DataManager`
- `GuildInviteManager`
- `StageInstanceManager`
- `VoiceStateManager`
- `WebSocketManager`
- `WebSocketShard`
- `AnonymousGuild`
- `GuildPreviewEmoji`
- `InviteStageInstance`
- `InviteGuild`
- `PartialGroupDMChannel`
- `StageInstance`
- `StickerPack`
- `Typing`
- `WelcomeChannel`
- `WelcomeScreen`
- `GuildAuditLogsEntry`
2021-07-27 11:15:49 +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
Jiralite
c8ca7bfd2c
fix(GuildAuditLog): Assert target to null upon not finding invite codes ( #6171 )
2021-07-23 01:17:02 +01:00
ckohen
870a0de53c
fix(Message): fix typo in sticker_items ( #6173 )
2021-07-22 22:55:47 +01:00
Jiralite
5e706941fc
docs(CommandInteraction): Correct type definition of CommandInteractionOption ( #6169 )
2021-07-22 12:56:44 +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
07017a9699
fix(Sticker): replace 'this.guildID' (undefined) by 'this.guildId' in fetchUser ( #6160 )
...
Co-authored-by: Apokalypt <enterprise@apokalypt.fr >
2021-07-21 08:39:17 +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
monbrey
02f55f0971
fix(CommandInteractionOptionResolver): type should be USER ( #6148 )
2021-07-20 01:46:38 +01:00
Floffah
8ccfd6e07b
fix(CommandInteractionOptionResolver): Export CommandInteractionOptio… ( #6146 )
...
**Please describe the changes this PR makes and why it should be merged:**
CommandInteractionOptionResolver is exported in the typings, but not in the index.js file
**Status and versioning classification:**
- Code changes have been tested against the Discord API, or there are no code changes
- I know how to update typings and have done so, or typings don't need updating
2021-07-20 00:18:19 +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
eeehh
c40c0f934a
fix(GuildChannel): only fetch invites for the specific channel ( #6132 )
2021-07-18 19:16:48 +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
HyRo
4d53d0fd11
refactor(ActionsManager): less complex code ( #6102 )
...
Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk >
Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com >
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
Co-authored-by: Gabe616 <60316309+Gabe616@users.noreply.github.com >
2021-07-17 12:25:59 +01:00
Advaith
366f3c910a
feat: make Instance#fetch force true by default, and fix force parameter ( #6116 )
...
Co-authored-by: Almeida <almeidx@pm.me >
2021-07-17 12:25:23 +01:00
Antonio Román
ef5ba05996
types(Message): mark #thread as nullable ( #6129 )
2021-07-17 12:25:05 +01:00
Alan
de384047b3
chore(ApiRequest): remove mention of var ( #6125 )
...
Co-authored-by: Alan <you@example.comalanlichen1 @gmail.com>
2021-07-17 12:22:45 +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
Matt (IPv4) Cowley
dee5c83fc0
fix(PermissionsOverwrites): only convert type if number ( #6092 )
2021-07-12 07:53:18 +01:00
Tiemen
a8984bc68c
types(Guild): remove fetchVoiceRegions ( #6099 )
2021-07-11 23:58:16 +01:00
Rodry
d433fe8a08
fix: channel type check in actions ( #6086 )
2021-07-10 21:51:32 +01:00
SpaceEEC
f72ce7c136
fix(GuildChannel): clone its PermissionOverwriteManager too ( #6083 )
2021-07-10 13:15:20 +01:00
DTrombett
d6c43a50bd
types(Partial): add partial reactions ( #6066 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-07-09 12:25:59 +01:00
iCrawl
5b6be0cebc
types(Test): fix overloads for channel create
2021-07-08 22:46:26 +02:00
SpaceEEC
637c8e0fdf
fix(PresenceUpdate): use added presence over nullable getter ( #6077 )
...
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-07-08 21:43:48 +01:00
Rodry
6301728d35
refactor(Channel): change channel types to UPPER_CASE ( #6035 )
2021-07-08 21:32:19 +01:00
anandre
b170fb5ce8
docs(InteractionResponses): reply docs example ( #6079 )
...
Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com >
2021-07-08 21:16:03 +01:00
BaumianerNiklas
67e9ce4693
docs(InteractionResponses): generalize wording in update to fit other component interaction types ( #6074 )
2021-07-08 15:39:36 +01:00
BannerBomb
c1eaa78ab7
typings(GuildInviteManager): FetchInvitesOptions ( #6076 )
2021-07-08 15:39:23 +01:00
1Computer1
9cd5e7ed61
refactor(Managers): rename add to _add ( #6060 )
2021-07-08 11:34:45 +01:00
DTrombett
28b5ffb4d6
docs(ClientUser): fix shardId nullable ( #6072 )
...
* docs(ClientUser): fix shardId nullable
* docs(ClientUser): fix id lowercase for consistency
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-07-07 23:22:51 +01:00
Antonio Román
7322547172
types: fixed unreachable overloads ( #6062 )
2021-07-07 17:34:39 +01:00
DTrombett
58bbcd591e
types(ApplicationCommand): fix option name ( #6067 )
...
* types(ApplicationCommand): fix option name
* fix(ApplicationCommand): update tests
* fix(ApplicationCommand): fix error param
2021-07-07 13:41:47 +01:00
Antonio Román
98a5b52d8b
refactor(ApplicationCommandManager): remove unused assignment ( #6063 )
2021-07-07 13:41:02 +01:00
Antonio Román
4eb3a2a885
refactor: rename Constants.OPCode to Opcode, moved objects to enums ( #6065 )
2021-07-07 13:40:36 +01:00
ckohen
755c180659
feat: allow channels from uncached guilds to be returned from fetch ( #6034 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-07-06 13:04:26 +01:00
Rodry
2e078e4488
types(*): revert incorrect unknown type changes ( #6057 )
...
Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com >
2021-07-05 22:49:34 +01:00
Jan
c0a814fdb3
feat(Collector): better types for events ( #6058 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-07-05 22:26:15 +01:00
BannerBomb
4c0426c469
docs: fixed several typings and MessagePayload#create JSDoc ( #6059 )
2021-07-05 22:26:06 +01:00
SpaceEEC
ded93feb57
refactor(PresenceManager): have Presence extend Base and simplify add ( #6056 )
...
* refactor(PresenceManager): have Presence extend Base and simplify add
* style(Presence): add empty line after super call
Co-authored-by: Noel <buechler.noel@outlook.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-07-05 19:53:15 +01:00
SpaceEEC
afbd5db404
refactor(Presences): remove from User, nullable on GuildMember ( #6055 )
...
as well as on Client#presenceUpdate
2021-07-05 19:53:00 +01:00
Shubham Parihar
8d9ab741c8
docs(ThreadChannel): fix documentation for setLocked method ( #6053 )
2021-07-05 18:36:25 +01:00
iAmZiNc
162d89a42f
fix(Presence) missing client property definition ( #6054 )
2021-07-05 18:03:07 +01:00
Almeida
93e2c04ec2
fix(InviteScope): added missing 'bot' scope ( #6052 )
2021-07-05 16:07:57 +01:00
Antonio Román
03fe6ee4e4
test(Types): add notPropertyOf type-only utility ( #6051 )
2021-07-05 16:07:45 +01:00
Souji
3022b0f5b1
refactor(Intents): remove computed shorts ( #6050 )
2021-07-05 16:07:30 +01:00
PanSzelescik
28c57246d1
feat(Message): add 'failIfNotExists' to ClientOptions ( #6038 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-07-05 13:53:40 +01:00
PanSzelescik
31d31293d3
feat(LimitedCollection): export LimitedCollection ( #6043 )
...
* feat(LimitedCollection): export LimitedCollection
* fix: remove @private
* fix: typings
2021-07-05 13:53:15 +01:00
monbrey
34708d6d18
fix(SelectMenuInteraction): set values to empty array if not provided ( #6045 )
2021-07-05 13:39:21 +01:00
Antonio Román
1a27f57950
refactor: remove lastMessage properties from User and GuildMember ( #6046 )
2021-07-05 13:11:13 +01:00
Jan
676118ab0f
refactor(typings): general cleanup ( #6047 )
2021-07-05 12:55:06 +01:00
monbrey
e3d877d542
fix(Guild): add invite manager property, extend CachedManager ( #6049 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-07-05 12:16:34 +01:00
BannerBomb
fe5d56c9b1
fix(TeamMember): Fixed incorrect return types. ( #6044 )
2021-07-04 22:55:00 +01:00
monbrey
c6e5521687
feat(Client): enforce passing scopes to generateInvite ( #6024 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-07-04 22:53:57 +01:00
DraftMan
9e08b02df2
feat(Managers): ✨ Add GuildInviteManager ( #5889 )
...
Co-authored-by: iShibi <shubhamparihar391@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: SpaceEEC <SpaceEEC@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: iCrawl <icrawltogo@gmail.com >
2021-07-04 22:53:13 +01:00
BannerBomb
c4aa9feee2
types(Options): should extend null ( #6042 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-07-04 22:05:16 +01:00
Antonio Román
185e37602b
types(Voice): move types to the library's definitions ( #6041 )
...
* types(Voice): move types to d.js
* types: added padding lines
Co-authored-by: Noel <buechler.noel@outlook.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-07-04 21:10:33 +01:00
Antonio Román
a7c6678c72
refactor: change xID to xId ( #6036 )
...
* refactor: change `xID` to `xId`
* Update src/managers/MessageManager.js
Co-authored-by: Noel <buechler.noel@outlook.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-07-04 19:54:27 +01:00
didinele
281072be44
chore: remove unnecessary getter ( #6037 )
2021-07-04 15:59:28 +01:00
1Computer1
ab0b3b9a07
fix(Structures): remove Structures ( #6027 )
2021-07-04 12:26:35 +01:00
Shubham Parihar
db60e367b4
docs(MessageManager): document options param for #edit as required ( #6031 )
2021-07-04 12:25:59 +01:00
ckohen
2ab32e6bc6
types: better fullPermissions typings ( #6028 )
2021-07-04 12:25:42 +01:00
ckohen
b62d646271
docs: add Partial typedef ( #6029 )
2021-07-04 12:25:35 +01:00
Shubham Parihar
d58f0d243c
fix(GuildChannel): use map method on cache not its manager ( #6032 )
2021-07-04 12:25:28 +01:00
monbrey
610b0b4dd6
docs: fix some missed MessageComponent collector methods ( #6023 )
2021-07-04 00:27:07 +01:00
monbrey
8077e4f4f1
fix(PermissionOverwriteManager): pass ID to API correctly ( #6026 )
2021-07-04 00:26:44 +01:00
1Computer1
8c7cb0eff8
feat(Managers): add customizable caching for managers ( #6013 )
2021-07-04 00:26:26 +01:00
Almeida
ec06ba7ad0
docs(*): wrap optional properties with union types in parentheses ( #6021 )
2021-07-03 21:00:53 +01:00
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
SkyFlags
7e3001191c
fix(GuildChannel): Add missing 'cache' property ( #6019 )
2021-07-03 19:59:52 +01:00
Vlad Frangu
39db95352c
fix: Remove connection.url from open debug message ( #6018 )
2021-07-03 18:44:48 +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
DTrombett
bd25ff5913
fix(Util): splitMessage not working with array ( #6008 )
...
Co-authored-by: muchnameless <12682826+muchnameless@users.noreply.github.com >
2021-07-03 13:25:43 +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
Rodry
4adfc45b5a
docs(CreateInviteOptions): fix TargetType link ( #6017 )
2021-07-03 13:22:35 +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
Tobias Peltzer
e4be666c2c
fix(ThreadManager): fixed wrong private and fetchAll check ( #6012 )
2021-07-03 08:56:35 +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
Rodry
fbdad6eac3
docs(*): add class links to isX() methods ( #6007 )
2021-07-02 19:51:59 +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
DTrombett
d742814686
docs(Util): methods removed on the base object ( #5990 )
2021-07-01 17:38:52 +01:00
Rodry
d078dce2f8
ci: deprecate old dev releases on publish ( #5992 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-07-01 17:37:32 +01:00
Hackerboi 69
521d26c57f
types(Interactions): fix function overload types ( #5989 )
2021-07-01 17:37:25 +01:00
Adrian Castro
6edf55c04b
fix(ApplicationCommand): fix typo in JSDoc ( #5994 )
2021-07-01 17:35:10 +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
Rodry
58183d425b
docs(Partials): add link to the guide ( #5982 )
2021-07-01 09:58:27 +01:00
monbrey
9ac68670d7
fix(ThreadChannel): check for existence of properties when patching ( #5961 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-07-01 09:58:20 +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
Rodry
f819416bac
docs(MessageSelectMenu): add link to Discord docs ( #5984 )
2021-07-01 09:57:25 +01:00
DTrombett
a08ce7dddb
types(ThreadChannel): make locked and archived param optional ( #5980 )
2021-06-30 23:45:59 +01:00
Sugden
1e8f01253e
refactor: new node features ( #5132 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-06-30 21:40:33 +01:00
Shubham Parihar
f108746c15
docs(ThreadManager): fix FetchedThreads typedef and startMessage ( #5971 )
2021-06-30 17:20:01 +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
iCrawl
64f093f9c4
chore: deps
2021-06-30 13:05:02 +02:00
Antonio Román
8c7a28f211
feat(Util): added formatters ( #5976 )
2021-06-30 09:50:31 +01:00
A1ex
58bc1458d0
docs(Message): Add ThreadChannel as a channel type ( #5972 )
2021-06-30 06:24:37 +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
Shubham Parihar
5dfd7dd1bf
docs(ThreadManager): fix reason prop of ThreadCreateOptions ( #5970 )
2021-06-29 22:31:26 +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
Rodry
706c6eae60
ci: add UNIX timestamp to version number ( #5967 )
...
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
2021-06-29 20:27:47 +01:00
Shubham Parihar
853be621ac
docs(Channel): fix description of thread channel types ( #5968 )
2021-06-29 20:27:20 +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
BannerBomb
5ad83a6a65
fix(Webhook): return void from #delete for consistency. ( #5954 )
2021-06-29 13:25:01 +01:00
BannerBomb
fb8d5166a8
refactor(Presence): remove second assignment of syncID ( #5956 )
2021-06-29 11:50:51 +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
monbrey
41f718f779
docs: drop string from MessageButtonStyleResolvable ( #5944 )
2021-06-29 00:37:38 +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
BaumianerNiklas
d3d19ce49b
docs(Webhook): fix thread example in send method ( #5953 )
2021-06-29 00:34:30 +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
SkyFlags
dc671c8ac4
fix(Message): Make author of referenced message nullable ( #5929 )
2021-06-28 11:53:53 +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
SpaceEEC
630432b4e2
docs(Channel): make the type news_thread an inline code-block ( #5940 )
2021-06-27 12:46:37 +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
Jake Ward
adecead716
fix(ThreadMemberManager): fix ThreadMemberManager#add and ThreadMemberManager#fetch ( #5927 )
2021-06-26 10:54:37 +01:00
ckohen
6065b11634
types(ThreadMemberManager): fix incorrect usage ( #5928 )
2021-06-26 10:54:23 +01:00
SpaceEEC
4714a961b8
fix(Webhook): resolve non-string avatars too ( #5914 )
2021-06-25 11:11:56 +01:00
Jan
261612596d
feat(MessageMentions): add repliedUser ( #5905 )
2021-06-25 11:07:31 +01:00
Rodry
5af2ef5fbc
docs(Thread): add links to discord api docs ( #5919 )
2021-06-25 00:34:10 +01:00
monbrey
75837a8252
docs(MessageSelectMenu): fix options typings ( #5922 )
2021-06-25 00:33:58 +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
BannerBomb
d984ac9d09
Fixed typos from commit #5570 ( #5917 )
2021-06-24 22:20:57 +01:00
monbrey
ca2a36b1d7
fix(ApplicationCommand): stringType isn't supposed to be sent to the API ( #5916 )
2021-06-24 21:57:11 +01:00
ckohen
7346621d15
feat: api v9 and threads ( #5570 )
...
Co-authored-by: Noel <icrawltogo@gmail.com >
Co-authored-by: Amish Shah <dev@shah.gg >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: SynthGhost <60333233+synthghost@users.noreply.github.com >
Co-authored-by: SpaceEEC <24881032+SpaceEEC@users.noreply.github.com >
Co-authored-by: Elliot <elliot@maisl.fr >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-06-24 20:48:29 +01:00
monbrey
ea49f7ca74
feat(InteractionCreate): move to an Action handler ( #5906 )
2021-06-24 20:42:56 +01:00
SpaceEEC
ee025b0558
fix(Permissions): allow admin to override in the missing method ( #5911 )
2021-06-24 20:42:40 +01:00
Rodry
e0efcc6ab0
docs(*): add links to Discord's API objects & data ( #5862 )
2021-06-24 09:55:44 +01:00
Pronin Egor
6d3d00b445
fix(InteractionResponses): set replied status on editReply ( #5899 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
2021-06-24 00:07:33 +01:00
Shubham Parihar
d930c812bb
feat: add missing APIError codes ( #5898 )
2021-06-24 00:04:55 +01:00
monbrey
bd9f56af9a
feat(Interactions): improve error handling for ephemeral responses ( #5892 )
...
Co-authored-by: muchnameless <12682826+muchnameless@users.noreply.github.com >
2021-06-24 00:03:52 +01:00
monbrey
2d7c12b0e9
fix(Message): flags not being parsed on some edits ( #5886 )
...
* fix(Message): flags not being parsed on some edits
* refactor(MessageManager): access cache once
2021-06-24 00:02:30 +01:00
Jan
1816a93b1b
refactor: remove exported shortcuts to util methods ( #5904 )
2021-06-23 10:47:17 +01:00
Shubham Parihar
6cebeae15e
docs: move embeds field into BaseMessageOptions ( #5902 )
2021-06-22 15:25:18 +01:00
Antonio Román
edf6f0ca70
docs(Readme): remove dependencies badge ( #5901 )
2021-06-22 11:09:23 +01:00
Brage
3d96a33bd0
docs(AnonymousGuild): add missing extends tag ( #5896 )
2021-06-22 10:24:04 +01:00
Shubham Parihar
c850ae1027
feat: add APIError codes for stage instance ( #5888 )
2021-06-20 15:48:02 +01:00
ckohen
174b7a7f9c
fix(Guild): don't patch before instance properties ( #5885 )
...
Co-authored-by: BannerBomb <BannerBomb55@gmail.com >
2021-06-20 15:47:30 +01:00
Jacob Morrison
1f8f3ab0f8
fix(presenceUpdate): fire when only state/details change on an activity ( #5846 )
2021-06-19 17:27:54 +01:00
Souji
44e2ee7b20
feat(WelcomeScreen): welcome screens ( #5490 )
...
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-06-19 16:44:45 +01:00
Brage
807ea2d3c1
docs(VoiceState): channel can be null ( #5872 )
...
The docs does not show that VoiceState#channel can be null

This should fix the issue
2021-06-18 16:37:57 +01:00
Tyler Resch
e3ed74a5e8
docs(ReplyMessageOptions,MessageEditOptions): replaced embed with embeds ( #5860 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-06-18 14:42:53 +01:00
Shubham Parihar
2d12db000f
feat: stage instance invite ( #5856 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-06-18 00:01:18 +01:00
Shubham Parihar
a3cbcca13d
feat(Guild): add enum for premium_tier ( #5868 )
2021-06-16 15:33:01 +01:00
monbrey
a0b7d95e36
types(MessageReactionResolvable): add string ( #5863 )
2021-06-16 10:29:14 +01:00
Antonio Román
6cceb936a7
refactor(Package): remove runkitExampleFilename ( #5866 )
2021-06-16 10:29:02 +01:00
Shubham Parihar
f7eeccba4b
feat(*): use enums for consistency and speed ( #5843 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-06-15 12:33:31 +01:00
Rodry
671436cbb8
fix(Message): editedTimestamp defaulting to 0 ( #5847 )
2021-06-15 12:02:56 +01:00
monbrey
9dda9b742f
refactor(awaitMessageComponentInteraction): use options object for lib consistency ( #5852 )
2021-06-15 12:02:48 +01:00
Jiralite
96a4e7b86e
docs: Consistent application name usage ( #5853 )
2021-06-15 12:02:39 +01:00
ThumusLive
038ee99604
feat(Widget): wrapper for widget.json ( #5619 )
...
Co-authored-by: monbrey <rsm999@uowmail.edu.au >
Co-authored-by: BannerBomb <BannerBomb55@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
2021-06-15 12:02:18 +01:00
Tyler Resch
a6dae75d3a
docs(TextBasedChannel#send): update embeds example ( #5857 )
2021-06-15 11:59:53 +01:00
Shubham Parihar
918921e821
feat: stage instances ( #5749 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-06-14 12:57:37 +01:00
muchnameless
a1f94f670e
fix(ApplicationCommand): default option.required fix ( #5848 )
2021-06-14 08:10:05 +01:00
Shubham Parihar
1ac9a2eb5b
refactor(*): make typedefs for all options params ( #5785 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-06-13 19:32:54 +01:00
monbrey
01a1fd615b
fix(Guild): setChannelPositions null parenting ( #5841 )
2021-06-13 19:31:06 +01:00
Rodry
77c1f15c9f
fix(ApplicationCommand): default option.required to false ( #5838 )
2021-06-13 19:31:00 +01:00
Papageorgiadis Savvas
d5bb7585da
types(GuildApplicationCommandManager): allow undefined command ( #5837 )
...
Co-authored-by: Almeida <almeidx@pm.me >
2021-06-13 19:30:34 +01:00
Almeida
a0a56e2cb3
types: corrected shard broadcastEval ( #5834 )
2021-06-13 19:30:28 +01:00
Jan
4dbcaf76c3
refactor(GuildPreviewEmoji): make roles an array ( #5720 )
2021-06-13 19:30:20 +01:00
Jan
02693bc02f
refactor(APIMessage): remove unused declarations ( #5836 )
2021-06-12 12:11:57 +01:00
monbrey
9376ee42f4
docs(ButtonInteraction): fix typo ( #5835 )
2021-06-12 12:11:48 +01:00
ckohen
7111b4cd5f
refactor: fetch options consistency ( #5824 )
2021-06-12 12:10:35 +01:00
monbrey
08cffd6a30
types(MessageComponentInteraction): update should return Promise<void> ( #5829 )
2021-06-12 12:10:24 +01:00
Shubham Parihar
29173bf814
fix(GuildManager): #create throws when systemChannelFlags is undefined ( #5832 )
2021-06-12 12:10:13 +01:00
Matt (IPv4) Cowley
c5859337b6
fix(GuildChannel): don't force parentID/permissionOverwrites to empty on create ( #5823 )
2021-06-12 12:10:01 +01:00
Adrian Castro
99ff715137
feat(*): document and support embeds field in message create endpoint ( #5792 )
...
Co-authored-by: ckohen <chaikohen@gmail.com >
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
2021-06-11 23:45:17 +01:00
Matt (IPv4) Cowley
6df36232a0
fix(GuildChannel): improve empty overwrite handling for permissionsLocked ( #5821 )
2021-06-11 23:45:05 +01:00
Antonio Román
9e5106d90e
docs: removed topics and FAQ from the repository ( #5820 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: ckohen <chaikohen@gmail.com >
2021-06-11 23:41:49 +01:00
ckohen
24e5868818
fix(ApplicationCommands): allow managing commands for uncached guilds ( #5729 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-06-11 23:26:24 +01:00
Jan
e990c35476
fix(ClientApplication): freeze flags ( #5811 )
2021-06-11 23:22:10 +01:00
Shubham Parihar
a5a6e22316
fix(*): typedefs and typings for image & webhook options ( #5805 )
2021-06-11 23:22:01 +01:00
SpaceEEC
19d0405aa5
refactor(GuildChannel): use Permissions.defaultBit over 0n ( #5822 )
2021-06-11 23:21:51 +01:00
Antonio Román
fdef940127
refactor: remove all voice code ( #5818 )
...
* refactor: remove all voice code
* refactor: remove even more remnants
2021-06-11 23:21:34 +01:00
Almeida
93b0a4e005
fix(TextBasedChannel): allow passing an APIMessage with split ( #5815 )
...
* fix(TextBasedChannel): allow passing an APIMessage with split
* fix(Webhook): allow passing an APIMessage with slit
2021-06-11 22:54:29 +01:00
Ratul Saha
19fd1622f5
types(Extendable): add ButtonInteraction ( #5802 )
2021-06-11 22:54:00 +01:00
Jan
e3e466d3e5
refactor(MessageEmbed): remove files ( #5813 )
...
* refactor(MessageEmbed): remove files
* fix: test
2021-06-11 21:36:31 +01:00
Juruel Keanu Lorenzo
a7ebb2145c
fix(PermissionOverwrites): optional allow/deny OverwriteData ( #5810 )
2021-06-11 21:31:11 +01:00
Adrian Paschkowski
935f819207
fix(Typings): Fix BitField toJSON/valueOf return types ( #5806 )
2021-06-11 21:30:58 +01:00
Almeida
5fb6c0dd14
chore(npm): ignore unnecessary files ( #5816 )
...
* chore(npm): ignore unnecessary files
* use package#files instead of npmignore
2021-06-11 21:30:34 +01:00
Antonio Román
55ad6f0e23
docs(README): re-add install command, remove voice remnants ( #5817 )
2021-06-11 21:30:09 +01:00
Jan
77e28cf65b
fix(Hooks): make husky hooks executable ( #5812 )
2021-06-11 17:18:05 +01:00
Mark Fisher
41673b7382
fix(GuildChannel): clone errors when options.name isn't provided ( #5804 )
2021-06-11 11:04:45 +01:00
SpaceEEC
53d8e49dca
fix(WebSocketShard): don't catch errors thrown in event handlers ( #5803 )
2021-06-11 10:46:14 +01:00
Tyler Resch
f5f3f77286
docs(MessageEmbed): deprecation advisory for type ( #5774 )
...
Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
2021-06-10 19:35:35 +01:00
SpaceEEC
097c7b9cdd
fix: don't patch missing properties from partial payloads ( #5796 )
...
* fix: don't patch missing properties from partial payloads
* fix(GuildChannel): initialize permissionOverwrites in the constructor
* refactor(GuildChannel): remove redundant if
2021-06-10 17:42:45 +01:00
Shubham Parihar
ffabec3a5e
feat(Guild): add enum for mfa_level ( #5797 )
2021-06-10 17:19:08 +01:00
SpaceEEC
2f5424bdac
fix(GuildChannel): spread clone options to avoid infinite recursion ( #5800 )
2021-06-10 17:07:12 +01:00
SpaceEEC
18ac72e457
feat(RequestHandler): emit more info when a rate limit was hit ( #5801 )
...
* feat(RequestHandler): emit more info when a rate limit was hit
* emit 'None' when no sublimit was hit
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-06-10 17:06:11 +01:00
SpaceEEC
eb98e33a85
fix(Webhook): throw an error if no token is available when it's required ( #5798 )
2021-06-10 17:05:45 +01:00
Shubham Parihar
e0ab836b2d
feat: add new APIErrors ( #5794 )
2021-06-10 17:05:37 +01:00
SpaceEEC
ea0e06f980
fix(ClientPresence): produce valid activities for set presences ( #5799 )
2021-06-10 17:05:27 +01:00
SpaceEEC
68f7aebcaf
fix(BitField): ensure missing returns an array of strings ( #5795 )
2021-06-10 17:05:17 +01:00
Souji
a1f763ee75
refactor(Guild): remove region from guild and manager methods ( #5766 )
2021-06-10 15:09:57 +01:00
u9g
fbcbb29884
feat(Util): allow array for StringOptions' char ( #5566 )
...
Co-authored-by: Voltrex <62040526+VoltrexMaster@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Papaia <43409674+papaia@users.noreply.github.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
2021-06-10 10:24:45 +01:00
Shubham Parihar
eb0291d9a5
feat(GuildAuditLogs): make #target a channel for channel related logs ( #5781 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-06-10 10:24:36 +01:00
ckohen
35781597d0
fix(ApiMessage): only pass objects as options directly ( #5793 )
...
* fix(ApiMessage): only pass objects as options directly
* refactor: inline if with ternary
2021-06-10 08:41:01 +01:00
Austrian
35c2225f50
docs(Messages): fix examples in messages after changes in #5758 ( #5791 )
2021-06-09 19:33:07 +01:00
Jiralite
4511624e79
docs(ApplicationCommand): Typos in ApplicationCommandPermissionData ( #5789 )
2021-06-09 19:32:49 +01:00
Amish Shah
c6aeebb18d
feat(Sharding*): contexts for broadcastEval ( #5756 )
...
* feat(ShardClientUtil): add parameterList to broadcastEval
* feat(ShardingManager): add parameterList to broadcastEval
* chore: update typings
* refactor(Sharding*): use BroadcastEvalOptions
* chore: update typings
* docs: use serializable instead of stringifiable
* refactor: don't set broadcastEval default context
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
* chore: fix inaccuracy in typings
* refactor(Sharding*): remove string-based broadcastEval
* fix(ShardingManager): incorrect usage of _broadcastEvalRaw
* refactor(ShardingManager): remove unnecessary method
* refactor(Sharding*): type check the eval script
* fix(ShardingManager): return Promise rejection rather than throwing an error
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
* chore: fix typings
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-06-09 18:14:33 +01:00
Amish Shah
7b2e12b102
feat(Voice): implement support for @discordjs/voice ( #5402 )
2021-06-09 14:21:19 +01:00
monbrey
c4f1c75efa
feat: general component improvements ( #5787 )
2021-06-09 13:59:12 +01:00
Kevin
0156f693e0
fix(BitField): throw an error if bit to resolve is undefined ( #5565 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-06-09 13:56:40 +01:00
Jan
0139e102e3
docs(GuildMemberManager): fix docs for #search() ( #5784 )
2021-06-09 13:15:53 +01:00
Ishmaam Khan
e798fb720e
feat(GuildChannelManager): add 'fetch' method ( #4966 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Avocado <43632131+Awoocado@users.noreply.github.com >
2021-06-09 13:12:33 +01:00
Adrian Castro
0467a9075f
refactor: enforce single param on sending/editing methods ( #5758 )
...
Co-authored-by: ckohen <chaikohen@gmail.com >
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-06-09 13:12:16 +01:00
Adam Gauthier
dda5ee2e9f
refactor: guildAvailable, typingStop from Constants ( #4861 )
...
Both of these events no longer exist and should not be exposed in
Constants. Typings have been adjusted to correspond to Constants.Events.
2021-06-09 10:43:57 +01:00
Jan
ae78a336e1
fix: remove remnants of awaitMessageComponentInteractions ( #5783 )
2021-06-09 08:45:34 +01:00
Ven
16f261e773
feat(Rest): optional ratelimit errors ( #5659 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-06-09 08:45:04 +01:00
monbrey
c2b3ed09a0
feat: promisified single interaction collection ( #5770 )
2021-06-08 20:52:27 +01:00
Kevin
32d8c8ba94
docs: CommandInteraction#channelID is type of Snowflake ( #5776 )
2021-06-08 14:16:37 +01:00
Nordiago
84e5b075b4
refactor(Interactions): move Structures import out of switch block ( #5763 )
2021-06-08 14:16:05 +01:00
Shubham Parihar
e980948de5
fix(*): add missing imports for custom errors ( #5767 )
2021-06-07 13:09:43 +01:00
meister03
d1c5b6fe9e
fix(ShardingManager): client error event cannot be emitted ( #5559 )
...
Co-authored-by: monbrey <rsm999@uowmail.edu.au >
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-06-07 13:09:23 +01:00
Souji
65dc00f321
feat(Message): applicationID for interaction responses ( #5765 )
2021-06-07 09:58:38 +01:00
Souji
bf191df9c0
feat(Client): make use of with_expiration in #fetchInvite ( #5764 )
2021-06-07 09:58:26 +01:00
Shubham Parihar
4567cd4ca2
docs(InteractionDeferOptions): correctly define the typedef ( #5769 )
2021-06-07 09:33:12 +01:00
monbrey
657635c1c0
fix: add components to MessageOption typedefs ( #5768 )
2021-06-07 09:32:50 +01:00
ckohen
dec191aa1e
feat(Interactions): add InteractionWebhook for better internals ( #5712 )
2021-06-06 00:41:23 +01:00
Rodry
1d57754d46
fix(Interaction): add missing types and fix docs lists ( #5762 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-06-05 21:05:27 +01:00
Shubham Parihar
2901fd595b
fix(Webhook): #editMessage throws error when content is null ( #5757 )
2021-06-05 20:26:12 +01:00
SpaceEEC
f0dad26a5b
fix(MessageComponentInteraction): correctly type defer method ( #5760 )
2021-06-05 20:25:39 +01:00
Shubham Parihar
f7e420bf29
docs: add new guild features ( #5755 )
2021-06-05 11:04:56 +01:00
monbrey
c6696d8399
types: extend MessageComponentInteractionCollector correctly ( #5752 )
2021-06-05 11:04:31 +01:00
TheMaestroo
cf224560bc
fix(RoleManager): bug in #create ( #5730 )
...
Co-authored-by: ckohen <chaikohen@gmail.com >
2021-06-05 07:14:44 +01:00
monbrey
cbd7f2b9aa
feat(MessageComponents): clickybois (MessageButton, MessageActionRow, associated Collectors) ( #5674 )
...
Co-authored-by: Vicente <33096355+Vicente015@users.noreply.github.com >
Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: BannerBomb <BannerBomb55@gmail.com >
Co-authored-by: Arechi <22101241+Arechii@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-06-04 16:49:46 +01:00
Shubham Parihar
df9b67894a
docs(Message): fix content param in #edit not showing as nullable ( #5748 )
2021-06-03 23:08:40 +01:00
iCrawl
43fc40e9b4
types: fix awaitReactions typings for returned collection
2021-06-03 20:29:02 +02:00
Shubham Parihar
a2f0c11474
fix(Message): update typings and docs related to #edit ( #5745 )
...
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
2021-06-03 19:18:13 +01:00
Rodry
ff4d6dded5
types: change remaining string IDs to Snowflakes ( #5737 )
2021-06-03 19:17:31 +01:00
Casper
3e9ce35023
fix(Typings): add missing typings for HttpError -> requestData ( #5742 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-06-03 19:17:05 +01:00
SpaceEEC
99e2ca408b
debug(WebSocketShard): emit intents used in identify ( #5744 )
2021-06-03 16:18:21 +01:00
Vlad Frangu
db0d7d4ea8
feat(Esm): use gen-esm-wrapper instead of manually making the file ( #5700 )
2021-06-03 16:01:49 +01:00
Jan
b317d86a93
docs: all the missing object -> Object changes ( #5738 )
2021-06-03 15:57:46 +01:00
Jan
bfe01b52ab
fix(MessageEmbed): import custom RangeError class ( #5740 )
2021-06-03 15:54:19 +01:00
Justin
02b3cca522
chore: update the color of the discord.js server badge ( #5739 )
...
This uses the hex code 5865F2, which is the new blurple of Discord.
2021-06-03 15:53:51 +01:00
Vlad Frangu
ef92339d07
feat(Rest): show the data that is sent to Discord when an errors occurs ( #5701 )
2021-06-03 09:35:09 +01:00
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
Andreas Clausen
d21e6af1d2
fix(GuildMemberManager): allow moving members to any non-text channel ( #5681 )
2021-06-02 10:57:04 +01:00
Shubham Parihar
678b7da5b3
docs: remove traces of StringResolvable ( #5727 )
2021-06-02 10:55:56 +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
Jan
53d952a4ce
refactor: remove _roles from pseudo-managers ( #5721 )
2021-06-01 22:35:11 +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
iCrawl
7f0d93a2da
chore: pull config files out of package.json
2021-06-01 00:06:52 +02: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
iCrawl
652c683da7
ci: fix publish action
2021-05-31 03:23:48 +02:00
dependabot[bot]
0b169792af
chore(deps): bump ws from 7.4.5 to 7.4.6 ( #5707 )
...
Bumps [ws](https://github.com/websockets/ws ) from 7.4.5 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/compare/7.4.5...7.4.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-30 23:04:12 +01:00
Jeroen Claassens
91efe5a611
ci(publish-dev): improve resolving of next version ( #5710 )
2021-05-30 23:03:35 +01:00
iCrawl
01bb2ac97b
ci: publish action for automatic master releases
2021-05-30 21:33:02 +02:00
Adrian Castro
6567ba821a
fix(PermissionOverwrites): fix typo in typedef jsdoc ( #5704 )
2021-05-30 18:59:51 +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
ckohen
0b179c87f1
cleanup(Client): guard emitting GMU and PU on user updates ( #5655 )
2021-05-29 15:28:41 +01:00
Ed L
7d7d2a53b1
docs(Message): add example for message.reply ( #5332 )
...
Co-authored-by: Papaia <43409674+papaia@users.noreply.github.com >
2021-05-29 15:27:33 +01:00
Rodry
47bbdf415c
docs(TextChannel): warning about setRateLimitPerUser NewsChannel ( #5403 )
2021-05-29 15:26:30 +01:00
Antonio Román
a73a5cf914
fix(Types): make event listeners accept async callbacks ( #5602 )
2021-05-29 12:28:21 +01:00
Jan
add924cdb2
docs: fix InteractionDeferOptions typedef ( #5694 )
2021-05-29 12:24:28 +01:00
Shubham Parihar
c89bdd7566
fix(GuildEmojiRoleManager): bug in #remove ( #5666 )
2021-05-28 11:09:51 +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
Rodry
7d9818e21a
docs(ColorResolvable): Add Fuchsia to ColorResolvable typedef ( #5676 )
...
Also moved DARKER_GREY to its place in the Colors export on Constants.js
2021-05-27 12:13:58 +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
Shubham Parihar
840ad0a35a
fix(Message): bug in #suppressEmbeds due to #5612 ( #5644 )
2021-05-26 12:09:35 +01:00
Shubham Parihar
3589e0f442
docs: add new typedef to properly doc InteractionReplyOptions ( #5632 )
2021-05-26 12:09:25 +01:00
Jan
ed593c91fb
feat: InteractionDeferOptions ( #5641 )
2021-05-26 12:09:14 +01:00
iCrawl
5f6ec2211d
fix: lint-staged for typescript files
2021-05-26 11:09:56 +02:00
Noel
3ac6d550ca
chore: fix husky install ( #5671 )
2021-05-25 21:36:26 +01:00
Matt (IPv4) Cowley
0ca200f322
chore: set minimum npm version ( #5663 )
2021-05-24 19:58:42 +01:00
cherryblossom000
b376f31af9
fix(DataResolver): fix circular dependency error with GuildTemplate ( #5622 )
2021-05-22 21:40:44 +02:00
Antonio Román
14c6802438
refactor(Deps): use async-queue package ( #5662 )
2021-05-22 21:10:20 +02: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
Shubham Parihar
c8d20a456b
docs(Guild): add proper punctuation to #fetchOwner jsdoc ( #5645 )
2021-05-18 23:21:57 +02:00
Vlad Frangu
ab82cafcde
docs: correct casing of object -> Object in AuditLogChange ( #5636 )
2021-05-15 23:25:06 +02:00
Juruel Keanu Lorenzo
a6079bc9ce
fix(ApplicationCommand): return string equivalent of ApplicationCommandOptionType ( #5617 )
2021-05-15 00:40:41 +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
monbrey
c7334363b3
fix: resolve emoji in Message#react ( #5614 )
2021-05-13 17:48:07 +02:00
monbrey
73f4114f59
fix: typo in GuildMemberManager ( #5616 )
2021-05-12 17:51:50 +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
anandre
ff2f7372f2
feat(MessageEmbed): remove normalizeField validation ( #5459 )
2021-05-11 22:24:35 +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
Synbulat Biishev
668cd471a1
fix(Client) added a forgotten keyword "this" ( #5598 )
2021-05-11 22:23:27 +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
Nojay-Games
2eac84296b
fix(VoiceReceiver): fix memory leak ( #5609 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-05-11 13:33:45 +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
Ishmaam Khan
d455cb65a6
feat(GuildChannel#clone): support for position property ( #5236 )
2021-05-10 12:41:14 +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
Rodry
4a06dd1295
docs(MessageEmbed): MessageEmbedOptions typedef ( #5466 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-05-10 12:31:35 +02:00
ckohen
eaf332f83f
refactor(*): return the invalid element when erroring from Array ( #5314 )
2021-05-10 12:28:36 +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
Justin
533c2471c2
docs: update invite link, change version in the intro ( #5592 )
2021-05-10 10:57:20 +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
Adrian Castro
3392eb7de2
fix(ApplicationCommandManager): fix typo in JSDoc ( #5603 )
2021-05-10 10:55:58 +02:00
dependabot[bot]
0e40f9b868
chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 ( #5595 )
...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-08 01:25:43 +02:00
Jan
9f74f95f69
feat: add support for application command events ( #5596 )
2021-05-08 01:25:27 +02:00
Amish Shah
452ac55a28
chore: update package author email address
2021-05-07 20:15:02 +01:00
dependabot[bot]
b456ff1090
chore(deps): bump lodash from 4.17.20 to 4.17.21 ( #5594 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 17:26:33 +02:00
dependabot[bot]
043a25992a
chore(deps): bump handlebars from 4.7.6 to 4.7.7 ( #5593 )
...
Bumps [handlebars](https://github.com/wycats/handlebars.js ) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases )
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md )
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 17:24:24 +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
Antonio Román
af00ec8970
refactor(Sticker): rename Snowflake variable ( #5575 )
2021-04-30 22:32:52 +02:00
Jan
f830eb7101
fix(Sticker): file renamed to SnowflakeUtil ( #5573 )
2021-04-30 22:26:55 +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
ckohen
a5d41c9f6c
refactor(RequestHandler): use x-ratelimit-reset-after when present ( #5511 )
2021-04-30 21:48:37 +02:00
Robert Coe
cdcc50f365
refactor: remove error-silencing try/catch on event handler imports ( #5542 )
2021-04-30 21:48:19 +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
Shubham Parihar
9572521e3c
fix(GuildMemberRoleManager): unable to remove roles when passed an array ( #5556 )
2021-04-30 21:43:14 +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
Skick
705d7b36af
docs(VoiceState): #setRequestToSpeak and #setSuppressed returns a Promise instead of void ( #5558 )
2021-04-23 18:24:22 +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
Yoshida Tomio
cb50241e6f
fix(HTTPOptions): change default value in jsdoc to 8 ( #5547 )
2021-04-20 19:37:45 +02:00
Advaith
f1c0c043b5
feat(Util): make cleanContent take a channel instead of a message ( #5535 )
2021-04-18 18:53:09 +02:00
Souji
596832371c
feat(Guild): nsfw guilds ( #5525 )
...
Co-authored-by: Advaith <advaithj1@gmail.com >
2021-04-18 18:52:53 +02:00
Advaith
1be67b8851
feat(Guild): replace owner with fetchOwner ( #5480 )
2021-04-16 06:39:12 +02:00
PhaxeNor
3c175cb511
feat(GuildFeatures): added the new screening features ( #5328 )
...
Co-authored-by: Noel <icrawltogo@gmail.com >
2021-04-15 02:07:15 +02:00
anandre
936516cb9c
docs(GuildChannelManager): fix type options in description ( #5440 )
2021-04-15 00:39:12 +02:00
monbrey
7b161f93a0
feat(MessageAttachment): support for #contentType ( #5481 )
...
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
2021-04-15 00:38:45 +02:00
Jan
164ddf668f
refactor: rename Snowflake to SnowflakeUtil ( #5502 )
2021-04-15 00:37:54 +02:00
Souji
e9bf206d88
fix(GuildAuditLogsEntry): executor can be missing ( #5500 )
2021-04-15 00:37:45 +02:00
Souji
fe93a7e084
feat(SysChanFlags): new flag and rename in sync with client ( #5506 )
2021-04-15 00:37:32 +02:00
Jan
207735cedc
feat: move internal regular expressions to static properties ( #5384 )
2021-04-15 00:36:35 +02:00
Bryan Chen
900e57657e
fix(typings): update GuildMemberRoleManager typings to match implementation ( #5497 )
2021-04-15 00:35:04 +02:00
GrapeColor
565d7b3747
fix(MessageMentions#channels): Fix type of channels of mentions ( #5370 )
2021-04-15 00:34:13 +02:00
Kevin Novak
32b0d71af7
feat(typings): add ShardingManager.shardList to type definitions ( #5446 )
2021-04-15 00:33:59 +02:00
Ven
7c49612d4b
feat(typings): explicitly type PremiumTier and Collectors ( #5458 )
2021-04-15 00:33:35 +02:00
Shubham Parihar
fa5a37e51a
fix(Resolvables): valid resolvables throw error when uncached ( #5495 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-04-15 00:32:08 +02:00
Yoshida Tomio
b380f16367
chore(ci): Update actions/setup-node action to v2 ( #5527 )
2021-04-15 00:31:32 +02:00
Bread
b710a43232
fix(GuildChannel): check for community required channels in GuildChannel#deletable ( #5170 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-04-15 00:31:08 +02:00
Sugden
aff3625d4f
fix(GuildMember): correctly check for premium_since ( #5312 )
2021-04-15 00:30:45 +02:00
Shubham Parihar
eb43ce4d4f
feat: make changes to PresenceData typings and docs ( #5317 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-04-14 14:53:54 +02:00
Advaith
c9107e35fa
feat(MessageTypes): add 16 and 17 ( #4685 )
2021-04-14 14:53:30 +02:00
izexi
0ba2bcb545
feat(GuildMemberManager): add 'search' method ( #4154 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-04-14 14:53:01 +02:00
Amish Shah
eec7cf7634
feat: stage channels ( #5456 )
...
* feat: add stage channel type
* feat: initialise stage channel structure
* feat: add STAGE_MODERATOR permissions bitfield
* fix: typo in permissions
* fix(Channel): type selection logic
* feat: add rtcRegion to StageChannel and VoiceChannel
* feat: rtc region editing for stage and voice channels
* feat: stage channel userLimit
* feat: add stage channels to exports
* feat: add computed properties to stage channel
* feat(VoiceState): include stage channel in docs
* feat: allow ability to join stage channels
* feat(StageChannel): join and leave methods
* docs: add StageChannel link in GuildChannel docs
* feat(VoiceState): suppress and requestToSpeakTimestamp
* feat(StageChannel): setRequestToSpeak
* refactor(StageChannel): update setRequestToSpeak
* feat(VoiceState): add moveToSpeakers and moveToAudience
* feat(VoiceState): add methods to move in/out of speakers
* feat(VoiceState): add stage channel sanity checks
* feat(Permissions): add REQUEST_TO_SPEAK
* feat(VoiceState): simpler methods
* docs(VoiceState): add documentation for new methods
* refactor: remove unused error message
* chore: remove debug statements
* chore: revert changes to package-lock.json
* docs(VoiceState): clarify suppress
* docs(VoiceState): add missing @type param
* feat(StageChannel): remove nsfw property
* fix(VoiceState): check permissions in channel
Co-authored-by: Advaith <advaithj1@gmail.com >
* fix(VoiceState): instantiate error with new
Co-authored-by: BannerBomb <BannerBomb55@gmail.com >
* refactor(VoiceState): more readable API route builder
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* style(VoiceState): fix lint errors
* docs(VoiceState): add example usage for new methods
* docs: setRTCRegion examples
* chore: update typings
* fix(VoiceState): calculate permissions for self
* refactor(VoiceState): tidy up implementation
* Update src/structures/VoiceState.js
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
* refactor: vaporox's suggestions
* style(VoiceState): fix linter errors
* chore: update typings
* chore: remove unused error message
* refactor(VoiceState): use optional chaining
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* chore: move getters below constructor in typings
* refactor(StageChannel): optional chaining
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* style(VoiceState): fix lint errors
* docs: fix incorrect types
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* Update src/structures/VoiceChannel.js
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* Update src/structures/VoiceChannel.js
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* refactor(VoiceState): use optional chaining
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* refactor(StageChannel): remove permission override check in joinable
* refactor: make ChannelTypes a proper enum
* Use createEnum
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* chore: remove unused code from Constants
* refactor(StageChannel): remove unnecessary getters
* chore: update typings
* refactor: introduce BaseGuildVoiceChannel class
* refactor(VoiceChannel): reduce code duplication
* feat: export BaseGuildVoiceChannel
* chore: update typings
* docs: fix typos
* refactor: move setRTCRegion to BaseGuildVoiceChannel
* feat(VoiceState): remove permission checks
* chore: update typings
* Apply suggestions from code review
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
* chore: update esm exports and typings
* Update src/structures/VoiceState.js
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Advaith <advaithj1@gmail.com >
Co-authored-by: BannerBomb <BannerBomb55@gmail.com >
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: Vlad Frangu <kingdgrizzle@gmail.com >
2021-04-14 13:35:55 +01:00
Advaith
63ff6a07eb
feat(Activity): add missing fields ( #4984 )
...
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
2021-04-06 23:03:45 +02:00
Souji
599f0f5cef
docs(ClientUser): #setPresence does not return a promise ( #5485 )
2021-04-05 23:26:28 +02:00
Carson M
2b52cdc915
fix(Voice): only skip undocumented voice packet byte if present ( #5309 )
...
* fix(Voice*): Only skip undocumented byte if present
* fix linting errors
2021-04-05 08:56:48 +01:00
izexi
67025e63e4
fix: typings for 'WebhookMessageOptions' ( #5476 )
2021-04-04 23:17:19 +02:00
Souji
e848d25c86
docs(GuildChannel): #members add cached spec, include voice ( #5385 )
2021-04-03 20:01:54 +02:00
Jan
0a2e0c0e3e
refactor(Guild): remove fetchVanityCode() ( #5471 )
2021-04-03 20:01:14 +02:00
Souji
8023250ee7
fix(IntegrationApplication): add missing export to index.js ( #5475 )
2021-04-03 20:00:41 +02:00
izexi
7cabc1c490
feat(Webhook): add '(edit|delete)Message' methods ( #5223 )
2021-04-03 15:06:18 +02:00
Jan
404ce57bcc
fix(ApplicationFlags): export class ( #5465 )
2021-04-03 15:01:52 +02:00
Shubham Parihar
b82ea98c71
chore: allow three more types of commit msgs ( #5470 )
2021-04-03 15:01:35 +02:00
Shubham Parihar
a4d09ab0a8
types: remove typings for Client#disconnect event ( #5469 )
2021-04-03 15:01:20 +02:00
Amish Shah
3af8179878
fix(Voice): disconnect if voice channel not cached ( #5467 )
2021-04-02 12:53:49 +02:00
Souji
6c6b1053b7
fix(InviteDelete): guild can be missing ( #5457 )
2021-03-31 22:31:37 +02:00
Alec Woods
9d2d60691e
feat(Rest): better handling of global rate limit and invalid request tracking ( #4711 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com >
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-03-31 21:56:58 +02:00
Jan
06e9d86cb3
feat(Application): application flags ( #5147 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-03-31 21:55:12 +02:00
Shubham Parihar
dedf43288e
docs(BanOptions): make days description more clear ( #5327 )
2021-03-29 05:52:41 +02:00
Carter
685b2604e4
docs: update docs and examples for #4879 ( #5323 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-03-29 05:51:42 +02:00
Souji
624a4464ca
feat(WebSocketManager): let identify throw on depleted limits ( #5283 )
...
* feat(WebSocketManager): let identify throw on depleted limits
* chore: remove WSM#sessionStartLimit
2021-03-28 15:33:31 +02:00
Jan
8d14ee3540
refactor(Collector): make endReason a getter ( #5271 )
2021-03-28 15:29:39 +02:00
SynysterZV
09846c725b
chore: update d.js guide FAQ link ( #5176 )
2021-03-28 15:29:03 +02:00
Souji
43bd568f1c
fix(ReactionUserManager): remove before query option ( #5281 )
2021-03-28 15:28:33 +02:00
Sugden
ca5f371f1a
typings(PermissionOverwrites): use correct parameter type for resolveOverwriteOptions ( #5302 )
2021-03-28 15:28:08 +02:00
Souji
62ba2499e0
docs(GuildMember): document owner override in permissions getter ( #5320 )
2021-03-28 15:27:32 +02:00
Carter
077892645b
fix(GuildManager): add missing toString() on Permission#resolve fns ( #5324 )
2021-03-28 15:27:16 +02:00
Carter
aac6275300
typings(MessageReaction): allow message to be partial ( #5303 )
2021-03-28 15:26:44 +02:00
Souji
e7c4f3672e
fix(GuildChannel): regression on default channel type ( #5251 )
2021-03-28 15:24:41 +02:00
Advaith
1c8b1096c6
docs(ChannelManager): fetch can return Promise<null> ( #5422 )
2021-03-28 15:24:19 +02:00
BannerBomb
8411b9e142
fix(Guild/GuildChannel): methods reason arg usage ( #5419 )
2021-03-28 15:23:32 +02:00
nopeless
4099c28776
test: client should destroy ( #5353 )
...
Co-authored-by: Adrian Paschkowski <leiter04@gmail.com >
2021-03-28 15:22:04 +02:00
Tyler Resch
941e36f48a
docs(Guild): clarified description of guild.features ( #5352 )
...
- Removed the phrase "partnered guilds" from the description of `guild.features`
**Reasoning:**
To prevent the assumption that **any** `guild.features` will be indicative of `guild.partnered`.
2021-03-28 15:21:32 +02:00
Jan
f46940228e
feat: jsdelivr default file support ( #5424 )
2021-03-22 21:31:55 +01:00
Jan
d744e51c1b
fix(Role): pass Permissions class, not the bitfield ( #5321 )
2021-02-22 01:03:21 +01:00
Sugden
ee5bc1a5c4
refactor: switch api and gateway to V8 ( #4879 )
...
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
2021-02-11 18:10:35 +01:00
ckohen
ae3c3d80ee
feat(Client): add InviteGenerationOptions#additionalScopes ( #5215 )
...
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-02-10 15:52:44 +01:00
BannerBomb
56d8b445ed
fix(WebSocketShard): key name in WebSocketShard#_send. ( #5304 )
...
I just changed an incorrect key name that was introduced in Pull Request #3722 . When destroying the websocket from the WebSocketShard#_send method it's using `close` as the key name instead of `closeCode`
2021-02-10 15:48:16 +01:00
Souji
cee6cf70ce
chore(*): streamline issue and PR templates and redirects ( #5269 )
...
* chore(*): streamline issue and PR templates and redirects
* chore: reword redirect to not sound apologetic
* chore: reintroduce one-liner to use discord for questions
* chore: ae consistency
2021-01-27 20:31:47 +01:00
Alon Livne
09d1f2f18f
feat(ReactionCollector): event create ( #4108 )
...
* fix(Typing): setSpeaking public
* feat(ReactionCollector): create event, close #2844
* Revert "fix(Typing): setSpeaking public"
This reverts commit ccc0e0cc76 .
2021-01-27 12:13:15 +01:00
Shubham Parihar
640a6633b1
docs(BaseManager): fix a typo in #resolveID description ( #5180 )
...
* fix(BaseManager): #resolveID returns null for non-numeric string arg
* docs(BaseManager): fix a typo in #resolveID description
2021-01-27 11:30:08 +01:00
Antonio Román
a6bc39d3c6
fix(ApiMessage): remove resolve() from typings ( #5241 )
2021-01-27 11:28:26 +01:00
Matt (IPv4) Cowley
aaed72b723
refactor(Client): remove fetchAllMembers option ( #5257 )
...
* feat(Client): remove fetchAllMembers option & logic
* Cleanup
* Missed type change
2021-01-27 11:27:50 +01:00
Antonio Román
41bd6c2717
fix(GuildChannel): overload permissionsFor and BaseManager#resolve[id] ( #5260 )
...
* fix(GuildChannel): overload permissionsFor and BaseManager#resolve[id]
* fix(GuildChannel): GuildMessage and Role trigger non-null return
2021-01-27 11:27:01 +01:00
Papaia
9ffcd83027
docs(BitFields): remove string from BitFieldResolvable ( #5122 )
...
* refactor(BitFields): remove string from BitFieldResolvable
* docs(Client#generateInvite): fix indentation in example
* chore: resolve conflict
* refactor: revert breaking changes
Co-authored-by: Papaia <43409674+ItsPapaia@users.noreply.github.com >
2021-01-24 11:52:35 +01:00
Ishmaam Khan
5401b92aac
refactor(GuildMember): remove GuildMember#hasPermission ( #5152 )
...
* refactor(GuildMember): remove GuildMember#hasPermission
* refactor(GuildEmoji): remove use for `GuildMember#hasPermission`
* typings: remove `GuildMember#hasPermission`
2021-01-24 11:50:58 +01:00
Kevin Novak
80e1afb654
types(RateLimitData): remove timeDifference property ( #5208 )
2021-01-24 11:49:26 +01:00
Alex
001676c7a9
feat(ShardingManager): Allow b-Eval/fetchClientValues on a specific shard when not all are ready ( #5222 )
...
Co-authored-by: BennyDiscord <46286597+BennyDiscord@users.noreply.github.com >
2021-01-24 11:49:15 +01:00
Jan
a33eed71af
refactor(Util): remove convertToBuffer ( #5237 )
2021-01-24 11:48:03 +01:00
Carter
8bf76ffa52
chore: remove webpack from deploy workflow ( #5253 )
2021-01-24 11:47:20 +01:00
ckohen
f95f5dcd79
fix(GuildEmoji): check for cahnges to available in equals ( #5201 )
2021-01-22 19:18:06 +01:00
Shubham Parihar
0d5de4333d
fix(VoiceConnection): make #dispatcher nullable ( #5217 )
2021-01-22 19:17:32 +01:00
monbrey
5ac3b57f9b
feat(GuildChannel): support conversion between text and news ( #5022 )
...
* feat(GuildChannel): support conversion between text and news
* fix(Typings): add type to ChannelData
* fix(GuildChannel): use ChannelUpdate action handler to change class type
* Update src/structures/TextChannel.js
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* fix(Typings): re-use ChannelType from GuildCreateChannelOptions
* fix(Typings): only allow text-news conversion
* fix(Typings): exclude -> pick (vlads suggestion)
* fix(Typings): pick -> exclude in two other spots
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-01-22 18:03:02 +01:00
Zaid
98b1c58218
fix(Message): update getters to take null permissions into account ( #5066 )
...
* fix(Message): update message#delete
* refactor(Message): message#deletable avoid duplicate call
* Update Message.js
* fix(message): resolve syntax errors
* chore(message): resolve linting issues (death to the gh web panel)
* Update Message.js
* death to the github web panel
* Update src/structures/Message.js
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
2021-01-22 18:02:21 +01:00
izexi
eb28ee7905
fix(typings): return types for 'Webhook(Client)#send()' ( #4876 )
...
* feat(Typings): add 'APIRawMessage' interface
* fix(Typings): return type for WebhookFields#send()
* fix(Typings): types for APIRawMessage props
* refactor(Typings): exclude oauth props from API
* feat(Typings): add WebhookRawMessageResponse type
* refactor(Typings): use WebhookRawMessageResponse
2021-01-22 17:46:55 +01:00
Carter
c8ad52b89d
chore: remove codeql job ( #5231 )
2021-01-22 17:45:40 +01:00
Souji
273e9557be
feat(BitField): move problematic bit into the error message ( #5228 )
...
* feat(BitField): move problematic bit into the error message
* fix: remove intermediate constant
2021-01-22 17:44:50 +01:00
ElCholoGamer
764966e398
feat(ClientEvents): add tuple labels to event arguments ( #5225 )
2021-01-22 17:44:11 +01:00
Adrian Paschkowski
c4c817116f
feat(GuildMember): #pending ( #5121 )
...
* Add GuildMember#isPending
* Rename is_pending to pending
* Improve jsdoc wording
* pending isn't nullable
* ??
2021-01-02 23:55:37 +01:00
Bread
e37160f4e3
fix(MessageEmbed): include author.name in length getter ( #5167 )
...
* fix(MessageEmbed): include `author.name` in length getter
* Update src/structures/MessageEmbed.js
Co-authored-by: Papaia <43409674+papaia@users.noreply.github.com >
* style: oxford comma
Co-authored-by: Papaia <43409674+papaia@users.noreply.github.com >
* refactor: es2020 syntax
Co-authored-by: Papaia <43409674+papaia@users.noreply.github.com >
2021-01-01 00:11:52 +01:00
Sugden
57b3ba425e
chore: remove webpack from .*ignore files ( #5171 )
2021-01-01 00:10:56 +01:00
Mr¤KayJayDee
4e132f18c4
chore: bump LICENSE year ( #5173 )
2021-01-01 00:10:24 +01:00
Antonio Román
b0077dcd0c
chore(Deps): remove setimmediate ( #5159 )
...
setimmediate is a browser polyfill, and since we do not support webpack anymore, there is no reason to keep it here.
2020-12-30 11:22:11 +01:00
Matt (IPv4) Cowley
8c2e6b70b8
refactor(Message): remove stored edit history ( #5155 )
2020-12-30 11:21:34 +01:00
ManEatingTapir
6a77453532
chore(RoleManager): change parameter of create to be one unnamed object ( #5026 )
...
* chore(RoleManager): change parameter of create to be one unnamed object
* chore(RoleManager): update src/managers/RoleManager.js
* chore(RoleManager): update typings/index.d.ts
* chore(RoleManager): update src/managers/RoleManager.js
Co-authored-by: Noel <buechler.noel@outlook.com >
2020-12-26 10:59:16 +01:00
ckohen
2aea7dd921
docs(MessageEditOptions): add the flags parameter ( #5126 )
2020-12-26 10:58:02 +01:00
Ishmaam Khan
2a0dcc5cae
refactor: RoleManager ( #5131 )
...
* refactor(RoleManager): make use of `BaseManager#client`
* refactor(RoleManager): cool syntax
* refactor +1
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* refactor +2
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-12-26 10:57:34 +01:00
Jan
2c2249ee73
fix(Collection): toJSON() errors if the collection includes empty values ( #5129 )
2020-12-26 10:56:37 +01:00
dependabot[bot]
b19b8b593a
chore(deps): bump node-notifier from 8.0.0 to 8.0.1 ( #5145 )
...
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier ) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases )
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md )
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-26 10:54:50 +01:00
cherryblossom000
40d77bacc3
types: make Client#voice non-nullable ( #5148 )
...
Because of the removal of browser support (#5113 ) Client#voice is always non-nullable.
2020-12-26 10:54:15 +01:00
Zaid
b8be7237b8
Create CODE_OF_CONDUCT.md ( #5120 )
...
* Create CODE_OF_CONDUCT.md
* chore: move coc into .github/
2020-12-18 06:24:25 +01:00
Ishmaam Khan
ffe31405ff
feat(GuildEmojiManager): implement GuildEmojiManager#fetch ( #4933 )
...
* feat: GuildEmojiManager#fetch
* typings: GuildEmojiManager#fetch
2020-12-14 21:44:15 +01:00
anandre
be0f383568
docs(RoleManager): fetch description ( #4920 )
...
* Update fetch description
The `fetch` method does not support fetching multiple IDs, so the description is currently inaccurate.
* Update src/managers/RoleManager.js
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com >
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2020-12-14 14:12:36 +01:00
monbrey
b2a6720477
revert: 5047 ( #5050 )
2020-12-14 13:58:21 +01:00
Noel
0a591a9697
feat(Browser): remove browser � ( #5113 )
2020-12-14 13:56:16 +01:00
X-Classified
5c4547e84d
docs(TextBasedChannel): indicate that replyTo cannot be system ( #5115 )
2020-12-14 13:54:51 +01:00
Souji
d6234b764e
feat(Role): role tags ( #4628 )
...
* feat(Role): role tags
* fix(RoleManager): fix js docs and mark nullable
* fix(Role): typings tags are be null, not undefined
* fix(Role): getters should actually return a bool
* fix(RoleManager): typo
* fix(Role): should always return a boolean
* fix(Gmrm): getter should return null
* fix(RoleManager): getters should return null
* fix: typing getters should return null
* fix(Role): docs grammar and consistency
* chore: prefer in operator over Reflect#has
* feat(GmRm): botRole getter
* fix(GmRm): use the actual properties
* feat(RoleManager): rem myRole in pref o botRoleFor
* fix(Role): remove obsolete is- getters
* fix: checking tags after getter removal
* chore: identifier naming consistency
* chore: prefer explicit true type over boolean
* fix: typo
* feat(Integration): Add Integration#roles getter (#1 )
* fix(RoleManager): remove bot check r:partials
* feat(RoleManager): robustness against uncached u
* docs: possibly undefined
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
2020-12-14 13:54:02 +01:00
Souji
8883a0144b
fix: implement valueOf on pseudomanagers ( #4595 )
2020-12-14 13:52:21 +01:00
Jan
75e6dfbfd3
refactor(Message): remove options for Message#delete ( #4999 )
2020-12-14 13:52:04 +01:00
Advaith
41078997ae
feat(APIMessage): remove disableMentions ( #4836 )
...
* chore: remove disableMentions
* style: fix eslint
2020-12-14 13:51:31 +01:00
Mirdukkk
9c7fe34c50
fix: add presence to ClientPresence from ClientOptions ( #5041 )
2020-12-13 03:14:23 +01:00
VoltrexMaster
9042d19c4e
fix: filtering of string forms of null and undefined ( #5075 )
...
Removed null and undefined being filtered out in string forms which caused issues in `<client>.api`, issue: https://github.com/discordjs/discord.js/issues/5072
2020-12-13 03:13:52 +01:00
Awesome Stickz
12c909eecc
fix(ChannelManager): Avoid crash in remove method with uncached channel ( #4937 )
...
* fix(ChannelManager): Avoid crash in remove method with uncached channel
* Use optional chaining
Co-authored-by: Ishmaam Khan <ishmaamk@gmail.com >
Co-authored-by: Ishmaam Khan <ishmaamk@gmail.com >
2020-12-12 22:40:50 +01:00
X-Classified
bb78120283
fix(Message): #system non-zero message types are not guaranteed to be system ( #5108 )
...
* fix(Message): #system not all nonzero message types are system
* feat(Message): introduce system message types
* refactor(Constants): change SystemMessageTypes to be exclusionary
* fix(Constants): only need to check if type exists
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
* fix(Constants): lint
* fix(Typings): add SystemMessageTypees to Constants
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
2020-12-12 22:40:39 +01:00
Jan
5b51392724
refactor(Client): improve generateInvite() ( #5065 )
...
* cleanup(Client): improve generateInvite()
* fix: you actually do need to fetch the application
2020-12-12 22:38:57 +01:00
dependabot[bot]
b6b3c6f29b
chore(deps): bump ini from 1.3.5 to 1.3.8 ( #5110 )
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-12 14:56:44 +01:00
Zaid
d70127cee6
feat(GuildMember): make GuildMember#setNickname first param nullable ( #5070 )
...
* Update index.d.ts
* Update GuildMember.js
* Update src/structures/GuildMember.js
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
* Update GuildMember.js
* Update index.d.ts
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
2020-12-12 14:50:33 +01:00
anandre
77d42373a1
docs: permission overwrite methods descriptions ( #5079 )
...
* Change permission overwrite methods descriptions
The methods `GuildChannel#updateOverwrite` and `#createOverwrite` had some awkward wording in the description: `. (...)` does not look good. This PR cleans up the descriptions to be one sentence that's clearer in meaning. There's also changes to make `permission overwrite/s` consistent - some lines had `permissions overwrite/s`.
* Update src/structures/GuildChannel.js
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
* Update src/structures/GuildChannel.js
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* Update src/structures/GuildChannel.js
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-12-12 14:50:04 +01:00
Jan
bb04e69a92
cleanup(Guild): remove Guild#voice ( #5091 )
2020-12-12 14:49:32 +01:00
SpaceEEC
b509862bfa
fix(UserFlags): correct early bot dev name, remove deprecated aliases ( #5104 )
2020-12-12 14:48:03 +01:00
Advaith
2685b960d7
docs(Client): #emojis is a BaseGuildEmojiManager ( #5048 )
2020-12-08 22:07:06 +01:00
monbrey
60e5a0e46f
feat(Message|TextChannel): Inline replies ( #4874 )
...
* feat(Message): remove reply functionality
* feat(InlineReplies): add INLINE_REPLY constant/typing
* feat(InlineReplies): add Message#replyReference property
* feat(InlineReplies): add typings for sending inline replies
* feat(InlineReplies): provide support for inline-replying to messages
* feat(Message): add referencedMessage getter
* fix: check that Message#reference is defined in referencedMessage
* refactor(InlineReplies): rename property, rework Message resolution
* docs: update jsdoc for inline replies
* feat(Message): inline reply method
* fix(ApiMessage): finish renaming replyTo
* fix: jsdocs for Message#referencedMessage
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com >
* fix: restore reply typings
* fix: dont pass channel_id to API when replying
* chore: update jsdocs
* chore: more jsdoc updates
* feat(AllowedMentions): add typings for replied_user
* fix: naming conventions
* fix(Message): referenced_message is null, not undefined
* fix(MessageMentionOptions): repliedUser should be optional
* chore: get this back to the right state
* fix(ApiMessage): pass allowed_mentions when replying without content
* fix(ApiMessage): prevent mutation of client options
Co-authored-by: almostSouji <timoqueezle@gmail.com >
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com >
2020-12-08 21:08:26 +01:00
SpaceEEC
7365f40300
fix(Collector): throw an error if a non-function was provided as filter ( #5034 )
2020-12-08 20:11:44 +01:00
Carter
09d07553ab
docs(User): fix typos in jsdoc ( #5060 )
2020-12-06 18:03:39 +01:00
BannerBomb
e272fd6909
fix(BaseGuildEmoji): typo in requiresColons ( #5076 )
2020-12-06 17:59:12 +01:00
Antonio Román
90d458820b
chore(Engine): bump Node.js to v14.0.0 ( #5067 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-12-06 17:58:08 +01:00
Advaith
9f3c3e0918
docs(WebSocketManager): fix type of status ( #5059 )
2020-11-30 01:08:54 +01:00
monbrey
6b322f47a0
fix(MessageReaction): set MessageReaction#me in patch method ( #5047 )
2020-11-25 23:55:29 +01:00
Amish Shah
4fcb9ebf30
fix(Voice*): filter out silent audio from video users ( #5035 )
2020-11-25 23:51:16 +01:00
izexi
53529bd05d
fix(GuildTemplate): 'guild' getter ( #5040 )
2020-11-25 23:50:28 +01:00
Jan
8d650a7250
feat: BaseGuildEmojiManager ( #4934 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2020-11-22 19:48:30 +01:00
Jan
12a096b5f1
fix(RoleManager): fix ID return value, change return type to collection ( #4935 )
...
Co-authored-by: Ishmaam Khan <ishmaamk@gmail.com >
2020-11-22 19:39:19 +01:00
Advaith
6f3076325e
remove User#locale ( #4932 )
2020-11-22 19:39:06 +01:00
anandre
8c8883ef26
Remove Guild#member ( #4890 )
2020-11-22 19:21:01 +01:00
Junseo Park
4b555fdf4c
feat(Message): added string type for message nonce ( #4782 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-11-22 19:13:38 +01:00
monbrey
863734aba4
feat(GuildMemberManager): throw TypeError on incorrect GuildMemberManager#ban params ( #4816 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-11-22 19:13:07 +01:00
iCrawl
1f4b9fe749
chore(Release): version up
2020-11-22 14:03:20 +01:00
Matt (IPv4) Cowley
2a6c363a8a
feat(Shard): shard-specific broadcastEval/fetchClientValues + shard Id util ( #4991 )
2020-11-22 13:35:18 +01:00
SpaceEEC
643f96c79b
fix(Guild): fetch member if already in the guild ( #4967 )
2020-11-21 17:16:22 +01:00
izexi
2b2994badc
feat: add support for guild templates ( #4907 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2020-11-21 15:09:56 +01:00
SpaceEEC
eaecd0e8b7
fix(User): only assign to bot initially or if info is actually present ( #4990 )
2020-11-20 16:48:05 +01:00
SpaceEEC
2e940e635d
fix(GuildMemberUpdate): cache incoming members & use partials if enabled ( #4986 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-11-20 16:20:47 +01:00
SpaceEEC
8b91ac5d7e
fix(MessageReaction*Action): correctly cache incoming members and users ( #4969 )
2020-11-20 16:19:18 +01:00
Sugden
7faa73a561
feat: add missing error codes ( #5008 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-11-20 16:18:13 +01:00
Ashley Meadows
042e071a64
fix(MessageReaction): add client property to typings ( #5003 )
...
close #5002
Co-authored-by: Ashley Meadows <itsa-sh@users.noreply.github.com >
2020-11-17 22:05:03 +01:00
HarmoGlace
b8fd3f65d9
feat(Message): add crosspostable property ( #4903 )
...
Co-authored-by: Advaith <advaithj1@gmail.com >
Co-authored-by: Alex Hîncu <teesealz@gmail.com >
2020-11-01 12:32:20 +01:00
Christopher Bradshaw
efd7849ed0
docs: use npm ci instead of npm install ( #4928 )
...
Use `npm ci` instead of `npm install` after cloning the repository.
2020-11-01 12:30:25 +01:00
Matt (IPv4) Cowley
adf2e872f8
fix(Shard): don't pass event arguments to exit handler ( #4957 )
2020-11-01 12:29:29 +01:00
Matt (IPv4) Cowley
ed8b3cc9ea
fix(PackageLock): reinstall GitHub docgen dev dependency ( #4958 )
2020-11-01 12:29:00 +01:00
iCrawl
7ec0bd93b0
chore(Release): version upgrade
2020-10-24 06:27:55 +02:00
monbrey
3d158f4448
fix(Action): attempt to get a User if GuildMember not returned ( #4922 )
2020-10-24 06:25:35 +02:00
Sugden
250c3ae3c1
fix(GuildChannel): parentID shouldn't be set in the constructor ( #4919 )
2020-10-19 22:24:18 +02:00
iCrawl
94c9cc2300
fix(Webpack): revert webpack upgrade
2020-10-19 18:46:49 +02:00
iCrawl
e9f36b5041
chore(Release): version upgrade
2020-10-19 18:27:26 +02:00
Souji
30808f9f0b
feat(Message): allow custom emoji format for react ( #4895 )
2020-10-17 15:54:22 +02:00
Sugden
af670fc718
refactor: improve the accuracy of docs/improve docs ( #4845 )
...
Co-authored-by: Noel <icrawltogo@gmail.com >
2020-10-17 15:53:02 +02:00
Jan
4bbe716aa0
fix(esm): add missing exports ( #4911 )
2020-10-17 15:47:56 +02:00
Jan
a7af4a8837
docs(PresenceData): add YouTube and remove application ( #4910 )
2020-10-17 15:47:49 +02:00
Noel
89feedad98
revert: "fix(GuildEmojiManager): check for guild in methods that use it" ( #4912 )
...
This reverts commit 728b3f939c .
2020-10-17 15:46:10 +02:00
Jan
728b3f939c
fix(GuildEmojiManager): check for guild in methods that use it ( #4886 )
2020-10-17 15:40:39 +02:00
Sugden
7db6978012
fix(GuildMember): properly check permissions for hasPermissions ( #4677 )
2020-10-17 15:40:23 +02:00
Jiralite
6261dd65d3
fix(GuildEmojiCreate): Prevent double fire from emoji creation ( #4863 )
2020-10-17 15:40:04 +02:00
izexi
a45cc112e5
fix(GuildMemberManager): options.roles on 'prune' ( #4838 )
2020-10-17 15:39:29 +02:00
Constantinos
b8aa967226
ci: use npm ci instead of npm install ( #4877 )
...
Use npm ci instead of npm install when installing dependencies in CI.
2020-10-17 15:38:53 +02:00
Adrian Paschkowski
6e4308bfde
fix(GuildChannel): Default parentID to null ( #4881 )
2020-10-17 15:36:16 +02:00
Adrian Paschkowski
dd12912124
fix(Actions): Avoid crash in InviteCreate with unknown channel ( #4882 )
2020-10-17 15:36:02 +02:00
Adrian Paschkowski
937153a92f
fix(GuildMemberManager): Use actually random nonce in fetch ( #4884 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2020-10-17 15:35:22 +02:00
Matt (IPv4) Cowley
c412cd7521
feat(Message): add messageEditHistoryMaxSize to limit stored msg edits ( #4867 )
2020-10-17 15:34:49 +02:00
cherryblossom000
4a6fb9a7d4
types(TextBasedChannel): make lastPinAt nullable ( #4842 )
...
This commit makes `TextBasedChannelFields#lastPinAt` nullable in the
typings.
2020-10-17 15:33:57 +02:00
cherryblossom000
824e92229d
types(Activity): move flags from Presence to Activity ( #4843 )
...
This commit moves the `flags` property from `Presence` to `Activity` in
the typings.
2020-10-17 15:33:37 +02:00
Jiralite
0b59141054
types(GuildPreview): Make description nullable ( #4854 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2020-10-17 15:33:08 +02:00
yuta0801
b9ad51049e
fix(GuildChannel): make setTopic argument nullable ( #4875 )
2020-10-17 15:32:32 +02:00
Antonio Román
d2341654fe
fix(Rest): resolved a regression, added retried AbortError ( #4852 )
2020-09-29 18:05:54 +02:00
Jan
169d4c3bff
refactor(ReactionUserManager): use client property ( #4829 )
2020-09-25 23:46:31 +02:00
monbrey
13d64e6fa6
fix(MessageManager): throw if delete param is not MessageResolvable ( #4825 )
2020-09-25 23:46:06 +02:00
Jan
f83b3d7fc1
feat(NewsChannel): add support for following ( #4805 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-09-25 23:45:47 +02:00
cherryblossom000
f2bbad36d5
feat(GuildManager): add AFK and system channel options in create ( #4837 )
...
This commit adds support for the `afk_channel_id`, `afk_timeout`, and
`system_channel_id` parameters in the
[create guild](https://discord.com/developers/docs/resources/guild#create-guild-json-params )
endpoint by adding the `afkChannelID`, `afkTimeout`, and
`systemChannelID` options in `GuildManager#create`.
This commit also fixes a minor bug in `create` when specifying types for
the channels due to the channel types not being changed from `'text'`,
`'voice'` etc to the corresponding numbers, so Discord would return an
error.
2020-09-25 23:44:32 +02:00
Matt (IPv4) Cowley
77c0788b2c
fix(Shard): avoid caching null child in eval/fetchClientValue ( #4823 )
2020-09-25 23:43:32 +02:00
MrWasdennnoch
4e79e39e22
fix(Action): Sanity-Check if Discord includes all required data ( #4841 )
2020-09-25 23:42:49 +02:00
Antonio Román
32fe72f909
feat(Rest): switch queue to AsyncQueue ( #4835 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-09-25 23:42:24 +02:00
Ryan Munro
1e63f3756e
fix(Message): use Promise#reject instead of Throw on Message#delete ( #4818 )
2020-09-15 18:35:54 +02:00
MrWasdennnoch
8fa3a89482
fix(Action): Don't crash when partials are disabled ( #4822 )
2020-09-15 18:35:20 +02:00
Advaith
9c76129a23
feat(ActivityTypes): add Competing (type 5) ( #4824 )
2020-09-15 18:33:52 +02:00
Noel
01ceda5b0c
chore(Deps): bl vulnerability ( #4813 )
2020-09-13 12:48:53 +02:00
MrWasdennnoch
eeb4c14754
fix(Partials): Use more user objects available from the gateway ( #4791 )
2020-09-13 12:09:12 +02:00
Johnson Chen
bcb7c721dc
feat(Message): add support for crossposting ( #4105 )
...
Co-authored-by: Advaith <advaithj1@gmail.com >
Co-authored-by: Joe <56809242+Jo3-L@users.noreply.github.com >
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
2020-09-13 12:07:56 +02:00
dependabot[bot]
0da65becd3
chore(deps): bump node-fetch from 2.6.0 to 2.6.1 ( #4812 )
...
Bumps [node-fetch](https://github.com/bitinn/node-fetch ) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases )
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md )
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-13 11:57:44 +02:00
Sugden
422a4dda68
typings(Guild): document RELAY_ENABLED feature ( #4788 )
2020-09-08 09:58:56 +02:00
anandre
222137dcd1
docs(Role): Update various Role method descriptions ( #4798 )
...
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com >
2020-09-08 09:58:11 +02:00
Quentin
372a405926
docs(ReactionCollector): Revise JSDoc for ReactionCollector#dispose and #remove ( #4709 )
...
Co-authored-by: Amish Shah <amishshah.2k@gmail.com >
Co-authored-by: uhKevinMC <plainkevin123@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
2020-09-08 09:57:39 +02:00
anandre
dfd63bdb6b
docs(Guild): Guild.setName() example ( #4797 )
...
The docs example was incorrect, as the parameter is called `updated` but was later referenced as `guild`. This PR fixes that by changing it to `updated` to match other examples, such as `setRegion()`
2020-09-05 20:18:00 +02:00
Papaia
5b39737d49
fix(lint): RESTManager warning ( #4796 )
...
Co-authored-by: Papaia <43409674+ItsPapaia@users.noreply.github.com >
2020-09-05 20:16:09 +02:00
cherryblossom000
904aecfdb7
types: don't use readonly arrays in interfaces ( #4794 )
...
This reverts some of the changes in f451be05 so that this works:
```ts
const embed: MessageEmbedOptions = {
fields: [{
// fixed stuff
}],
};
if (/* condition */) {
embed.fields.push({
// conditional stuff
});
}
```
See https://github.com/discordjs/discord.js/pull/4692#issuecomment-687252066 .
2020-09-05 20:14:39 +02:00
MrWasdennnoch
a28754b892
fix(Typings): remove Partial types from some events ( #4781 )
2020-09-05 20:13:59 +02:00
Sugden
b43e742503
docs(GuildChannel): ThisType should be this ( #4793 )
2020-09-05 10:20:32 +02:00
Darqam
8ac25d37d9
docs(MessageManager): Update example for fetchPinned ( #4785 )
...
Example showed the method for channel and not messageManager
2020-09-04 20:19:51 +02:00
Souji
77b6a7d5bd
fix(Util): throw token invalid for fetching rec. shard amount ( #4779 )
2020-09-04 12:51:15 +02:00
MrWasdennnoch
aa25608c52
typings(PartialUser): fix PartialUser remove deleted property ( #4773 )
2020-09-03 09:53:44 +02:00
Jan
b0ab37ddc0
feat(Channel): add isText() type guard ( #4745 )
2020-08-31 09:59:17 +02:00
Sugden
3141f7cb04
feat(Guild): add includeApplications option for fetchIntegrations ( #4762 )
2020-08-31 09:17:53 +02:00
Sugden
7ba9440053
fix(Guild): cache fetched widget data ( #4760 )
2020-08-31 09:16:53 +02:00
Sugden
f97316319f
feat(UserFlags): add renamed UserFlags ( #4761 )
2020-08-30 00:34:37 +02:00
Tristan Guichaoua
405b487dc3
fix(Typing): change NodeJS.Timer into NodeJS.Timeout ( #4755 )
2020-08-29 18:54:39 +02:00
Tristan Guichaoua
b48b782c87
chore(Prettier): add settings for prettier plugin ( #4756 )
...
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com >
2020-08-29 12:08:47 +02:00
cherryblossom000
74763ef3fb
types: don't allow any object in the first parameter if second parameter is not given in TextBasedChannel#send ( #4736 )
2020-08-29 12:08:04 +02:00
Carter
74ebb650df
style: remove unnecessary eslint comment ( #4758 )
2020-08-29 12:05:33 +02:00
Louis
a363b90fa5
docs(BaseGuildEmoji): account for optional properties ( #4723 )
2020-08-28 14:19:53 +02:00
Sugden
6aab9c3d64
fix: correctly import extendable classes ( #4744 )
2020-08-28 14:19:20 +02:00
Tristan Guichaoua
2dc70af717
types: add all types for GuildAuditLogsEntry#target ( #4738 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-08-28 14:18:45 +02:00
Sugden
46acfac327
refactor(Client): remove non-existant property from toJSON ( #4750 )
2020-08-28 14:18:17 +02:00
Sugden
727b29c85d
feat(Client): allow options for generateInvite ( #4741 )
2020-08-28 14:17:37 +02:00
Sugden
e0e271162c
fix(typings): bot cannot be null ( #4719 )
2020-08-27 16:40:36 +02:00
InkoHX
cfc68677ee
docs(ClientOptions): fix typo ( #4730 )
2020-08-27 16:39:55 +02:00
Noel
43c4d80b12
ci(CodeScanning): add CodeQL code scanning workflow
2020-08-24 19:27:00 +02:00
Carter
05c9e30163
docs(APIMessage): fix wording on comment ( #4717 )
2020-08-17 09:56:18 +02:00
Carter
b6167d8c3b
docs: update jsdoc type for User#bot ( #4716 )
2020-08-17 09:45:57 +02:00
iCrawl
56e8ef2d38
chore(Release): version upgrade
2020-08-15 20:38:09 +02:00
Jan
db512d8f62
fix(User): set User#bot to false if not partial ( #4706 )
...
Co-authored-by: Noel <icrawltogo@gmail.com >
2020-08-15 20:04:32 +02:00
Noel
5249cf33e5
revert(Shard): "fix missing child_process silent option of Shard to allow listening to output" ( #4707 )
...
This reverts commit 58d1589a55 .
2020-08-15 12:50:05 +02:00
Jan
09bde74e43
chore: bump version in package-lock.json ( #4705 )
2020-08-15 12:38:40 +02:00
iCrawl
a4dbfdce59
chore(Release): version upgrade
2020-08-14 21:56:11 +02:00
Noel
dea48d64a5
chore(Deps): upgrade deps ( #4701 )
2020-08-14 21:46:23 +02:00
Advaith
178439ef8c
feat: trigger userUpdate on GUILD_MEMBER_UPDATE ( #4697 )
2020-08-14 20:49:44 +02:00
Carter
f1194afd7c
feat(GuildMemberManager#prune): roles query param ( #4142 )
...
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: kyranet <kyradiscord@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
2020-08-14 20:14:31 +02:00
Carter
2742923df4
feat(GuildManager): adds GuildManager#fetch ( #4086 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-08-14 19:34:19 +02:00
Human
0b38c5d8b3
docs: updated applications URL ( #4699 )
2020-08-14 19:33:11 +02:00
cherryblossom000
f451be0519
feat(typings): use readonly arrays in parameters ( #4692 )
...
Co-authored-by: Noel <icrawltogo@gmail.com >
2020-08-13 20:43:51 +02:00
Advaith
f991bd46f3
chore(Constants): update large_threshold default ( #4698 )
2020-08-13 20:38:59 +02:00
Quentin
139e56c774
docs(ReactionCollector): update remove and dispose events ( #4136 )
...
Co-authored-by: Amish Shah <amishshah.2k@gmail.com >
Co-authored-by: uhKevinMC <plainkevin123@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
2020-08-12 23:22:45 +02:00
Androz
e7eda72c9d
feat(typings): add number type for setExplicitContentFilter method ( #4694 )
2020-08-12 23:18:58 +02:00
Sugden
980243f2d5
fix(Partials): correctly set properties as nullable ( #4636 )
2020-08-12 21:26:59 +02:00
Sugden
b6ddd4ce41
fix(APIMessage): add reply user to allowedMentions ( #4591 )
2020-08-12 21:25:38 +02:00
Arthur
6caeaeb391
fix(MessageReactionAdd): prevent double messageReactionAdd triggering ( #4682 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-08-12 21:24:45 +02:00
Carter
290938bf80
feat: bypass cache check with forceFetch param ( #4592 )
2020-08-12 21:23:04 +02:00
Souji
0225851e40
feat(BitField): add problematic bit to error ( #4617 )
2020-08-12 12:37:01 +02:00
Sardonyx
2a7f749d5a
docs(Embeds): Added descriptions to the typedefs ( #4303 )
...
Co-authored-by: RDambrosio <rdambrosio016@gmail.com >
2020-08-12 12:29:02 +02:00
Advaith
57ca3d7843
feat(Guild): updates for Community guilds ( #4377 )
...
Co-authored-by: SpaceEEC <spaceeec@users.noreply.github.com >
2020-08-12 12:21:17 +02:00
Advaith
de8d26d791
docs(Constants): Improve large_threshold description ( #3744 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-08-12 12:17:13 +02:00
Advaith
5be6630843
feat(Guild): discovery splash ( #4619 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2020-08-12 11:09:18 +02:00
Advaith
446bbfe9eb
docs(Ban): days must be 0-7 ( #4693 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
2020-08-12 09:35:33 +02:00
Tristan Guichaoua
f2f31a14c9
feat(types): BitFieldResolvable use ReadonlyArray ( #4604 )
2020-08-12 09:34:24 +02:00
Sugden
e92cbc444b
feat: deprecate GuildEmbed methods and properties in favour of GuildWidget ( #4121 )
2020-08-12 09:33:00 +02:00
Advaith
baffbdb541
fix(Integration): user might not be present ( #4691 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2020-08-12 09:30:34 +02:00
Bence
b7740d4859
feat(GuildEmoji): cache the author ( #4334 )
...
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com >
2020-08-12 09:27:00 +02:00
Souji
599cde3627
fix(GuildChannel): make lockPermissions use parent overwrites ( #4627 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2020-08-12 09:23:31 +02:00
Advaith
bd2bb0e1c7
docs(Welcome): change discord badge to shields.io for consistency ( #4633 )
2020-08-12 09:22:44 +02:00
samsamson33
03580b23a3
feat(Util): add missing colors to docs ( #3843 )
...
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-08-11 23:40:07 +02:00
Jan
9d747d14c5
docs(Client): fix docs for login method ( #4350 )
2020-08-11 23:36:25 +02:00
Nathan Franke
124afeb843
fix(Collector): support async ( #4123 )
2020-08-11 23:34:47 +02:00
Hayden Andreyka
05cbf70486
docs(Guild): clarify vanity URL documentation ( #4125 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-08-11 23:05:03 +02:00
Jared Gesser
58d1589a55
fix missing child_process silent option of Shard to allow listening to output ( #4308 )
2020-08-11 23:01:19 +02:00
Sugden
49ad279c52
refactor(GuildMemberManager): use data instead of query ( #4370 )
2020-08-11 23:01:02 +02:00
Erwann Hilley
1fbaf8816e
feat: add Blob support for browser ( #4338 )
...
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com >
2020-08-11 23:00:12 +02:00
Souji
b4d651055a
fix(BaseManager): properly type valueOf ( #4594 )
2020-08-11 22:59:44 +02:00
Sugden
c5b6c4da43
fix: correctly import VoiceState ( #4616 )
2020-08-11 22:59:03 +02:00
Jan
f628981f42
docs(CategoryChannel): Fix children being incorrectly marked as nullable ( #4620 )
2020-08-11 22:58:30 +02:00
Souji
a663ea4d2c
fix(ApiMessage): respect allowedMentions with split ( #4588 )
2020-08-11 22:57:12 +02:00
Zaid - Nico
2be68e4125
fix(Message): Message#createdTimestamp uses deconstructed message id to get timestamp ( #4632 )
2020-08-11 21:02:15 +02:00
Souji
317f24076e
fix(Util): support empty array for flatten ( #4590 )
2020-08-11 21:01:29 +02:00
Souji
fab3153de6
fix: consider #nsfw false if not present in data ( #4593 )
2020-08-11 21:00:29 +02:00
Souji
276dddcbfb
fix(PresenceStatus): include invisible in typings ( #4585 )
2020-08-11 20:59:47 +02:00
Souvik
2adb5815bf
fix: set #nickname to null as the default value ( #4641 )
2020-08-11 20:58:52 +02:00
tiehm
3df99930e8
fix(Typings): Channel#delete returns bad type ( #4118 )
2020-08-11 20:58:12 +02:00
Matthew Stead
e54c21bc65
feat(typings): TypeScript support for changing $browser ( #4667 )
2020-08-11 20:57:42 +02:00
Souji
bbfc715821
fix(Message): include MessageEmbed type ( #4675 )
2020-08-11 20:56:01 +02:00
Sanskar Jha
755f3798d1
docs(examples): fix example img ( #4678 )
2020-08-11 20:55:05 +02:00
Arthur
5b716c5b0c
docs(ReactionManager): clarify cache Collection keys type ( #4683 )
2020-08-11 20:54:14 +02:00
Jan
b0e53e9c6d
docs(Message): add NewsChannel type to Message#channel ( #4680 )
2020-08-11 20:53:29 +02:00
Androz
c55b5c8c19
fix(typings): correct spelling of APIError ( #4687 )
2020-08-11 20:52:10 +02:00
모메MoMe
fb1dd6b53a
fix(Util): Fix cleanContent mention exploit ( #4663 )
2020-07-29 12:47:20 +02:00
Jan
0e61fca974
docs: make use of MessageResolvable type for bulkDelete ( #4661 )
2020-07-29 12:15:23 +02:00
camc
2b6e6d8631
feat(Module): add ReactionManager to exports ( #4372 )
...
add ReactionManager to the manager exports in src/index.js
closes #4363
2020-07-17 10:20:51 +02:00
Tenpi
47151fc2a9
fix(typings): allow custom events ( #4162 )
2020-07-17 10:17:44 +02:00
Souji
5027787aec
chore: add relevant client options section to issue template ( #4587 )
2020-07-17 10:16:37 +02:00
Souji
c79ac4d9fc
feat(Message): support pin and unpin with reason ( #4586 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-07-17 10:13:30 +02:00
Souji
f9f3661090
fix(User): type dmChannel as nullable ( #4609 )
2020-07-06 19:07:33 +02:00
Crawl
ae716872b9
chore(deps): remove peer-deps as per npm@7 ( #4272 )
2020-06-19 11:48:01 +02:00
Phineas
ea19faa411
Change domain to discord.com ( #4160 )
2020-06-19 11:46:59 +02:00
Papaia
9a1c56c5b9
docs(erlpack): discordapp to discord ( #4288 )
...
Co-authored-by: Papaia <43409674+ItsPapaia@users.noreply.github.com >
2020-06-19 11:46:29 +02:00
Jan
214981f0b1
feat(MessageMentions): fix typings/docs, add resolvables support ( #4339 )
2020-06-19 11:43:19 +02:00
Souji
16847a3c13
fix: typing start event emitting on non text based channels ( #4349 )
2020-06-19 11:42:06 +02:00
uhKevinMC
54a7fdadda
feat(voiceState): add self_video property ( #4346 )
2020-06-19 11:41:11 +02:00
Papaia
1c275afd7c
fix(Guild): fix vanityURLUses desc, internally use fetchVanityData ( #4335 )
...
* docs(vanityURLUses): use fetchVanityData
* feat(fetchVanityCode): internally call fetchVanityData
* Update src/structures/Guild.js
2020-06-04 19:17:18 +02:00
Johnson Chen
8030612e52
feat(Guild): add fetchVanityData ( #4103 )
...
* chore: deprecate Guild.fetchVanityCode()
* feat: add Guild.fetchVanityData()
* chore: update typings
* fix: remove redundant .then()
Co-Authored-By: Antonio Román <kyradiscord@gmail.com >
* chore: fix lint
* chore: util.deprecate fetchVanityCode
* feat: add VanityData typedef and populate vanityURLUses
* chore: update typings
* chore: properly deprecate fetchVanityCode
* chore: fix jsdoc description for fetchVanityData
* feat: make fetchVanityData an async function
* chore: update Vanity typedef
* docs: update jsdoc
* feat: throw vanity url error instead of returning rejected promise
Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com >
* docs: disable max-len rule and add info about receiving parameter
* fix: throw Error instead of rejecting Promise
* revert: revert "fix: throw Error instead of rejecting Promise"
This reverts commit 7ffd53eba4 .
* fix: require DJSError to fix throwing VANITY_URL error
* nitpick: re-add TypeError to the import
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2020-06-04 13:41:20 +02:00
Carter
257371da28
feat(REST): allow options.query as URLSearchParams ( #4143 )
...
* feat: support query as URLSearchParams
* style: remove unnecessary comment
* patch: use const
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* feat: not reconstructing the search params
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-06-04 13:34:29 +02:00
nolan
5955498aca
fix(DataResolver): resolveInviteCode to support new domain ( #4281 )
...
Update resolveInviteCode method to support "discord.com/invite" links.
2020-06-04 13:22:26 +02:00
Papaia
fc4bddf82a
fix: grammatical errors in INVALID_TYPE errors ( #4289 )
...
* fix(GuildMemberRoleManager): grammatical error
* fix: eslint
* fix(GuildChannel): an
* fix(PermissionOverwrites): an
Co-authored-by: Papaia <43409674+ItsPapaia@users.noreply.github.com >
2020-06-04 13:02:28 +02:00
Souji
bd349650a7
docs(Guild): description of Guild#premiumSubscriptionCount ( #4324 )
2020-06-04 12:56:48 +02:00
Sugden
88a62d5fea
docs(GuildManager): resolve returns a GuildChannel ( #4333 )
2020-06-04 12:52:43 +02:00
Evan
b0b62d63cf
chore(docs): remove comment about type 13 ( #4159 )
2020-05-21 13:18:06 +02:00
Sugden
15b53509da
fix(APIMessage): only pass allowedMentions if content is defined ( #4269 )
2020-05-21 13:17:00 +02:00
Schuyler Cebulskie
153a030c1f
Improve text for Discord server link in issues
2020-05-17 02:51:28 -04:00
Papaia
2583ad5da7
docs(WebSocketShard): add missing properties ( #4268 )
2020-05-09 17:23:32 +02:00
SpaceEEC
a6510d6a61
revert "chore(docs): example for timeout in message.delete()" ( #4167 )
2020-05-07 23:39:45 +02:00
SpaceEEC
407bc77d34
fix: in/de-crement max listener for client events ( #4168 )
2020-05-07 23:39:23 +02:00
Alexander Kashev
766b91d306
docs(ShardingManager): fix typo in JSDoc ( #4158 )
...
Fix typo introduced in PR #4157 in the link to Node docs
2020-05-05 22:45:30 +02:00
anandre
b385aedf36
chore(docs): example for timeout in message.delete() ( #4165 )
2020-05-05 22:41:41 +02:00
Alexander Kashev
99612ba14d
docs(ShardingManager): remove experimental status of Worker threads ( #4157 )
2020-05-04 13:08:52 +02:00
Kevin
ec0227a476
feat(GuildMemberManager): nonce and chunk_count for _fetchMany ( #4130 )
...
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
2020-05-04 12:48:33 +02:00
anandre
2617d3c9f3
docs(VoiceState): remove permissions required from description ( #4156 )
2020-05-04 12:46:58 +02:00
Carter
6367f603f6
typings: Add User#fetchFlags ( #4138 )
2020-05-01 14:45:14 +01:00
sillyfrog
d3c9384c9c
fix(Voice): correctly set speaking data in the voice ssrcMap
...
Co-authored-by: Sillyfrog <sillyfrog@users.noreply.github.com >
2020-04-30 17:21:29 +01:00
Carter
026691702d
feat(Guild#fetch): withCount param ( #4111 )
2020-04-27 09:05:39 +02:00
Corentin Poupry
605ee8587b
fix(MessageEmbed): explicitly mark proxyIconURL as undefined ( #4097 )
2020-04-26 17:02:45 +02:00
Alon L
819e04a7ab
fix(Typing): dmChannel bulkDelete ( #4115 )
...
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-04-26 15:59:30 +02:00
Sugden
46b9e25190
typings(User): mark locale and flags as optional ( #4127 )
2020-04-26 15:58:53 +02:00
Nathan Franke
1726651c71
chore(tooling): include mention of commit convention ( #4124 )
2020-04-24 12:02:04 +02:00
Alon L
e3303ac3a2
fix(Typing): setSpeaking public ( #4109 )
2020-04-24 08:44:37 +01:00
Crawl
67a74c33e1
fix(Webpack): add Buffer polyfill in browser ( #4102 )
2020-04-20 21:15:26 +02:00
Papaia
97cbbb176b
fix(Guild): name acronym ( #4104 )
2020-04-20 21:15:14 +02:00
RDambrosio
5af1a552bc
fix(PacketHandler): guild members chunk packet handler should… ( #4092 )
2020-04-19 12:25:32 +02:00
SpaceEEC
97d23de247
fix(Typings): add optional Set<Snowflake> to shardReady event ( #4099 )
2020-04-19 12:24:58 +02:00
Souji
863a70918a
docs(Message): add timeout to Message#delete example ( #4090 )
2020-04-18 12:16:19 +02:00
Jyguy
6fbaf0a036
fix(User): jsdoc for User#flags ( #4094 )
2020-04-18 12:15:30 +02:00
iCrawl
d827544fbd
chore(Release): version
2020-04-17 12:58:26 +02:00
thepheer
12187efdbd
feat(DataResolver): prefer streams over buffers ( #4075 )
...
* feat(DataResolver): prefer streams over buffers
* feat(DataResolver): add `resolveFileAsBuffer`
Add `resolveFileAsBuffer` to use it in `resolveImage` which still requires Buffers to work.
* fix(DataResolver): make sure `resolveFile` always returns a Promise
* refactor(DataResolver): use for-await-of
* fix(DataResolver): use forked form-data which supports custom streams
* fix(APIRequest): use forked form-data in code too
Co-authored-by: - <5144598+-@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-04-17 12:03:50 +02:00
Ryan Munro
7c6000c5e3
feat(ClientOptions): allow setting default allowedMentions ( #4085 )
...
* feat(ClientOptions): add default allowedMentions
* feat(ClientOptions): use default allowedMentions when not provided
* Update src/structures/APIMessage.js
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* Update src/structures/APIMessage.js
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* fix(ClientOptions): default allowedMentions should be undefined
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-04-17 11:23:31 +02:00
HarmoGlace
a88b7239b5
docs(RoleManager): everyone role can't be null ( #3995 )
...
* docs(RoleManager) : fix jsdoc everyone role can't be null
It fixes the jsdoc of RoleManager ; the everyone role of a guild can't be null
* Everyone role can't be null
* fix(typings): mark RoleManager#everyone as non-null
Co-authored-by: Crawl <icrawltogo@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-04-16 12:18:43 +02:00
Duncan Sterken
0a3759f683
feat(ESModules): importing for esm modules ( #3998 )
...
* fix: importing for esm modules
* style: use single quotes
* refactor: remove 'use strict'
2020-04-16 12:11:24 +02:00
Sardonyx
da5d92812e
docs(Webhook): id and token information ( #3962 )
...
* Documented how to get ID and Token of a webhook
* Update docs/examples/webhook.js
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* Explained whats the response body
* Update docs/examples/webhook.js
Co-Authored-By: Crawl <icrawltogo@gmail.com >
* Update docs/examples/webhook.js
Co-Authored-By: Crawl <icrawltogo@gmail.com >
* Update webhook.js
* Capitilized ID
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-04-16 12:09:26 +02:00
Kevin
ff3454ef89
feat(GuildMemberManager): customisable timeout for _fetchMany ( #4081 )
2020-04-16 12:07:32 +02:00
SpaceEEC
4625881c54
docs(MessageEmbed): document the constructor ( #4077 )
2020-04-16 12:07:08 +02:00
SpaceEEC
4c2308b4c6
docs(MessageManager): document return type of delete ( #4012 )
...
* docs(MessageManager): document return type of delete
* docs(MessageManager): use Promise<void> over Promise
Co-Authored-By: Papaia <43409674+ItsPapaia@users.noreply.github.com >
Co-authored-by: Papaia <43409674+ItsPapaia@users.noreply.github.com >
2020-04-16 11:57:03 +02:00
SpaceEEC
7ce58dbd4a
docs(ShardClientUtil): link Shard#message from send method ( #4028 )
...
* docs(ShardClientUtil): link Shard#message from send method
* docs(ShardClientUtil): use @ emits instead of @ link
2020-04-16 11:56:42 +02:00
Ron B
2388467bd3
chore(Typings): stricter def for Client#emit ( #4087 )
2020-04-16 11:52:52 +02:00
withmask
d7096569c8
fix(PermissionOverwrites): resolveOverwriteOptions description ( #4088 )
...
smoll update
2020-04-16 11:52:06 +02:00
Advaith
fcacf1bc0d
fix(Guild): sort text, news, and store channels together ( #4070 )
2020-04-16 10:35:19 +02:00
Carter
2e5a6476d5
feat: User#flags ( #4060 )
...
* feat: user flags
* fix: unnecessary negated statement
* fix: wording for description
* fix: an vs. a
* feat: add verified bot and dev flags
Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com >
* typings :verified bot and dev flags
Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com >
* feat: mon's suggestion, async fetchFlags & jsdoc
* feat: added to index.js
* fix: typo
* style: leveled flags
* typings: update leveled flags
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2020-04-16 10:32:15 +02:00
cherryblossom000
72a33cb8c2
fix(Typings): GuildPreview#features and Integration#type ( #4080 )
...
* fix(Typings): make GuildPreview#features an array
* fix(Typings): make Integration#type a string
2020-04-16 10:31:40 +02:00
SpaceEEC
72a7f2b3ed
fix(ClientApplication): type fetchAssets as resolving with an a… ( #4078 )
2020-04-16 09:27:52 +02:00
SpaceEEC
a8db9884d5
feat(Message): add allowedMentions to MessageEditOptions ( #4071 )
2020-04-16 09:27:19 +02:00
Roki
1330e2d246
feat: add supported 4096 image size and jpeg format ( #4031 )
...
* add 4096 avatar size that discord supports
* jpeg is also a thing
* update jsdocs
* update typings and remove duplicate type
2020-04-12 22:20:31 +02:00
Jyguy
9ba4eff279
fix(StreamDispatcher): correct property types ( #4059 )
...
* typings(StreamDispatcher): correct property types
* typings(StreamDispatcher): order methods alphabetically
2020-04-12 20:58:53 +02:00
Vlad Frangu
e5fac8c32f
chore(WebSocketShard): log Discord requested reconnects ( #4066 )
2020-04-12 20:57:50 +02:00
Quentin
a07c3c2f94
fix(BaseManager): remove declaration of remove method ( #4069 )
...
The BaseManager#remove method doesn't exist, but was in the BaseManager typings.
2020-04-12 20:54:34 +02:00
SpaceEEC
828640ca26
ci(Testing): add TypeScript test job ( #4002 )
...
* ci(Testing): add TypeScript job
* chore: add eol before eof
2020-04-04 14:11:59 +02:00
SpaceEEC
9e4c39ae53
fix(Message): update MessageMention's roles on message edit ( #4016 )
2020-04-03 21:30:49 +02:00
Amish Shah
0e44ecd420
chore: fix typings/docs for VoiceBroadcast ( #4014 )
2020-04-03 11:19:24 +01:00
Advaith
849c6324d3
feat(Guild): PUBLIC_DISABLED and WELCOME_SCREEN_ENABLED features ( #4009 )
2020-04-03 11:59:51 +02:00
Syntle
691e96c5cf
fix(Presence): add missing userID property to declarations ( #4013 )
...
* Added `userID` property to `Presence` class
userID property exists in docs but not in typings
* fix(Presence): userID should be typed as Snowflake
Co-Authored-By: BorgerKing <38166539+RDambrosio016@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: BorgerKing <38166539+RDambrosio016@users.noreply.github.com >
2020-04-03 11:57:50 +02:00
iCrawl
6544d22338
chore(Release): version
2020-03-27 22:25:33 +01:00
SpaceEEC
5e491260a1
fix(Typings): use Channel instead of *ChannelTypes in ClientEve… ( #4001 )
2020-03-27 22:23:46 +01:00
iCrawl
f16a0790ca
chore(release): version
2020-03-27 21:04:59 +01:00
SpaceEEC
b441469044
revert: channel unions ( #3918 69d69f2) ( #3978 )
...
* revert: channel unions (#3918 69d69f25b9 )
* fix: correct tslint:disable
* revert: keep the GuildChannel#setParent change
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-03-27 20:58:11 +01:00
SouSinner
88133d0d77
feat(GuildPreview): implement support for "preview" endpoint ( #3965 )
...
* feat(GuildPreview): method — fetchGuildPreview
* feat(GuildPreview): structure — GuildPreview
* feat(GuildPreview): update typings
* fix(GuildPreview): remove typedef for Features — already exists
* refactor(GuildPreview): update JSDocs & method
* feat(GuildPreview): implement DiscoverySplash function
* fix(GuildPreview): description & error handling for id
* fix(GuildPreview): misleading description, assign emojis correctly
* feat(GuildPreview): func DisplaySplash & GuildPreviewEmoji interface
* fix(Typings): satisfy TSLint
* fix(GuildPreview): toJSON - returns a value now
* feat(GuildPreview): add fetchPreview method on instance of Guild
* feat(GuildPreview): update typings
* fix: missing client constructor
* fix: typo in typings
* feat(BaseEmoji): implement BaseEmoji — parent for emoji instances
* feat(BaseEmoji): refactor - GuildEmoji extends BaseEmoji now
* feat(BaseEmoji): refactor - adjust emojis prop to BaseEmoji instance
* feat(BaseEmoji): not documented fully - GuildPreviewEmoji
* feat(BaseEmoji): update typings
* fix: remove duplicate typing properties - inherited
* fix: remove redundant methods & properties - inherited / already set
* fix: let -> const
* fix: typings - put BaseEmoji after BaseClient
* fix: remove _clone method - redundant
* refactor(GuildPreview): emojis should be a collection
* refactor: rename base class, move relevant props there and expose roles
* fix(GuildPreview): update emojis in _patch
* fix(Typings): remove empty line, add Client#fetchGuildPreview
* feat: export GuildPreview
* fix(Typings): add GuildPreview#discoverSplash, icon, and splash
Co-authored-by: LxveFades <twitchisadeck@gmail.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-03-27 20:57:28 +01:00
Jyguy
fee9a218e8
docs(MessageMentionTypes): move possible values to description ( #3990 )
...
* docs(MessageMentionTypes): correct type
* docs(MessageMentionTypes): change role to roles
* docs(MessageMentionOptions): correct description to allow usage as an array
* remove unneeded part of description
Co-Authored-By: Ryan Munro <rsm999@uowmail.edu.au >
* docs: add DisableMentionType to remove literal string types
Co-authored-by: Ryan Munro <rsm999@uowmail.edu.au >
2020-03-27 20:54:27 +01:00
Carter
51ff5ddb64
chore: incorrect word in issue template ( #3996 )
2020-03-26 11:33:11 +01:00
didinele
65e8c92d7c
fix(WebsocketShard): pass ignore ACK when Discord asks for a beat ( #3993 )
2020-03-25 12:55:20 +01:00
Ryan Munro
f2fdb93318
fix(Typings): client message event should not emit PartialMessa… ( #3983 )
...
* fix(Typings): client message event should not emit PartialMessage
* Update typings/index.d.ts
Co-Authored-By: Jyguy <jskekkx@gmail.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
Co-authored-by: Jyguy <jskekkx@gmail.com >
2020-03-23 08:36:27 +01:00
Sugden
5da734c3d4
typings: add back accidental removal ( #3984 )
2020-03-23 08:30:04 +01:00
Jyguy
993411d9fe
docs(MessageReaction): fix jsdoc for count ( #3980 )
2020-03-22 20:09:31 +00:00
SpaceEEC
215740157b
fix: always emit guildUnavailable when a guild becomes unavailable ( #3975 )
2020-03-21 11:31:34 +00:00
Crawl
645e09e859
chore(ci): buggy void return rule
2020-03-21 09:54:58 +01:00
C eq Q divided-by U
495cfa96c2
fix(TypingStart): typing methods returning falsy values ( #3939 )
...
* fix: typing methods returning falsy values
* fix: eslint
* fix: no provided parameters; updated jsdocs
* fix(Typings): reflect typingStop
* refactor: since and lastTimestamp merged into one constructable value
* feat(Typings): document Channel#_typing
* feat: emit TypingData on typingStart; update jsdocs
* feat(Typings): move _typing to TextBasedChannel; sort props alphabetic
* feat(Event): remove typingStop
* feat(Typings): update typings - remove typingStop
* feat(Event): remove typingStop from Constants
* feat(Typing): remove TypingData class - redundant
* refactor(Events): remove TYPING_STOP event
* refactor(TypingData): now is an interface for _typing
* fix(TypingStart): timeout variable, removed emit for TypingData
* feat(Typing): timeout property on Channel#_typing, remove redundancy
* fix(Typings): extra overload(s)
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* Update index.d.ts
* fix(Typings): remove "private" from interface — invalid TS
* feat(Typings): add PartialUser in case partials are enabled
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* feat(Typings): document 'timeout' property of TypingData
Co-authored-by: Crawl <icrawltogo@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-03-21 09:52:40 +01:00
Advaith
0f38d807c7
fix(Guild): default max presences value ( #3970 )
2020-03-21 09:02:12 +01:00
Ryan Munro
df324e2c21
feat(AllowedMentions): add support for MessageOptions#allowedMe… ( #3893 )
...
* feat(Allowed Mentions): Add support for new Allowed Mentions message options
* fix(docs): Update JSDoc for feature
* fix(apimessage): translate the propery into snake_case
* fix(typings): message mention options should be optional
* fix(docs): jsdoc typings for MessageMentionOptions
* fix(mentions): use Resolvables for MessageMentionOptions
* fix(docs): typedef for MessageMentionTypes
* Update typings/index.d.ts
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* fix(mentions): drop support for Resolvables
* fix(AllowedMentions): remove the whole resolve function
* fix(docs): revert change to Resolvables
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-03-19 11:56:03 +01:00
uhKevinMC
cd52424fb7
docs(VoiceState): improve phrasing of setChannel method ( #3959 )
...
* (docs) Fixed phrasing of docs
Added permission needed to edit a member's voice state and adjusted docs to say **"Disconnect"** instead of **"Kicking"** the member.
* fixed line length on 156
2020-03-19 11:51:40 +01:00
KhaaZ
5b9cdc5cd2
feat(Permissions): Adds VIEW_GUILD_INSIGHTS ( #3928 )
2020-03-17 21:37:40 +00:00
Sugden
a6605155f0
typings/fix(Partials): fix unexpected TSC errors ( #3957 )
2020-03-17 20:01:26 +01:00
Sugden
a5267e1163
docs(MessageEmbed): correct description of createdAt ( #3897 )
...
* docs(MessageEmbed): correct description of createdAt
* typo
2020-03-17 19:04:46 +01:00
Sugden
8b906c69bb
fix(Partials): correctly document properties for partialized st… ( #3922 )
...
* fix(Partials): properly document partial properties
* style: turn tabs into spaces
* style: order properties alphabetically
* fix(typings): PartialDMChannel will always have a recipient
* change properties to undefined instead of null
* docs: correctly mark properties
* style: remove tabs
* fix(partials): document properties properly
* style: tabs
* style: random line
* docs(User): tag is nullable
* typings(User/GuildMember): document lastMessageID properly
* typings/fix: change lastMessageID to lastMessageChannelID
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-03-17 18:59:47 +01:00
izexi
8c0a940cdb
fix(Channel): ensure partial DMChannels get created ( #3954 )
2020-03-17 18:52:59 +01:00
izexi
a36a65b36a
fix(MessageReaction): fetching a removed partial custom emoji ( #3955 )
...
* fix: handling GuildEmoji within fetch()
* refactor: remove unused "private" methods
* refactor: make use of Message#fetch() to patch
2020-03-17 18:52:43 +01:00
Daniell
2be9ebaad2
feat(typings): allow event listener type param inference ( #3944 )
...
* feat: allow listener type param inference
* fix: typo
* fix: invalid listener type
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* fix: intellisense (user should extend interface)
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-03-17 18:52:11 +01:00
Crawl
7994b5612a
docs(PlayInterface): update example for broadcast
...
Co-authored-by: Carter <45381083+Fyko@users.noreply.github.com >
2020-03-17 09:13:19 +01:00
SpaceEEC
7b38f46caf
fix(RequestHandler): a global timeout implies limited ( #3950 )
2020-03-17 09:02:51 +01:00
Joe Villegas
609a545131
typings(StreamDispatcher): remove end event ( #3945 )
2020-03-17 09:02:43 +01:00
Sugden
a53404fac3
typings(PartialTextBasedChannelFields): fix send overload ( #3942 )
2020-03-15 19:14:10 +01:00
Ryan Munro
69d69f25b9
feat(Types): support type-guarding using Channel#type string li… ( #3918 )
...
* feat(types): union type for Channels
* feat(Types): union for TextBasedChannelTypes
* fix(Types): use new union types in return values
* Update typings/index.d.ts
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* Update typings/index.d.ts
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* fix(Types): various minor improvements for Partials
* fix(GuildChannel): partial should return false
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-03-14 16:50:43 +01:00
Sugden
44ac5fe6df
fix(Util): cleanContent should remove mentions after formatting… ( #3936 )
2020-03-14 13:39:54 +01:00
Sugden
d43f78c845
typings(PartialTextBasedChannelFields): fix send overloads ( #3935 )
...
* typings(PartialTextBasedChannelFields): Remove duplicate types for parameters
* typings(PartialTextBasedChannelFields): fix overloads for send
* style: add semicolons and remove whitespace
2020-03-14 13:39:22 +01:00
vzwGrey
e5264aba37
fix(GuildMemberRolesManager): type error should mention Role an… ( #3931 )
...
* fix(GuildMemberRoleManager): type error should mention that Role or Snowflake are fine too
* fix(GuildMemberRoleManager): comma instead of 'or'
* style: break long line
2020-03-14 13:38:51 +01:00
SpaceEEC
ca75eb509a
fix(GuildEmojiManager): throw an error if image resolving fails ( #3934 )
...
* fix(GuildEmojiManager): throw an error if image resolving fails
* refactor(GuildEmojiManager): remove redundant if branch
2020-03-14 11:44:08 +01:00
Sugden
5b8f02243c
typings(Client): remove typingStop event ( #3919 )
2020-03-14 11:41:05 +01:00
iCrawl
76634db9be
chore: use cross-env to set env vars
2020-03-08 20:18:40 +01:00
iCrawl
36050d07f5
chore: release version 12.0.2
2020-03-08 20:06:30 +01:00
SpaceEEC
a4f7e07b3b
fix(APIRequest): only use form data when actually sending files ( #3917 )
2020-03-08 19:28:19 +01:00
Bence
79a28b55a8
docs(Structures): add ExtendableStructure typedef ( #3908 )
...
* docs(Structures): add ExtendableStructure typedef
* revert automatical package.json change
2020-03-08 19:28:03 +01:00
Crawl
b5dfb55923
docs: make collections more accessible in docs ( #3907 )
...
Fixes #3896
2020-03-08 19:27:42 +01:00
SpaceEEC
69d415301d
perf(VoiceConnection): skip redundant volume transformer on join ( #3916 )
2020-03-08 17:40:06 +00:00
Matt (IPv4) Cowley
3e169cb4d3
fix(MessageEmbed): skip validation of fields when inside a message ( #3894 )
...
* fix(MessageEmbed): Add skipValidation flag to MessageEmbed
* fix(MessageEmbed): Use skipValidation flag in Message
* fix(MessageEmbed): Restore static normalizeField(s) methods
* fix(MessageEmbed): Update typings for constructor
* fix(MessageEmbed): Remove private docstrings/typings
* fix(MessageEmbed): Use skipValidation without storing in instance
* fix(MessageEmbed): skipValidation without modifying normalizeFields
* fix(MessageEmbed): Revert indentation change in typings
* fix(MessageEmbed): Clone logic from normalizeFields (duplicated code ftw)
* revert(MessageEmbed): remove dead code / breaking change
- dead code
discord.js does not use those methods interally and won't in the future, as Discord
does not emit any partial embed updates and doing so in the future seems unlikely.
- a breaking change (an incompatible api change)
Although it's not recommended to do, users can modify
received embeds without cloning them, e.g.:
const embed = message.embeds[0].addField('some title', '');
(replace '' with some function call; this is just an example)
This would no longer throw a synchronous error (breaking change),
but at a later point when actually sending it. (poorer to debug)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-03-08 17:24:18 +01:00
Silver Shadow
3c653aafe8
docs(GuildMemberResolvable): an member -> a member ( #3909 )
...
an member -> a member
2020-03-08 16:00:43 +01:00
SpaceEEC
f387337787
fix(Guild): resolve role id and call existing handler ( #3904 )
2020-03-07 06:06:58 +01:00
Sugden
9b5f005394
test: update tests ( #3865 )
...
* test: update tests
* style: fix indent
* test: suggested changes
* test: require correct directory
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-03-07 06:05:57 +01:00
SpaceEEC
bca4b038a5
docs(BitField): document constructors of deriving classes ( #3903 )
2020-03-07 06:00:48 +01:00
Spooder
b5a7e5cdf0
docs(sharding): ShardingManager#createShard doesn't spawn the s… ( #3875 )
...
* Fixed createShard() to show an example!
* docs(ShardingManager): clarify createdShard docs
* docs(Shard): clarify manager parameter
* docs(ShardingManager): use an info tag for createShard's param
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-03-07 06:00:11 +01:00
Souji
61ef46ff30
fix: adapt #manageable to check for CONNECT for VoiceChannel ( #3885 )
2020-03-06 07:00:49 +01:00
iCrawl
0066d0089e
chore: pascal-case in scope
2020-03-04 20:33:18 +01:00
Advaith
bfcd4befc9
docs(faq): replace ffmpeg-binaries with ffmpeg-static ( #3886 )
2020-03-03 12:29:56 +00:00