Advaith
9c76129a23
feat(ActivityTypes): add Competing (type 5) ( #4824 )
2020-09-15 18:33:52 +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
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
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
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
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
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
InkoHX
cfc68677ee
docs(ClientOptions): fix typo ( #4730 )
2020-08-27 16:39:55 +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
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
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
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
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
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
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
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
Souvik
2adb5815bf
fix: set #nickname to null as the default value ( #4641 )
2020-08-11 20:58:52 +02:00
Souji
bbfc715821
fix(Message): include MessageEmbed type ( #4675 )
2020-08-11 20:56:01 +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
모메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
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
Phineas
ea19faa411
Change domain to discord.com ( #4160 )
2020-06-19 11:46:59 +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 7ffd53eba40ff7261a36372935c3017576518a56.
* 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
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
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
e3303ac3a2
fix(Typing): setSpeaking public ( #4109 )
2020-04-24 08:44:37 +01: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
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
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
Kevin
ff3454ef89
feat(GuildMemberManager): customisable timeout for _fetchMany ( #4081 )
2020-04-16 12:07:32 +02:00