Ben
13dd82d7fa
fix: check if member has admininistrator on moderatable (v13) ( #7578 )
2022-03-02 10:38:04 +01:00
Shubham Parihar
baacd6ba69
feat(GuildMember): add method to check timeout ( #7146 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-12-29 10:52:15 +01:00
Antonio Román
3c62bd2d47
refactor: import timers, process, and Buffer from node: ( #7157 )
...
Co-authored-by: muchnameless <12682826+muchnameless@users.noreply.github.com >
Co-authored-by: Almeida <almeidx@pm.me >
2021-12-28 10:15:24 +01:00
Jiralite
aa7c1b2081
feat(GuildMember): Add timeouts ( #7104 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Tiemen <ThaTiemsz@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-12-22 17:54:44 +01:00
Jiralite
2ed02f7fc7
refactor(UserManager): Move methods to the manager ( #7087 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-12-22 14:25:52 +01:00
Antonio Román
d43f68488e
docs: deprecate .deleted getters ( #7107 )
2021-12-14 19:34:27 +01:00
Antonio Román
b0937502d3
refactor: make Structure#deleted a getter to a WeakSet ( #7074 )
2021-12-08 10:47:54 +01:00
Jiralite
c44ea50157
docs: Typos, consistency and grammar fixes ( #6811 )
2021-10-13 12:20:44 +02:00
ckohen
b1656bfb4f
fix(GuildMember): more explicit partial check ( #6760 )
2021-10-07 18:28:32 +02:00
SpaceEEC
34b2ad0d8e
docs: undocument private constructors ( #6732 )
2021-10-03 15:02:11 +02:00
Rodry
dfd7b403a9
feat(GuildMember): add guild avatars ( #5696 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com >
Co-authored-by: GoldenAngel <50855202+GoldenAngel2@users.noreply.github.com >
2021-09-28 18:53:37 +02:00
Jiralite
24931d713b
refactor(VoiceState): Change kick to disconnect ( #6251 )
2021-07-31 21:04:10 +01:00
Jiralite
65ae06429d
refactor: Strengthen channel typings in appropriate places ( #6232 )
2021-07-31 09:52:41 +01:00
Advaith
366f3c910a
feat: make Instance#fetch force true by default, and fix force parameter ( #6116 )
...
Co-authored-by: Almeida <almeidx@pm.me >
2021-07-17 12:25:23 +01:00
DTrombett
d6c43a50bd
types(Partial): add partial reactions ( #6066 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-07-09 12:25:59 +01:00
1Computer1
9cd5e7ed61
refactor(Managers): rename add to _add ( #6060 )
2021-07-08 11:34:45 +01:00
SpaceEEC
afbd5db404
refactor(Presences): remove from User, nullable on GuildMember ( #6055 )
...
as well as on Client#presenceUpdate
2021-07-05 19:53:00 +01:00
Antonio Román
1a27f57950
refactor: remove lastMessage properties from User and GuildMember ( #6046 )
2021-07-05 13:11:13 +01:00
Antonio Román
a7c6678c72
refactor: change xID to xId ( #6036 )
...
* refactor: change `xID` to `xId`
* Update src/managers/MessageManager.js
Co-authored-by: Noel <buechler.noel@outlook.com >
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-07-04 19:54:27 +01:00
1Computer1
ab0b3b9a07
fix(Structures): remove Structures ( #6027 )
2021-07-04 12:26:35 +01:00
Sugden
1e8f01253e
refactor: new node features ( #5132 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-06-30 21:40:33 +01:00
ckohen
bbc48fdad6
chore(Threads): general fixup and catch up on features ( #5959 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-06-29 18:58:51 +01:00
Rodry
e0efcc6ab0
docs(*): add links to Discord's API objects & data ( #5862 )
2021-06-24 09:55:44 +01:00
Shubham Parihar
1ac9a2eb5b
refactor(*): make typedefs for all options params ( #5785 )
...
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-06-13 19:32:54 +01:00
Antonio Román
fdef940127
refactor: remove all voice code ( #5818 )
...
* refactor: remove all voice code
* refactor: remove even more remnants
2021-06-11 23:21:34 +01:00
ckohen
0b179c87f1
cleanup(Client): guard emitting GMU and PU on user updates ( #5655 )
2021-05-29 15:28:41 +01:00
monbrey
2e2464bf07
feat(GuildMemberManager): extend API coverage ( #4872 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-05-11 22:23:42 +02:00
Shubham Parihar
fa5a37e51a
fix(Resolvables): valid resolvables throw error when uncached ( #5495 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-04-15 00:32:08 +02:00
Sugden
aff3625d4f
fix(GuildMember): correctly check for premium_since ( #5312 )
2021-04-15 00:30:45 +02:00
Shubham Parihar
dedf43288e
docs(BanOptions): make days description more clear ( #5327 )
2021-03-29 05:52:41 +02:00
Souji
62ba2499e0
docs(GuildMember): document owner override in permissions getter ( #5320 )
2021-03-28 15:27:32 +02: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
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
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
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
Sugden
7db6978012
fix(GuildMember): properly check permissions for hasPermissions ( #4677 )
2020-10-17 15:40:23 +02:00
Sugden
6aab9c3d64
fix: correctly import extendable classes ( #4744 )
2020-08-28 14:19:20 +02:00
Sugden
980243f2d5
fix(Partials): correctly set properties as nullable ( #4636 )
2020-08-12 21:26:59 +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
Souvik
2adb5815bf
fix: set #nickname to null as the default value ( #4641 )
2020-08-11 20:58:52 +02:00
Souji
2d67fbb24c
docs: clarify which checks GuildMember#manageable does ( #3870 )
2020-03-01 15:11:06 +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
BorgerKing
bbdbc4cfa7
feat: remove datastores and implement Managers ( #3696 )
...
* Initial commit: add 5 initial managers
- Base manager
- GuildChannelManager
- MessageManager
- PresenceManager
- Reaction Manager
- Added LimitedCollection
* Add GuildEmojiManager, various fixes
* Modify some managers and add guildmembermanager
* Initial integration
* Delete old stores
* Integration part two, removed LRUCollection
- Most of the integration has been finished
- TODO typings
- Removed LRUCollection, needless sweeping
* Typings + stuff i somehow missed in ChannelManager
* LimitedCollection typings/ final changes
* Various jsdoc and syntactical fixes, Removed Util.mixin()
* tslint fix
* Grammatical and logical changes
* Delete temporary file placed by mistake
* Grammatical changes
* Add missing type
* Update jsdoc examples
* fix: ChannelManager#remove should call cache#delete not cache#remove
* fix recursive require
* Fix missed cache in util
* fix: more missed cache
* Remove accidental _fetchMany change from #3645
* fix: use .cache.delete() over .remove()
* fix: missing cache in ReactionCollector
* fix: missed cache in client
* fix: members is a collection not a manager
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* fix: various docs and cache fixes
* fix: missed cache
* fix: missing _roles
* Final testing and debugging
* LimitedCollection: return the Collection instead of undefined on .set
* Add cache to BaseManager in typings
* Commit fixes i forgot to stage yesterday
* Update invite events
* Account for new commit
* fix: MessageReactionRemoveAll should call .cache.clear()
* fix: add .cache at various places, correct return type
* docs: remove mentions of 'store'
* Add extra documented properties to typings
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-02-11 20:21:07 +01:00
Souji
3f039016af
fix(GuildMember): manageable - let owner override ( #3765 )
...
* if the bot is owner of the guild the target is managebale
* even though both roles are on the same position
2020-02-07 18:27:05 +01:00
izexi
c87758086b
feat: add support for premium guilds ( #3316 )
...
* add premiumTier and premiumSubscriptionCount
* add premiumSinceTimestamp and premiumSince
* add premium message types
* typings
* add GuildEmoji#available
* fix doc description
2019-06-05 21:34:33 +02:00
izexi
3f1232ebf3
feat: throw custom error for uncached Guild#me ( #3271 )
...
* handle cases where Guild#me is uncached
* fix id prop
* remove unnecessary checks
* space's requested changes
2019-05-25 13:50:32 +02:00
SpaceEEC
3ad16fa351
fix(GuildMember): do not create a channel key when editing
...
This is to not break GuildMember#setNickname for the current user
2019-05-18 14:08:12 +02:00
Amish Shah
e64773e21b
Add ability to kick members from VoiceChannels and remove duplicated methods ( #3242 )
...
* feat(voice): kick members from voice channels
* fix(VoiceState): improve stability in checking for client user
* feat(VoiceState): add setChannel for moving/kicking members
* update typings
* remove duplicated methods across GuildMember and VoiceState
member.setDeaf => member.voice.setDeaf
member.setMute => member.voice.setMute
member.setVoiceChannel => member.voice.setChannel
2019-05-04 16:46:42 +01:00
Vlad Frangu
75cd260808
src: Don't use the GuildMemberRoleStore to patch the GuildMember _roles ( #3226 )
...
* src: Don't use the GuildMemberRoleStore for patching GuildMember#_roles
* src: Remove usage of _patch from the store
* src: Finish up clone changes
2019-04-23 19:44:02 +01:00