Rodry
d433fe8a08
fix: channel type check in actions ( #6086 )
2021-07-10 21:51:32 +01:00
SpaceEEC
f72ce7c136
fix(GuildChannel): clone its PermissionOverwriteManager too ( #6083 )
2021-07-10 13:15:20 +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
ckohen
755c180659
feat: allow channels from uncached guilds to be returned from fetch ( #6034 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-07-06 13:04:26 +01:00
DraftMan
9e08b02df2
feat(Managers): ✨ Add GuildInviteManager ( #5889 )
...
Co-authored-by: iShibi <shubhamparihar391@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: SpaceEEC <SpaceEEC@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: iCrawl <icrawltogo@gmail.com >
2021-07-04 22:53: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
Shubham Parihar
d58f0d243c
fix(GuildChannel): use map method on cache not its manager ( #6032 )
2021-07-04 12:25:28 +01:00
SkyFlags
7e3001191c
fix(GuildChannel): Add missing 'cache' property ( #6019 )
2021-07-03 19:59:52 +01:00
Ishmaam Khan
e7ad2fe207
feat: PermissionOverwriteManager ( #5318 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-07-03 13:24:38 +01:00
Rodry
4adfc45b5a
docs(CreateInviteOptions): fix TargetType link ( #6017 )
2021-07-03 13:22: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
7346621d15
feat: api v9 and threads ( #5570 )
...
Co-authored-by: Noel <icrawltogo@gmail.com >
Co-authored-by: Amish Shah <dev@shah.gg >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: SynthGhost <60333233+synthghost@users.noreply.github.com >
Co-authored-by: SpaceEEC <24881032+SpaceEEC@users.noreply.github.com >
Co-authored-by: Elliot <elliot@maisl.fr >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-06-24 20:48:29 +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
Matt (IPv4) Cowley
c5859337b6
fix(GuildChannel): don't force parentID/permissionOverwrites to empty on create ( #5823 )
2021-06-12 12:10:01 +01:00
Matt (IPv4) Cowley
6df36232a0
fix(GuildChannel): improve empty overwrite handling for permissionsLocked ( #5821 )
2021-06-11 23:45:05 +01:00
SpaceEEC
19d0405aa5
refactor(GuildChannel): use Permissions.defaultBit over 0n ( #5822 )
2021-06-11 23:21:51 +01:00
Mark Fisher
41673b7382
fix(GuildChannel): clone errors when options.name isn't provided ( #5804 )
2021-06-11 11:04:45 +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
SpaceEEC
2f5424bdac
fix(GuildChannel): spread clone options to avoid infinite recursion ( #5800 )
2021-06-10 17:07:12 +01:00
Souji
f831872125
feat(GuildChannel): createInvite target options ( #5514 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Advaith <advaithj1@gmail.com >
2021-05-11 22:25:09 +02:00
Shubham Parihar
58763b0e91
feat(GuildChannel): make createOverwrite and updateOverwrite not dependent on cache ( #5489 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-05-11 22:23:09 +02:00
Ishmaam Khan
d455cb65a6
feat(GuildChannel#clone): support for position property ( #5236 )
2021-05-10 12:41:14 +02:00
Bread
b710a43232
fix(GuildChannel): check for community required channels in GuildChannel#deletable ( #5170 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-04-15 00:31:08 +02:00
Amish Shah
eec7cf7634
feat: stage channels ( #5456 )
...
* feat: add stage channel type
* feat: initialise stage channel structure
* feat: add STAGE_MODERATOR permissions bitfield
* fix: typo in permissions
* fix(Channel): type selection logic
* feat: add rtcRegion to StageChannel and VoiceChannel
* feat: rtc region editing for stage and voice channels
* feat: stage channel userLimit
* feat: add stage channels to exports
* feat: add computed properties to stage channel
* feat(VoiceState): include stage channel in docs
* feat: allow ability to join stage channels
* feat(StageChannel): join and leave methods
* docs: add StageChannel link in GuildChannel docs
* feat(VoiceState): suppress and requestToSpeakTimestamp
* feat(StageChannel): setRequestToSpeak
* refactor(StageChannel): update setRequestToSpeak
* feat(VoiceState): add moveToSpeakers and moveToAudience
* feat(VoiceState): add methods to move in/out of speakers
* feat(VoiceState): add stage channel sanity checks
* feat(Permissions): add REQUEST_TO_SPEAK
* feat(VoiceState): simpler methods
* docs(VoiceState): add documentation for new methods
* refactor: remove unused error message
* chore: remove debug statements
* chore: revert changes to package-lock.json
* docs(VoiceState): clarify suppress
* docs(VoiceState): add missing @type param
* feat(StageChannel): remove nsfw property
* fix(VoiceState): check permissions in channel
Co-authored-by: Advaith <advaithj1@gmail.com >
* fix(VoiceState): instantiate error with new
Co-authored-by: BannerBomb <BannerBomb55@gmail.com >
* refactor(VoiceState): more readable API route builder
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* style(VoiceState): fix lint errors
* docs(VoiceState): add example usage for new methods
* docs: setRTCRegion examples
* chore: update typings
* fix(VoiceState): calculate permissions for self
* refactor(VoiceState): tidy up implementation
* Update src/structures/VoiceState.js
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
* refactor: vaporox's suggestions
* style(VoiceState): fix linter errors
* chore: update typings
* chore: remove unused error message
* refactor(VoiceState): use optional chaining
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* chore: move getters below constructor in typings
* refactor(StageChannel): optional chaining
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* style(VoiceState): fix lint errors
* docs: fix incorrect types
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* Update src/structures/VoiceChannel.js
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* Update src/structures/VoiceChannel.js
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* refactor(VoiceState): use optional chaining
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* refactor(StageChannel): remove permission override check in joinable
* refactor: make ChannelTypes a proper enum
* Use createEnum
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* chore: remove unused code from Constants
* refactor(StageChannel): remove unnecessary getters
* chore: update typings
* refactor: introduce BaseGuildVoiceChannel class
* refactor(VoiceChannel): reduce code duplication
* feat: export BaseGuildVoiceChannel
* chore: update typings
* docs: fix typos
* refactor: move setRTCRegion to BaseGuildVoiceChannel
* feat(VoiceState): remove permission checks
* chore: update typings
* Apply suggestions from code review
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
* chore: update esm exports and typings
* Update src/structures/VoiceState.js
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Advaith <advaithj1@gmail.com >
Co-authored-by: BannerBomb <BannerBomb55@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-04-14 13:35:55 +01:00
Souji
e848d25c86
docs(GuildChannel): #members add cached spec, include voice ( #5385 )
2021-04-03 20:01:54 +02:00
Souji
e7c4f3672e
fix(GuildChannel): regression on default channel type ( #5251 )
2021-03-28 15:24:41 +02:00
BannerBomb
8411b9e142
fix(Guild/GuildChannel): methods reason arg usage ( #5419 )
2021-03-28 15:23:32 +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
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
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
anandre
77d42373a1
docs: permission overwrite methods descriptions ( #5079 )
...
* Change permission overwrite methods descriptions
The methods `GuildChannel#updateOverwrite` and `#createOverwrite` had some awkward wording in the description: `. (...)` does not look good. This PR cleans up the descriptions to be one sentence that's clearer in meaning. There's also changes to make `permission overwrite/s` consistent - some lines had `permissions overwrite/s`.
* Update src/structures/GuildChannel.js
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
* Update src/structures/GuildChannel.js
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* Update src/structures/GuildChannel.js
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-12-12 14:50:04 +01:00
Sugden
250c3ae3c1
fix(GuildChannel): parentID shouldn't be set in the constructor ( #4919 )
2020-10-19 22:24:18 +02: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
Adrian Paschkowski
6e4308bfde
fix(GuildChannel): Default parentID to null ( #4881 )
2020-10-17 15:36:16 +02:00
yuta0801
b9ad51049e
fix(GuildChannel): make setTopic argument nullable ( #4875 )
2020-10-17 15:32:32 +02:00
Sugden
b43e742503
docs(GuildChannel): ThisType should be this ( #4793 )
2020-09-05 10:20:32 +02:00
Souji
599cde3627
fix(GuildChannel): make lockPermissions use parent overwrites ( #4627 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2020-08-12 09:23:31 +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
SpaceEEC
b441469044
revert: channel unions ( #3918 69d69f2) ( #3978 )
...
* revert: channel unions (#3918 69d69f25b9 )
* fix: correct tslint:disable
* revert: keep the GuildChannel#setParent change
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-03-27 20:58:11 +01:00
Ryan Munro
69d69f25b9
feat(Types): support type-guarding using Channel#type string li… ( #3918 )
...
* feat(types): union type for Channels
* feat(Types): union for TextBasedChannelTypes
* fix(Types): use new union types in return values
* Update typings/index.d.ts
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* Update typings/index.d.ts
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* fix(Types): various minor improvements for Partials
* fix(GuildChannel): partial should return false
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-03-14 16:50:43 +01:00
Souji
61ef46ff30
fix: adapt #manageable to check for CONNECT for VoiceChannel ( #3885 )
2020-03-06 07:00:49 +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
Sugden
e4f567c65e
refactor(GuildChannel): change overwritePermisions to accept an… ( #3853 )
...
* refactor(GuildChannel): change overwritePermisions to no longer accept an object
* fix: check for instanceof Collection too
2020-02-29 14:19:21 +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
Crawl
3a0470b45c
chore(deps): update deps and fix lint ( #3833 )
2020-02-24 23:14:31 +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
Jiralite
cc466fa4b9
docs: NewsChannel and StoreChannel ( #3557 )
...
* Added news & store
* Update GuildChannel.js
* Added in News and Store
2019-11-04 11:35:14 +01:00
anandre
55447fd4da
docs(TextChanne): specify unit of rateLimitPerUser ( #3272 )
...
* Update TextChannel.js
Update `setRateLimitPerUser` description to specify the `number` is in seconds, per the Discord docs
* Update TextChannel.js
Add unit to the rateLimitPerUser property
* Update GuildChannel.js
2019-05-15 22:33:27 +02:00