Carter
077892645b
fix(GuildManager): add missing toString() on Permission#resolve fns ( #5324 )
2021-03-28 15:27:16 +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
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
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
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
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
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
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
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
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
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
Souji
30808f9f0b
feat(Message): allow custom emoji format for react ( #4895 )
2020-10-17 15:54:22 +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
izexi
a45cc112e5
fix(GuildMemberManager): options.roles on 'prune' ( #4838 )
2020-10-17 15:39:29 +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
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
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
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
Noel
dea48d64a5
chore(Deps): upgrade deps ( #4701 )
2020-08-14 21:46:23 +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
Carter
290938bf80
feat: bypass cache check with forceFetch param ( #4592 )
2020-08-12 21:23:04 +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
49ad279c52
refactor(GuildMemberManager): use data instead of query ( #4370 )
2020-08-11 23:01:02 +02:00
Sugden
c5b6c4da43
fix: correctly import VoiceState ( #4616 )
2020-08-11 22:59:03 +02:00
Arthur
5b716c5b0c
docs(ReactionManager): clarify cache Collection keys type ( #4683 )
2020-08-11 20:54:14 +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
Sugden
88a62d5fea
docs(GuildManager): resolve returns a GuildChannel ( #4333 )
2020-06-04 12:52:43 +02:00
SpaceEEC
407bc77d34
fix: in/de-crement max listener for client events ( #4168 )
2020-05-07 23:39:23 +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
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
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
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
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
Silver Shadow
3c653aafe8
docs(GuildMemberResolvable): an member -> a member ( #3909 )
...
an member -> a member
2020-03-08 16:00:43 +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
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
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
Sugden
91a025caaa
feat: GuildEmoji & Invite to GuildResolvable ( #3637 )
...
* Add GuildEmoji to GuildResolvable
* Add GuildEmoji to GuildResolvable
* Add Invite to GuildResolvable
* Add Invite to GuildResolvable
* oops
* oops x2
* Add Guild#fetchBan and an error for not resolving the ID
* typings
* Revert "Add Guild#fetchBan and an error for not resolving the ID"
This reverts commit a4d0ed16e7 .
* Revert "typings"
This reverts commit 5a54e88785 .
* fix jsdoc
* add trailing comma
2020-02-24 18:27:34 +01:00