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
8b200c0fee
feat(SnowflakeUtil): add timestampFrom ( #7058 )
2021-12-06 08:56:29 +01:00
Almeida
672baa49e6
refactor: fix typos ( #6852 )
2021-10-24 21:34:37 +02:00
Rodry
0d599a1a76
fix(User): don't generate the banner URL when not cached ( #6783 )
2021-10-08 12:36:14 +02:00
Rodry
ba93e85d0d
refactor(User): set accentColor and banner to undefined when not yet received ( #6721 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-10-05 00:16:59 +02:00
Rodry
00e1e2673b
fix(User): compare flags in #equals ( #6750 )
2021-10-04 09:38:28 +02:00
SpaceEEC
34b2ad0d8e
docs: undocument private constructors ( #6732 )
2021-10-03 15:02:11 +02:00
Rodry
9eb9591473
fix: don't patch set data with undefined ( #6694 )
2021-10-03 14:59:52 +02:00
Rodry
00bd92a451
refactor: ES2021 features ( #6540 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Voltrex <mohammadkeyvanzade94@gmail.com >
2021-09-03 12:58:01 +01:00
Advaith
839c6da03d
feat(User): banners and accent colors ( #6117 )
...
* feat(User): support banners
don't mind it for now, just trying
* feat(User): support banners
* fix(Constants): declare dynamic
* fix(User): eslint
* typings: update User typings
* fix(User): add banner to equals and json bannerURL
* typings: missing dynamic
* refactor: xID to xId
* types: re-add typings
* feat: add banner color and fetch note
* feat: switch to accent color (swap hex and dec))
* Update src/structures/User.js
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
* Update typings/index.d.ts
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Koyamie <koyamie1@gmail.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com >
2021-08-24 21:32:18 +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
Antonio Román
576eee8de2
refactor: remove typing caching ( #6114 )
...
Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com >
2021-07-16 12:20:05 +01:00
Rodry
6301728d35
refactor(Channel): change channel types to UPPER_CASE ( #6035 )
2021-07-08 21:32:19 +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
Rodry
e44ae96100
fix(User): fix bot and system properties being incorrect in some cases ( #5923 )
2021-06-27 12:46:24 +01:00
Rodry
e0efcc6ab0
docs(*): add links to Discord's API objects & data ( #5862 )
2021-06-24 09:55:44 +01:00
SpaceEEC
097c7b9cdd
fix: don't patch missing properties from partial payloads ( #5796 )
...
* fix: don't patch missing properties from partial payloads
* fix(GuildChannel): initialize permissionOverwrites in the constructor
* refactor(GuildChannel): remove redundant if
2021-06-10 17:42:45 +01:00
Jan
164ddf668f
refactor: rename Snowflake to SnowflakeUtil ( #5502 )
2021-04-15 00:37:54 +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
Carter
09d07553ab
docs(User): fix typos in jsdoc ( #5060 )
2020-12-06 18:03:39 +01:00
Advaith
6f3076325e
remove User#locale ( #4932 )
2020-11-22 19:39:06 +01:00
SpaceEEC
eaecd0e8b7
fix(User): only assign to bot initially or if info is actually present ( #4990 )
2020-11-20 16:48:05 +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
6aab9c3d64
fix: correctly import extendable classes ( #4744 )
2020-08-28 14:19:20 +02:00
Carter
b6167d8c3b
docs: update jsdoc type for User#bot ( #4716 )
2020-08-17 09:45:57 +02:00
Jan
db512d8f62
fix(User): set User#bot to false if not partial ( #4706 )
...
Co-authored-by: Noel <icrawltogo@gmail.com >
2020-08-15 20:04:32 +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
Jyguy
6fbaf0a036
fix(User): jsdoc for User#flags ( #4094 )
2020-04-18 12:15:30 +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
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
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
Tenpi
8014ddcd1c
feat: dynamic property for ImageURLOptions ( #3530 )
...
* Added dynamic property to ImageURLOptions
* fixes
* order
* typings fix
* made dynamic false by default
* add curly spaces
2020-01-13 14:32:29 +00:00
izexi
6af0da1043
feat(Partials): add DMChannel/MessageReaction#fetch() and PartialTypes.REACTION ( #3474 )
...
* add DMChannel#fetch() & Action#getChannel({recipients})
* ref for MessageReaction partial
* typings
* add PartialTypes.REACTION
* accommodate for fully removed reactions
* fix incorrect wording and typo
* typings: MessageReaction#count is nullable
* typings: mark MessageReaction#partial as readonly
Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com >
* fix(User): fetch dm channel if cached one is partial
* docs: add missing comma
Co-Authored-By: Antonio Román <kyradiscord@gmail.com >
* fix: accomodate for new reactions
* fix: updating existing/new count on _patch
* docs: typo
* for consistency
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2020-01-05 16:45:49 +01:00
izexi
43782839ec
feat: add new MessageFlags.FLAGS & User#system ( #3603 )
...
* feat: add new FLAGS
* feat: add system property
* typings: add User#system & new MessageFlagsStrings
2019-12-15 20:23:06 +01:00
Crawl
321beb73bd
revert: "feat(Partials): add DMChannel/MessageReaction#fetch()… ( #3468 )
...
This reverts commit b0047c424b .
2019-09-10 19:49:56 +02:00
izexi
b0047c424b
feat(Partials): add DMChannel/MessageReaction#fetch() and Parti… ( #3261 )
...
* add DMChannel#fetch() & Action#getChannel({recipients})
* ref for MessageReaction partial
* typings
* add PartialTypes.REACTION
* accommodate for fully removed reactions
* fix incorrect wording and typo
* typings: MessageReaction#count is nullable
* typings: mark MessageReaction#partial as readonly
Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com >
* fix(User): fetch dm channel if cached one is partial
* docs: add missing comma
Co-Authored-By: Antonio Román <kyradiscord@gmail.com >
2019-09-10 16:09:06 +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
SpaceEEC
e62833b5e1
docs: mark getters as @ readonly
2019-03-19 19:59:45 +01:00
bdistin
fe5563e158
refactor(User): avoid invoking dmChannel getter more than once per method ( #3108 )
...
also refactors to async methods
2019-02-24 09:37:10 +01:00
Amish Shah
5c3f5d7048
Partials ( #3070 )
...
* Remove GroupDMChannels
they sparked no joy
* Start partials for message deletion
* MessageUpdate partials
* Add partials as an opt-in client option
* Add fetch() to Message
* Message.author should never be undefined
* Fix channels being the wrong type
* Allow fetching channels
* Refactor and add reaction add partials
* Reaction remove partials
* Check for emoji first
* fix message fetching
janky
* User partials in audit logs
* refactor overwrite code
* guild member partials
* partials as a whitelist
* document GuildMember#fetch
* fix: check whether a structure is a partial, not whether cache is true
* typings: Updated for latest commit (#3075 )
* partials: fix messageUpdate behaviour (now "old" message can be partial)
* partials: add warnings and docs
* partials: add partials to index.yml
* partials: tighten "partial" definitions
* partials: fix embed-only messages counting as partials
2019-02-13 17:39:39 +00:00
Gus Caplan
42505b78c1
chore: add strict mode ( #2974 )
2018-12-03 15:19:10 -06:00
Frangu Vlad
4a24e8c12c
Remove double iteration ( #2773 )
2018-08-19 13:37:00 +02:00
bdistin
0ad7c24aa3
docs(User): fix hydrabolt's tag ( #2747 )
2018-08-14 19:09:10 +02:00