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
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
Carter
aac6275300
typings(MessageReaction): allow message to be partial ( #5303 )
2021-03-28 15:26:44 +02:00
Advaith
1c8b1096c6
docs(ChannelManager): fetch can return Promise<null> ( #5422 )
2021-03-28 15:24:19 +02: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
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
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
Jan
a33eed71af
refactor(Util): remove convertToBuffer ( #5237 )
2021-01-24 11:48:03 +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
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
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
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
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
Ishmaam Khan
ffe31405ff
feat(GuildEmojiManager): implement GuildEmojiManager#fetch ( #4933 )
...
* feat: GuildEmojiManager#fetch
* typings: GuildEmojiManager#fetch
2020-12-14 21:44:15 +01:00
Noel
0a591a9697
feat(Browser): remove browser � ( #5113 )
2020-12-14 13:56:16 +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
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
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
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
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
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
Matt (IPv4) Cowley
2a6c363a8a
feat(Shard): shard-specific broadcastEval/fetchClientValues + shard Id util ( #4991 )
2020-11-22 13:35:18 +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
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
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
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
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