Jaw0r3k
5dd49339ea
chore: run prettier
2023-11-05 19:39:14 +02:00
Jaw0r3k
a222e537c1
feat(Role): add flags ( #9694 )
...
Co-authored-by: n1ck_pro <59617443+N1ckPro@users.noreply.github.com >
2023-11-05 19:39:14 +02:00
Vlad Frangu
56b481b3e0
fix(Role): calculate position correctly when rawPositions are equal ( #9872 )
2023-10-09 07:22:55 +00:00
Jaw0r3k
90ca02880a
perf: linear speed position getters ( #9528 )
...
* perf(Channel): linear speed position getter (#9497 )
Co-authored-by: kyra <kyradiscord@gmail.com >
* perf(Role): linear speed position getter
---------
Co-authored-by: kyra <kyradiscord@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-09-06 10:24:19 +00:00
Ben
71161518ca
feat(roleTagData): v13 add guildConnections ( #9391 )
...
* feat(roleTagData): add guildConnections
* feat(roleTagData): add guildConnections
2023-04-15 19:44:17 +00:00
Jiralite
a51ddb2b06
chore: Miscellaneous fixes ( #9271 )
...
* fix(Message#editable): update editable check in threads locked (#9216 )
* fix(Message#editable): update editable check in threads locked
* fix(Message#editable): add check in archived threads
* fix: check manage threads permission only if thread is locked
* fix: adding a full stop at the end of a sentence
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
---------
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
* fix(ThreadManager): Respect `cache` and `force` in fetching (#9239 )
* fix(ThreadManager): Respect `cache` and `force` in fetching
* refactor: remove defaults
These are already defaulted down the line.
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* refactor(FetchThreadsOptions): Remove `active` (#9241 )
* refactor(FetchThreadsOptions): remove `active`
* docs(FetchThreadsOptions): update description
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* docs: add more examples (#9252 )
* docs: add more examples
* fix: fix grammar and syntax
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com >
* chore: fine-tune examples
* chore: replace double quotes with singles
* fix: remove redundant example tag
* fix: fix timeout logging
* Update packages/discord.js/src/structures/GuildMember.js
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
---------
Co-authored-by: Jaw0r3k <jaworekwiadomosci@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* docs(Role): Fix example for `comparePositionTo()`
* docs(FetchArchivedThreadOptions): `before` respects `archive_timestamp`, not creation timestamp (#9240 )
docs(FetchArchivedThreadOptions): correct `before` description
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* fix(snowflake): snowflakes length (#9144 )
* fix(snowflake): fix snowflakes length
* fix(snowflake): fix length
* fix(Message): `bulkDeletable` permissions should be retrieved later for DMs (#9146 )
* fix(Message): permissions check should be done later
the getter will error if used on a message originating from a DM
* refactor: remove unessercary chaining
* fix: invalid backport
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
* docs(Role): fix comparison example
* fix(ClientUser): no mutation on edit
* refactor: call bans.create directly
* fix(AutocompleteInteraction): Send `name_localizations` correctly (#9238 )
fix(AutocompleteInteraction): send locale correctly
Co-authored-by: space <spaceeec@yahoo.com >
* fix: resolving string bitfield (#9262 )
fix: resolving bitfield
Co-authored-by: space <spaceeec@yahoo.com >
* fix: Keep symbols in actions manager (#9293 )
fix: keep symbols in actions manager
* fix: add support for new guild feature `GUILD_WEB_PAGE_VANITY_URL` (#9219 )
Co-authored-by: space <spaceeec@yahoo.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* docs: differ `User#send` (#9251 )
* docs: differate user#send
* chore: format
* chore: remove some examples
* docs: add GuildMember#send example
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* docs: describe private properties (#8879 )
* feat: describe private properties
* Update packages/discord.js/src/structures/GuildMember.js
Co-authored-by: MrMythicalYT <91077061+MrMythicalYT@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: MrMythicalYT <91077061+MrMythicalYT@users.noreply.github.com >
* Apply suggestions from code review
---------
Co-authored-by: MrMythicalYT <91077061+MrMythicalYT@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
---------
Co-authored-by: Erwan <erwan977@gmail.com >
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Tetie <tjvssr@gmail.com >
Co-authored-by: DraftMan <contact@draftman.fr >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Jaw0r3k <jaw0r3k.g@gmail.com >
Co-authored-by: space <spaceeec@yahoo.com >
Co-authored-by: pkdev08 <54294685+pkdev08@users.noreply.github.com >
Co-authored-by: MrMythicalYT <91077061+MrMythicalYT@users.noreply.github.com >
2023-04-01 23:46:23 +00:00
Jiralite
0afa405f5a
feat: role subscriptions ( #9040 )
...
* feat: add role subscriptions (#8915 )
* feat: add role subscriptions
* docs: casing
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: version 13 specific things
---------
Co-authored-by: Almeida <almeidx@pm.me >
2023-02-17 23:12:47 +01:00
Rodry
9f09702854
feat: add methods to managers for v13 ( #7611 )
2022-04-09 11:35:17 +02: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
Antonio Román
d43f68488e
docs: deprecate .deleted getters ( #7107 )
2021-12-14 19:34:27 +01:00
Jiralite
1e00fc2001
refactor(RoleManager): Move some methods over from Role ( #7096 )
2021-12-14 19:04:07 +01:00
Antonio Román
b0937502d3
refactor: make Structure#deleted a getter to a WeakSet ( #7074 )
2021-12-08 10:47:54 +01:00
Antonio Román
8b200c0fee
feat(SnowflakeUtil): add timestampFrom ( #7058 )
2021-12-06 08:56:29 +01:00
ckohen
7513b4528c
feat(Permissions): add checkAdmin to permission overwrite checks ( #6847 )
2021-10-17 00:27:52 +02:00
Jiralite
c44ea50157
docs: Typos, consistency and grammar fixes ( #6811 )
2021-10-13 12:20:44 +02:00
Shubham Parihar
872e7a59b2
refactor(Role): move initialization of delete prop out of _patch ( #6776 )
2021-10-07 23:17:47 +02:00
Shubham Parihar
e31c5ca1a8
fix(Role): check for presence of icon and unicode_emoji before patching ( #6780 )
2021-10-07 18:24:33 +02:00
Shubham Parihar
7129965423
feat: add support for role icons ( #6633 )
2021-10-03 18:55:29 +02:00
SpaceEEC
34b2ad0d8e
docs: undocument private constructors ( #6732 )
2021-10-03 15:02:11 +02:00
Almeida
9e421f6ccf
fix(Role): toJSON() throwing due to permission bigints ( #6724 )
2021-10-03 15:01:24 +02:00
Rodry
9eb9591473
fix: don't patch set data with undefined ( #6694 )
2021-10-03 14:59:52 +02:00
Rodry
caa3b60c30
feat(Integration): add missing props and fix docs/types ( #6623 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2021-09-23 13:47:01 +02:00
Rodry
8add4b08f5
feat: default values for setX boolean methods ( #6619 )
2021-09-15 00:25:50 +02:00
Sugden
e2e4f6518b
refactor(*): use async functions ( #6210 )
2021-08-02 00:47:43 +01:00
Jiralite
65ae06429d
refactor: Strengthen channel typings in appropriate places ( #6232 )
2021-07-31 09:52:41 +01:00
1Computer1
bf221f2bef
fix: array/keyArray removed ( #6245 )
2021-07-31 09:45:33 +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
Antonio Román
1e73c25fbf
feat(RoleManager): added edit method, alias Role#edit ( #5983 )
...
Co-authored-by: monbrey <rsm999@uowmail.edu.au >
2021-07-01 22:32:03 +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
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
Jan
164ddf668f
refactor: rename Snowflake to SnowflakeUtil ( #5502 )
2021-04-15 00:37:54 +02:00
Jan
d744e51c1b
fix(Role): pass Permissions class, not the bitfield ( #5321 )
2021-02-22 01:03:21 +01: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
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
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
anandre
8c8883ef26
Remove Guild#member ( #4890 )
2020-11-22 19:21:01 +01:00
anandre
222137dcd1
docs(Role): Update various Role method descriptions ( #4798 )
...
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com >
2020-09-08 09:58:11 +02: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
SpaceEEC
8e0f525d91
fix(Role): throw TypeError in comparePositionTo ( #3466 )
2019-09-10 15:44:49 +02:00
SpaceEEC
ca43919642
docs: document constructors of extendible structures ( #3160 )
...
* docs: document constructors of extendible structures
* docs(ClientPresence): document default value for data parameter
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* docs(Presence): document default value for data parameter
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* docs(DMChannel): capitalize DM in the constructor doc
2019-04-14 14:50:55 +02:00
anandre
266ac1c659
docs(Role): fix setPosition's reason type ( #3198 )
2019-04-10 21:40:22 +02:00
SpaceEEC
579283dfe9
fix(Role): proper undefined check for data.permission when editing
2019-03-02 21:58:40 +01:00
Gus Caplan
42505b78c1
chore: add strict mode ( #2974 )
2018-12-03 15:19:10 -06:00
Isabella
928fb30040
fix: actually fix Readonly typos
2018-08-21 14:25:30 -05:00
bdistin
c62f01f0e4
refactor(BitField): base class for Permissions, ActivityFlags, Speaking ( #2765 )
...
* abstract BitField from Permissions
* reduce useless code, improve docs
* add a ReadOnly identifier to the return type of Bitfield#freeze()
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-1.html#partial-readonly-record-and-pick
* fix the RangeError
* update docs, convert Speaking and ActivityFlags to bitfields
* fix some docs
* Fix Speaking BitField oops
* docs for oops
* more incorrect docs
* Fix incorrectly named property
* add new classes to index
* fix missing @extends docs
* default bitfield resolve to 0, and cleanup defaulting everywhere
Also removes GuildMember#missiongPermissions() alias that had incorrect behavior
* Breaking: Rename Overwrite allowed and denied to allow and deny
To be consistent with the api's naming
* fix setSpeaking usage to bitfields instead of booleans
* fix speaking bug in playChunk
* docs: Updated typings
* fix: BitFieldResolvable should use RecursiveArray
* bugfix/requested change
* typings: Cleanup (#2 )
* typings: Fix BitField#{toArray,@@iterator} output type
* typings: correct PermissionOverwrites property names and nitpicks
2018-08-21 11:56:41 +02:00
Braxton
f0c4d0e834
feat: Add "deleted" property to multiple structures. ( #2556 )
...
* Add "deleted" property to "Message" structure
* Add "deleted" property to Multiple structures
Structures edited:
- Channel
- Emoji
- Guild
- Guild Member
- Role
* Update "deletable" getter
* Fix ESLint "no-trailing-spaces" errors
* Requested Change: Mark w/ bulkDelete
2018-05-28 17:42:51 -05:00
Lewdcario
ec9211c3ce
docs: inconsistencies
2018-04-18 20:21:17 -05:00
Frangu Vlad
f985b6bef3
fix(Role): allow edit method to null the color ( #2447 )
2018-04-09 09:54:40 +02:00