Johnson Chen
5fa6a432aa
chore: fix jsdoc description for fetchVanityData
2020-04-20 03:47:03 +10:00
Johnson Chen
1fa7c8db9f
chore: properly deprecate fetchVanityCode
2020-04-20 03:43:08 +10:00
Johnson Chen
02b5678a01
feat: add VanityData typedef and populate vanityURLUses
2020-04-20 03:30:27 +10:00
Johnson Chen
5c8c56206f
chore: util.deprecate fetchVanityCode
2020-04-20 03:16:54 +10:00
Johnson Chen
89bd207376
chore: fix lint
2020-04-20 02:59:12 +10:00
Johnson Chen
882dbcb4a0
fix: remove redundant .then()
...
Co-Authored-By: Antonio Román <kyradiscord@gmail.com >
2020-04-20 02:51:03 +10:00
Johnson Chen
c3fabe4a7f
feat: add Guild.fetchVanityData()
2020-04-20 01:01:50 +10:00
Johnson Chen
f0643d4349
chore: deprecate Guild.fetchVanityCode()
2020-04-20 00:53:53 +10: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
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
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
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
Vlad Frangu
e5fac8c32f
chore(WebSocketShard): log Discord requested reconnects ( #4066 )
2020-04-12 20:57:50 +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
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
didinele
65e8c92d7c
fix(WebsocketShard): pass ignore ACK when Discord asks for a beat ( #3993 )
2020-03-25 12:55:20 +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
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
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
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
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
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
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