Advaith
bfcd4befc9
docs(faq): replace ffmpeg-binaries with ffmpeg-static ( #3886 )
2020-03-03 12:29:56 +00:00
Amish Shah
11f30ccb31
v12.0.1
12.0.1
2020-03-01 22:33:21 +00:00
Jisagi
66e625c4c0
fix(guild): VerificationLevels ( #3873 )
2020-03-01 21:28:03 +01:00
SpaceEEC
cd746f3069
fix(message_mentions): lazy require GuildMember to avoid circular ( #3877 )
2020-03-01 20:27:47 +00:00
Crawl
1336156799
chore(ci): deploy docs for tags ( #3878 )
2020-03-01 21:25:29 +01:00
Amish Shah
2338594030
Merge branch 'master' into stable
12.0.0
2020-03-01 18:02:24 +00:00
Amish Shah
3142d8cf18
v12.0.0
2020-03-01 18:01:39 +00:00
Amish Shah
a133768618
v12.0.0
2020-03-01 18:00:39 +00:00
Amish Shah
7d40c43ad4
chore: merge v12-dev master into stable
2020-03-01 17:57:30 +00:00
Amish Shah
d7c5baf7f3
chore: update discordjs/discord.js references
2020-03-01 17:38:25 +00:00
Saya
f4b1b398d9
feat: document intent error code messages ( #3871 )
...
* Add 4013, Invalid Intents close code
* Add 4014, Disallowed Intents Code
* Add error messages for 4013 & 4014
* Rephrase invalid & disallowed intent error message
* Rephrase disallowed intent error message
2020-03-01 17:21:48 +00:00
Souji
2d67fbb24c
docs: clarify which checks GuildMember#manageable does ( #3870 )
2020-03-01 15:11:06 +01:00
SpaceEEC
544bb78c8b
refactor: make LimitedCollection an implementation detail ( #3872 )
2020-03-01 15:10:55 +01:00
Sugden
c7f4485cec
docs(PartialRoleData): id is optional ( #3866 )
2020-03-01 15:10:46 +01:00
SpaceEEC
d72172744e
v11.6.1
11.6.1
2020-02-29 19:13:53 +01:00
Anish Shobith P S
34d352dcbe
docs: bump version to 11.6.0 ( #3863 )
...
* docs: Bump version to 11.6.0
* fix: typo
2020-02-29 19:11:42 +01:00
SpaceEEC
713309e7bb
fix(playinterface): lazy require VoiceBroadcast to avoid circul… ( #3864 )
2020-02-29 19:07:23 +01:00
Souji
acdd832fe2
fix(typings): enum values for ChannelType ( #3861 )
2020-02-29 18:58:20 +01:00
Souji
09e4912a90
fix(typings): remove duplicate VerificationLevels ( #3862 )
2020-02-29 18:58:11 +01:00
Souji
a6d3501ff8
fix(typings): for intents ( #3860 )
...
* re-introduce Intents export
* properly type WebsocketOptions#intents
2020-02-29 18:18:59 +01:00
SpaceEEC
b3931eaebb
v11.6.0
11.6.0
2020-02-29 15:28:37 +01:00
SpaceEEC
08e7328b86
docs(readme): remove mention of uws
2020-02-29 15:26:27 +01:00
Souji
8a2f8938be
feat: Intents bitfield ( #3844 )
...
* feat: Intents bitfield
* suggestion: properly construct Intents.ALL
* fix: actually document the ws option
* suggestion: remove disabledEvents in favor of intents
* suggestion: remove obsolete check, validate falsy values
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* fix: GUILD_BANS flag
* fix: exception for intents check in ws options
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* docs: IntentsResolvable
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* Update Client.js
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-02-29 15:20:15 +01:00
iCrawl
b58813ace8
chore(*): update node version mention & use strict
2020-02-29 15:19:37 +01:00
didinele
d33fc741e3
typings: Refactor how channel types are done ( #3808 )
...
* refactor channel types
* really weird solution to make what the PR promises possible, I might revert this
* undo the dumb attempt
* Update index.d.ts
* fix GuildCreateChannelOptions#type
* fix(typings): remove initializers from the enum
* Update index.d.ts
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-02-29 15:11:56 +01:00
Sugden
a04b4cae3e
docs(TextBasedChannel): fix typo ( #3858 )
2020-02-29 15:11:06 +01:00
SpaceEEC
31ee0d84d5
docs(shard): add .cache to GuildManager in fetchClientValue exa… ( #3857 )
2020-02-29 15:10:47 +01:00
iCrawl
d9e12b8bc2
fix(guild): import paths
2020-02-29 14:40:13 +01:00
Crawl
c065156a88
chore: consistency/prettier ( #3852 )
...
* chore: consistency/prettier
* chore: rebase
* chore: rebase
* chore: include typings
* fix: include typings file in prettier lint-staged
2020-02-29 14:35:57 +01:00
Ryan Munro
6650d50a56
feat(MessageEmbed): Support EmbedFieldData[] instead of EmbedFi… ( #3845 )
...
* fix(typings): MessageEmbedOptions#fields should be EmbedFieldData[]
* feat(MessageEmbed): Allow optional EmbedFieldData#inline in constructor
* docs(MessageEmbed): revert type change of fields
Co-authored-by: Crawl <icrawltogo@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-02-29 14:21:43 +01:00
Papa
9c8aaf1bbc
feat: reimplement disableEveryone into disableMentions
...
* User input sanitation: reimplement disableEveryone into disableMentions
* Change default value of ClientOptions#disableMentions to 'none'
* Update type declarations of disableMentions to include default
* update for compliance with ESLint
* Overlooked these files. Updated for complete compliance with ESLint
2020-02-29 14:20:39 +01:00
Bence
bbe169deac
fix(MessageEmbed): prevent possible destructuring error
2020-02-29 14:19:56 +01:00
Sugden
e4f567c65e
refactor(GuildChannel): change overwritePermisions to accept an… ( #3853 )
...
* refactor(GuildChannel): change overwritePermisions to no longer accept an object
* fix: check for instanceof Collection too
2020-02-29 14:19:21 +01:00
Sugden
f95df6f7d7
fix(Shard): cleanup after settling spawn promise ( #3799 )
...
* clear sharding ready timeout
* fix oops
* update typings
* commited to the wrong branch
* fix(Shard): cleanup after settling the spawn promise
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-02-29 14:18:57 +01:00
izexi
de4b4a0939
feat(GuildMemberStore): add options.withPresences to fetch() ( #3562 )
...
* feat: add options.withPresences to fetch()
feat: update presences if present on received data
typings: add user & withPresences to FetchMembersOptions
fix: checking for added options
ref: qol changes to return type
so that all members are fetched
oopsie
* fix: use Manager.cache
* fix(typings): tslint error
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-02-29 14:18:37 +01:00
Sugden
2ee0f1cdc6
feat(GuildManager): Allow for more options for GuildManager.cre… ( #3742 )
...
* typings: add GuildVerificationLevel and GuildExplicitContentFilter
* implement new types
* fix jsdoc on stores
* typo
* add more options for GuildStore#create
* add channels and roles
* update typings
* fix typings and use snake case for permissionOverwrites
* typings & jsdoc
* fix tslint
* remove trailing whitespace
* fix jsdoc
* fix jsdoc
* fix oopsies
* fix lint
* fix lint
* fix mr lint man
* add typedefs and support for setting channel parents
* fix tab indenation
* update jsdoc
* suggested changes
* style: fix silly format
* docs(PartialChannelData): name is not optional
* style: remove silly format
2020-02-29 07:43:42 +01:00
SpaceEEC
97457e1de2
feat(RichEmbed): add toJSON returning an api-compatible object
...
This backports:
PR: https://github.com/discordjs/discord.js/pull/3813
Commit: 4ec01ddef5
2020-02-28 18:29:41 +01:00
Sugden
3d0c1df19d
refactor(Guild)/fix(Util): use resolveID and regex for cleanCod… ( #3837 )
...
* refactor(Guild): use resolveID instead of resolve(...).id
* fix(Util): use regex for cleanCodeBlockContent
2020-02-28 18:26:37 +01:00
Souji
6eaf63fb7c
feat(RichEmbed): backport spliceFields and normalizeField ( #3762 )
...
* backport: RichEmbed#checkField, Util#resolveString
* backport: RichEmbed#spliceFields
* fix: typo
* chore: use util.resolveString everywhere
* chore: rename EmbedFIeld to EmbedFieldData
* consistency with v12
* chore: rename checkField to normalizeField
* consistency with v12
* fix: EmbedField instead of EmbedFieldData
* fix(typings): EmbedFIeld#inline is guaranteed
* fix(docs): add JSDocs typedef for EmbedFieldData
* fix(typings): EmbedFIeldData#name/#value
* should be StringResolvable
* refactor(RichEmbed): do not duplicate field prop checking
* docs(RichEmbed): document default for inline
* fix(RichEmbed): pass correct parameters to normalizeField
* typings(RichEmbed): add missing spaces
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-02-28 18:16:19 +01:00
Sugden
1af1e0cbb8
refactor: add some more consistency ( #3842 )
...
* cleanup(StreamDispatcher): remove old 'end' event
* fix(StreamDispatcher): only listen to finish event once
* refactor(VoiceWebSocket): use `connection.client` in favour of `connection.voiceManager.client`
* fix(VoiceWebSocket): use `client.clearInterval` in favour of `clearInterval`
* refactor: destructure EventEmitter
* refactor: destructure EventEmitter from events
* refactor: use EventEmitter.off in favour of EventEmitter.removeListener
* style: order typings alphabetically
* oops
* fix indent
* style: alphabetically organize imports
* style: remove extra line
* Revert "style: remove extra line"
This reverts commit 96e182ed69 .
* Revert "style: alphabetically organize imports"
This reverts commit 02aee9b06d .
* Revert "refactor: destructure EventEmitter from events"
This reverts commit 9953b4d267 .
* Revert "refactor: destructure EventEmitter"
This reverts commit 930d7751ab .
* Revert "fix(StreamDispatcher): only listen to finish event once"
This reverts commit 485a6430a8 .
* refactor: use .removeListener instead of .off
2020-02-28 18:02:51 +01:00
Souji
df88729c44
feat(MessageEmbed): re-introduce MessageEmbed#addField ( #3850 )
...
* feat(MessageEmbed): re-introduce MessageEmbed#addField
* suggestion: sorting alphabetically
* suggestion: document inline to default false for #addField
2020-02-28 17:58:52 +01:00
Crawl
261816dcf8
chore(githooks): commitlint ( #3836 )
2020-02-28 17:43:45 +01:00
Sugden
31a3a86ebc
docs(MessageEmbed): document article embed type ( #3846 )
2020-02-28 17:43:11 +01:00
Sugden
6109669c97
typings(WebhookClient): client is not a client ( #3838 )
2020-02-28 17:41:12 +01:00
Amish Shah
653784b564
chore(StreamDispatcher): remove end event
...
use finish event instead
2020-02-26 20:00:48 +00:00
Timo
9cb306c823
feat: replace disableEveryone with disableMentions ( #3830 )
...
* add ClientOptions#disableMentions and MessageOptions#disableMentions
* provide tests
* don't sanitize controlled mentions
* add @here mentions to tests
* fix indents (6 spaces instead of 8)
* add Util#cleanContent tests
* add typings for removeMentions
* replace @ with @\u200b AFTER cleaning content as suggested instead of using removeMentions
* better explanation of this option
* no newline in Util.removeMentions
* fix long line
* remove double space
* remove comments (change has been reverted)
* Use Util.removeMentions to remove mentions
* use Util.removeMentions in Util.cleanContent
2020-02-26 11:13:23 +00:00
Ryan Munro
cf646b5394
fix(typings): MessageOptions#split ( #3834 )
2020-02-26 09:46:19 +01:00
Crawl
c4bda746c8
chore(githooks): husky ( #3835 )
2020-02-24 23:32:12 +01:00
Crawl
3a0470b45c
chore(deps): update deps and fix lint ( #3833 )
2020-02-24 23:14:31 +01:00
Crawl
c1d396a6c4
Partial-revert "typings(WebhookClient): client is not a Client" ( #3831 )
...
* Revert "typings(WebhookClient): client is not a Client (#3829 )"
This reverts commit 44ff67dc11 .
* Update index.d.ts
* Update index.d.ts
2020-02-24 22:44:46 +01:00