monbrey
5be471b47d
refactor(Channels): fix incorrectly shared properties ( #6262 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2021-08-04 21:55:31 +01:00
Rodry
7e0618f17a
fix(GuildChannel): setParent not working ( #6276 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2021-08-02 19:38:30 +01:00
Sugden
e2e4f6518b
refactor(*): use async functions ( #6210 )
2021-08-02 00:47:43 +01:00
Kevin
7c540764f0
refactor(GuildChannel): use filter method for #members ( #6253 )
...
Co-authored-by: ckohen <chaikohen@gmail.com >
2021-08-01 16:58:06 +01:00
1Computer1
00bae4fe6b
refactor: remove extended collection ( #6246 )
...
Co-authored-by: iCrawl <buechler.noel@outlook.com >
2021-07-31 12:08:59 +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
eeehh
c40c0f934a
fix(GuildChannel): only fetch invites for the specific channel ( #6132 )
2021-07-18 19:16:48 +01:00
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