izexi
d62db232e7
feat(Invite): add targetUser(Type) ( #3262 )
...
* add Invite#targetUser(Type)
* incase discord decides to add 0
2019-08-17 20:31:04 +02:00
Gryffon Bellish
ab27dd0218
refactor(TeamMember): remove client from constructor ( #3409 )
...
* Remove client from TeamMember constructor part 1
* Remove client from TeamMember constructor part 2
* update typings
2019-08-17 18:24:16 +02:00
didinele
2df4f227a4
refactor: move Guild#defaultRole to RoleStore#everyone ( #3347 )
...
* remove guild#defaultRole
* add RoleStore#defaultRole
* typings
* fix trailing space
* another one
* Rename it to everyone
2019-08-17 18:02:17 +02:00
bdistin
6d3c55b68c
feat(Collector): allow collectors to be consumed by for-await-of loops ( #3269 )
2019-08-17 17:57:45 +02:00
Carter
7fae6e5bca
typings: switch overloads of RoleStore#fetch ( #3397 )
...
because compu told me to
2019-08-17 17:51:52 +02:00
iCrawl
d14db52158
fix(typings): send overloads
2019-08-04 15:57:39 +02:00
Crawl
5af8cb8e6e
feat: overload for split always returning an array ( #3411 )
...
* feat: overload for split always returning an array
* feat: update Util.splitMessage
2019-07-30 00:25:45 +02:00
Alex
e562564123
docs(Guild): add missing features ( #3406 )
...
* Update Guild.js
* Update Guild.js
* style(Guild): remove trailing space
* typings(Guild): add new features
2019-07-28 15:24:27 +02:00
Kitten King
d8516efa36
docs: fix typos ( #3404 )
2019-07-25 17:18:23 +02:00
MoreThanTom
547bf83100
feat(typings): constants export ( #2915 )
...
* Added typings for Constants export
* Full typing of list Constants
* Fix mistake in Package typing
* Cleanup for requested changes
moved fs import to import cluster
WSEvents using WSEventType to build type
* Satisfy tslint rules
* Update Constants.js
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
2019-07-12 17:02:45 +02:00
bdistin
00c4098bb3
refactor(Util.escapeMarkdown): allow separate escaping and add tests ( #3241 )
...
* wip refactor
* add escapeMarkdown tests
* italics can be done with a single underscore too
* more refined
* fix test name
* unnecessary eslint ignores
* use jest
* make eslint less annoying in this test file
* more testing
* fix lib usage
* more tests and a small fix
2019-07-11 22:08:40 +02:00
Eduardo Londero
f1433a2d97
feat(Collector): add idle time for a Collector to stop itself ( #2942 )
...
* Implement idle feature
* Add typings
* Minimal fixes
* Make everything in Collector and not attached to ReactionCollector
* set this._idletimeout to null when collector ends
* also set this._timeout to null when collector ends
2019-07-11 21:40:12 +02:00
Jisagi
adb082305d
feat(Guild): add banner to edit method and add setBanner method ( #3364 )
...
* add setBanner method to Guild
* typos fixed & typings added
* more typings
* docs(Guild): add banner to GuildEditData
2019-07-11 13:09:43 +02:00
Skillz4Killz
20d7b3de59
docs/typings(VoiceStateStore): document and type the class ( #3294 )
...
* Update index.d.ts
* Update Guild.js
* Update Guild.js
* docs/typings(VoiceStateStore): document and add typings
2019-07-04 16:20:28 +02:00
SpaceEEC
1dd4c041e0
fix(ClientApplication): owner is still nullable
...
Fixes #3358
2019-06-26 20:12:05 +02:00
SpaceEEC
d7b2146c81
refactor(TeamMember): make id a getter
2019-06-25 20:40:15 +02:00
bdistin
a22aabf6a8
feature: teams support ( #3350 )
...
* basic teams support
* export Team & TeamMember
* use typedef
* typings and some fixes
* Update src/structures/TeamMember.js
Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com >
* fix Team#iconURL()
* fix typings and a bug
* fix states start at 1
* team icon hash can be null
* fix owner typings
2019-06-25 20:31:48 +02:00
SpaceEEC
8e1857286d
typings(Guild): add typings for setRolePositions
...
See:
PR: #3317
Commit: 8bc8ffe168
2019-06-05 22:18:01 +02:00
Skillz4Killz
e87e4a6f0e
typings(GuildChannelStore): add CategoryChannel as possible return value ( #3326 )
2019-06-05 21:46:11 +02: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
DeJay
5aa9425040
Removes the trace packet ( #3312 )
...
* Removes the trace packet
* Update src/client/websocket/WebSocketShard.js
Co-Authored-By: Amish Shah <amishshah.2k@gmail.com >
* Update src/client/websocket/WebSocketShard.js
Co-Authored-By: Amish Shah <amishshah.2k@gmail.com >
2019-05-30 19:57:34 +01:00
bdistin
5154850a54
Add Stream permission ( #3309 )
...
* Add Stream permission
* update docs, and DEFAULT
Created a new guild to test DEFAULT
* update typings
2019-05-30 08:26:49 +01:00
Will Nelson
d34b62414b
fix: StreamOptions#volume typings ( #3303 )
2019-05-27 20:56:40 +01:00
Will Nelson
9ca36b8eea
typings(VoiceState): add connection getter ( #3292 )
...
* fix: add connection to voice state typings
* Update typings/index.d.ts
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
2019-05-25 16:18:44 +02:00
SpaceEEC
97f3b6c5eb
typings(Guild): remove voiceConnection, add voice, cleanup rest
...
Fixes #3293
2019-05-24 15:42:09 +02:00
Antonio Román
b3060ea229
typings(Collection): use T in accumulator and initialValue when reducing ( #3284 )
...
This brings some consistency with Array#reduce's typings and to reality.
2019-05-20 20:49:28 +02:00
didinele
97de79bd5e
fix(typings): Guild#member can return null ( #3274 )
...
* fix(typings): Guild#member did not have undefined as a return type
* oops, it can apparently return null
2019-05-16 21:14:45 +02:00
SpaceEEC
8b83e2fdcb
typings(Presence): add missing guild property
2019-05-04 19:05:04 +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
Jacz
692494dc04
feat(VoiceState): self mute/deaf methods ( #3243 )
...
* Implemented setSelfMute/Deaf, done typings, fixed bug in VoiceState with errors.
* Completed requested changes
* return send in sendVoiceStateUpdate so its a promise, update typings
* Updated methods to return a boolean
* Requested changes
* Fix bug
* Update src/structures/VoiceState.js
Co-Authored-By: MrJacz <23615291+MrJacz@users.noreply.github.com >
* fix
2019-05-03 17:11:11 +02:00
Vlad Frangu
a59968f7de
src: add news and store channels, and missing guild props ( #3168 )
...
* src: Implement store and news channels!
* src: Remove code dupe
* src: Add missing guild properties
* docs: Add a small notice that the channel type may also change
* src: Remove re-creation of the MessageStore
* lint: Unused Import
* src: Requested changes for StoreChannels
* typings: Fix typings
* src: Moar guild updates
* src: Set maximumPresence to the data prop, the already existent one, or default to 5000
* typings: afkChannel is a VC
I keep confusing them, ffs
Co-Authored-By: vladfrangu <kingdgrizzle@gmail.com >
* docs: Document that maximumMembers and maximumPresences may be inaccurate before fetching
* src Appels requested changes
2019-05-03 17:08:07 +02:00
bdistin
2666a9d6db
feat(MessageStore): add remove() ( #2468 )
...
* MessageStore#remove()
* typings
2019-04-29 17:53:32 +01:00
bdistin
9b0f4b298d
feature: public raw events ( #3159 )
...
* add a public alternative to the private raw event
while retaining raw for use in debugging privately
* only emit dispatch packets
* requested changes
TIL, that's neat
* fix padding
* requested changes
* Update WebSocketManager.js
2019-04-29 17:37:57 +01:00
izexi
870528ed33
feat(VoiceChannel): add editable ( #3173 )
...
* add VoiceChannel#editable
* replace unnecessary super with this
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
2019-04-29 17:35:48 +01:00
izexi
7b531648e0
feat(GuildMemberStore) add options.count to prune ( #3189 )
...
* add GuildMemberStore#prune(options.count)
* typings: proper typings for null return value
2019-04-23 21:59:52 +02:00
didinele
3f6d08a499
fix(typings): Collection#find & findKey can return undefined ( #3228 )
...
* fix(typings): [Collection#find](https://github.com/didinele/discord.js/blob/master/src/util/Collection.js#L172 ) can also return undefined
* same thing for findKey
2019-04-23 18:47:42 +02:00
izexi
c4b79571ba
feat(Invite): add deletable getter ( #3203 )
...
* add Invite#deletable
* fix ci
* reee
* since guild is nullable
* accommodate for external invites
* nit(Invite): use guild instead of channel.guild
2019-04-22 09:24:32 +02:00
Antonio Román
01c708bc75
feat(Sharding): change waitForReady to spawnTimeout ( #3080 )
...
This means that you'll not only be able to choose between having a timeout or not, but also to set the amount of milliseconds as you wish.
2019-04-21 13:34:09 +02:00
Vlad Frangu
1514df0f87
fix: emit resume event, silent disconnects, error event param ( #3192 )
...
* src: Fix shardResumed event not being emitted
* docs: Document Client#error again
* src: Fix onError due to incorrect typings
* src: handle onError properly for both uws and ws
* src: Try to fix silent disconnects when using uWs
* fix(WebSocketShard): uws emits plain objects, not errors
Emitting line of code: 39aa429f94/src/uws.js (L80-L83)
Listener attaching is here: https://github.com/discordjs/uws/blob/master/src/uws.js#L128
For reference, found a clue here: https://github.com/discordjs/discord.js/issues/1528
2019-04-21 09:32:16 +02:00
SpaceEEC
cde955c766
fix(PresenceUpdateAction): emit presences again ( #3214 )
...
* fix(PresenceUpdateAction): emit presences again
* update typings
2019-04-19 08:49:17 +02:00
izexi
39fd8fd645
fix(typings): remove duplicated Guild#defaultRole ( #3211 )
2019-04-16 22:14:01 +02:00
izexi
0b1176d9a1
chore(typings): declaring explicit nullable returns ( #3134 )
...
* strict nullable & WebSocketManager private typings
* missing semicolon
* kyra suggestion #1
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
* kyra suggestion #2&3
* space's requested changes
* space's requested change
* strict nullable & WebSocketManager private typings
missing semicolon
kyra suggestion #1
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
kyra suggestion #2&3
space's requested changes
space's requested change
* resolve conflicts
* deflate
2019-04-15 21:01:39 +02:00
MoreThanTom
52bc5b0170
feat(MessageEmbed): resolve color in embed constructor ( #2912 )
...
* Resolve color in embed constructor
* Use ColorResolvable type for color parameter
* docs(MessageEmbed): color property is still a number
2019-04-15 20:46:59 +02:00
izexi
d9a053df67
docs(Presence): add ClientPresenceStatus typedef ( #3208 )
2019-04-15 14:41:37 +02:00
izexi
520810d484
feat(Util): add YELLOW to ColorResolvable ( #3182 )
2019-04-14 14:58:33 +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
izexi
5d10585af8
docs(Presence): add missing descriptions to clientStatus ( #3127 )
...
* add description on jsdocs for User.clientStatus
* Update src/structures/Presence.js
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
* Update src/structures/Presence.js
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
* Update src/structures/Presence.js
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
* update typings
2019-04-14 14:43:01 +02:00
Vlad Frangu
70d4b4455b
refactor(ClientVoiceManager): make public, remove Client#voiceConnections ( #3186 )
...
* docs: make voice public
* typings: Update typings to match the docs
* typings: ClientVoiceManager is nullable in Client
Co-Authored-By: vladfrangu <kingdgrizzle@gmail.com >
* typings: Mark client as readonly
Co-Authored-By: vladfrangu <kingdgrizzle@gmail.com >
* src: Make the client readonly
* src: Remove Client#voiceConnections getter in favor of ClientVoiceManager#connections
2019-04-08 14:20:53 +02:00
izexi
c078682722
feat(Webhook): add url getter ( #3178 )
...
* add Webhook#url
* set typing as readonly
* suggested change
* another one
2019-04-05 11:09:58 +02:00
bdistin
bb92289e45
fix: remove GuildChannel fallback, and remove GuildChannel as extendable ( #3165 )
...
* remake pr
* typings
2019-04-03 23:02:19 +02:00