Kyra
c4df02782e
feat: Guild Integrations ( #2760 )
...
* feat: Guild Integrations
* feat: Guild#createIntegration
* feat: Add ws event GUILD_INTEGRATIONS_UPDATE
* docs: Add `GUILD_INTEGRATIONS_UPDATE` to WSEventType
* misc: Fixed requested change
* docs: Updated typings
* typings: Sort members by name
2018-08-24 16:03:29 +02: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
Frangu Vlad
0401b8ad77
feat: handle and forward WEBHOOKS_UPDATE events ( #2762 )
...
* src: Handle WEBHOOK_UPDATE events
* Commit rename of 77'
Or adding the letter S
* I missed this
* Properly do this now
Typos everywhere
* Typings
* refactor: remove now unnecessary guild variable
2018-08-21 10:38:35 +02:00
Frangu Vlad
94214fa733
misc: Remove Clyde ( #2764 )
...
* Remove Clyde
* Remove Clyde avatar overwrite
* Remove Clyde from the user pattern
2018-08-18 13:21:24 +02:00
Frangu Vlad
e935611e50
fix(GuildBanAddHandler): not emitting guildBanAdd for uncached users ( #2763 )
2018-08-18 10:53:23 +02:00
Amish Shah
e2726f5a9a
voice: remove createReceiver, just use VoiceConnection.receiver
2018-08-16 18:30:54 +01:00
Amish Shah
97c34b5b6f
voice: clean up packet handling
2018-08-16 11:28:28 +01:00
Amish Shah
64832abfdb
voice: clear connect timeout after connected ( fixes #2752 )
2018-08-15 14:25:47 +01:00
Amish Shah
38597de271
voice: patch in default VoiceStateUpdate in case on doesn't exist, cache member
2018-08-15 14:02:11 +01:00
bdistin
6506252054
fix/refactor: fix GuildMember#presence getter and cleanup ( #2751 )
...
* Fix guild being a guild and not an AbstractHandler in PresenceUpdate
* update the default guild to be a Guild, and not GuildMember
* getters return null instead of undefined
* fix lint
2018-08-15 08:50:22 +02:00
Kyra
75254748b1
fix(Client): do not redefine _timeouts and _intervals of BaseClient ( #2748 )
...
Fixes an issue with the process permanently hanging.
2018-08-14 20:39:56 +02:00
Amish Shah
e0f52162ea
voice: allow for streaming silence to avoid audio glitches with repeated pausing/resuming ( #2354 )
2018-08-14 12:12:59 +01:00
Amish Shah
6852a15cee
voice: fix StreamDispatcher#pause trying to call null function
2018-08-13 17:54:11 +01:00
Amish Shah
bfde1dd8f2
fix: StreamDispatcher doesn't emit finish if ended while paused ( #2648 )
2018-08-13 17:35:21 +01:00
Amish Shah
ea764afad2
add ClientPresence, remove ClientPresenceStore
2018-08-11 10:46:51 +01:00
Amish Shah
34ed3c6014
Update documentation for presenceUpdate
2018-08-10 17:09:05 +01:00
Amish Shah
08eff66939
Make presences track users and guilds, emit them in presenceUpdate
2018-08-10 16:46:14 +01:00
Amish Shah
fe8ece0192
voice state fixes
2018-08-10 15:15:52 +01:00
Amish Shah
be5efea461
rewrite voice state handling
2018-08-10 14:44:59 +01:00
Amish Shah
ee6c19ca7e
voice: rewrite GuildMember#speaking tracking ( #2540 )
2018-08-09 13:59:52 +01:00
Amish Shah
55863efa15
voice: don't clear reject timeout until connection fully resolved ( #2421 , #2578 )
2018-08-09 13:00:46 +01:00
Amish Shah
46fa9603c2
voice: delete receive stream immediately to prevent it being written to after end ( #2678 )
2018-08-07 17:34:01 +01:00
bdistin
5afd77ab73
refactor: remove user bot methods ( #2559 )
...
* [WIP] Remove user bots
* more backend userbot removal
* Add mfaEnabled back
* revert client presences store removal
* partially revert getAuth changes
* remove more no longer used children of ClientUserGuildSettings
* fix a bug with this pr and TextBasedChannel.applyToClass
* remove a syncGuilds reference
* more user bot data handling
* various guildSync cleanup
* bots can't call logout
Had the user/bot portions of the code mixed up. Though, does this need to be a promise anymore?
* make ClientManager#destroy() sync
It nolonger needs to be a promise, and nothing depended on it being a promise that I can tell.
* requested change
* Fix massive error
* no longer used as it's userbot only
2018-07-25 22:14:23 -04:00
Gymnophoria
717e7f094a
docs(Client): clarify messageReactionRemove event's user description ( #2657 )
...
* Clarify messageReactionRemove user description
* Update MessageReactionRemove.js
* wait one more word difference lol
2018-07-18 11:41:05 +02:00
Lewdcario
92e2c3c7fd
fix: instantiate constructors before using those properties
2018-06-29 15:12:52 -05:00
FireController1847
ac0c15f7f1
Change ytdl example ( #2619 )
2018-06-24 15:47:54 +02:00
Mikhail
bf738b34de
fix(BasePlayer): incorrectly mutating FFMPEG_ARGUMENTS when using seek ( #2622 )
...
Because args was not a copy of FFMPEG_ARGIMENTS, but a reference to it, pushing 'ss' argument pushed it to FFMPEG_ARGUMENTS, making it persistent.
2018-06-23 15:20:59 +02:00
Amish Shah
18646b72f9
voice: use getters where possible
2018-06-22 18:46:51 +01:00
Amish Shah
08bbbe9301
voice: handle new client_connect and client_disconnect packets
2018-06-22 18:38:33 +01:00
Amish Shah
9296a30148
voice: account for speaking now being a bitmask
2018-06-22 17:47:00 +01:00
Amish Shah
1f7c1ddaa2
voice: start update to v4, fix heartbeats
2018-06-22 17:42:04 +01:00
Amish Shah
3d41748a38
voice: fix not passing volume to transform constructor
2018-06-21 21:50:54 +01:00
Camzure
9997a67ab6
Docs: Wording Improvements ( #2607 )
...
* wording improvement
* wording improvement for docs
* docs: wording
* wording
* user account only: docs
* Edited
* Edited
2018-06-21 21:35:52 +02:00
Amish Shah
1cdee7b48a
voice: reimplement seek option ( #2572 )
2018-06-13 21:16:14 +01:00
Amish Shah
04618f554f
voice: fix _writeCallback being called multiple times ( #2567 )
2018-06-13 21:06:50 +01:00
Amish Shah
3bfc1ff61c
voice: fix write after end ( #2567 )
2018-06-13 21:02:19 +01:00
Amish Shah
d69e906027
voice: fix voice receive after enabling suffix and lite encryption modes
2018-06-13 20:43:18 +01:00
Lewdcario
ba9a93b0bf
docs: last english fix for now
2018-06-12 18:54:51 -05:00
Lewdcario
eb4607c8ad
docs: fix english because english is difficult
2018-06-11 21:18:15 -05:00
Lewdcario
5eff360a4d
docs: wording improvements
2018-06-11 16:37:34 -05: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
Amish Shah
43c92c13e2
voice: support xsalsa20_poly1305_lite and xsalsa20_poly1305_suffix
2018-05-10 12:11:22 +01:00
Amish Shah
685814aa61
voice: make sure speaking is false when paused
2018-05-09 18:44:46 +01:00
Amish Shah
841b9de918
voice: mark speaking as false when paused, prevent repeated pausing
2018-05-09 14:33:23 +01:00
bdistin
7a3a4d1388
feat: add Collection#sweep() ( #2528 )
2018-05-04 02:27:59 -05:00
Kyra
42ce4f8bc0
Removed usage of (deprecated) new Buffer ( #2531 )
2018-05-03 19:07:16 +02:00
Amish Shah
b5f37728a7
feature: allow sweeping of inactive request buckets
2018-05-02 17:57:48 +01:00
Amish Shah
299fc001d5
voice: start using provided IP rather than manually resolving
2018-04-27 15:11:37 +01:00
Kyra
b186472785
Added a note in userUpdate event ( #2479 )
2018-04-21 21:45:15 +02:00
Lewdcario
b8a9a76cf6
docs: inconsistencies
2018-04-20 21:10:21 -05:00
Lewdcario
8d065fa043
fix: Client#generateInvite resolving permissions incorrectly
2018-04-18 20:25:49 -05:00
Frangu Vlad
61ad9475de
fix(ClientManager): patch ClientUser's presence with ClientOption's one ( #2458 )
2018-04-13 08:27:53 +02:00
Amish Shah
cb69102e5e
voice: allow for changing volume with webm/ogg streams
2018-04-10 21:19:29 +01:00
Jérémie N'gadi
e845758037
fix(StreamDispatcher): only update speaking for non broadcasts ( #2437 )
...
If the player is a BroadcastAudioPlayer it has no VoiceConnection directly associated with it.
2018-04-09 21:17:16 +02:00
Pascal
b955a514f6
fix(Guild): remove member's voice state on guildMemberRemove
...
fixes #2430
2018-04-09 17:43:07 +02:00
Amish Shah
fa886eaae9
voice: fix bug where no audio could be heard if voice region changed
2018-04-07 15:19:18 +01:00
Amish Shah
384fdf8f17
voice: properly cleanup after disconnect ( #2443 , #2435 , #2421 , #2406 #2359 )
2018-04-07 14:40:05 +01:00
Amish Shah
41d0f25d0f
voice: fix heartbeat issue ( #2443 )
2018-04-05 16:38:35 +01:00
Amish Shah
a5e8f05d01
voice: add end param to describe how a voice receive stream should end
2018-03-31 11:52:48 +01:00
Pascal
d041cb2460
fix(GuildEmojiRoleStore): do not prematurely patch roles
...
Issue is the same as in #2312 and #2381 , but for the GuildEmojiRoleStore.
Thanks to @KingDGrizzle for pointing this out.
2018-03-16 20:01:43 +01:00
Amish Shah
ef8366d189
voice: properly null-check udp socket first ( #2317 )
2018-03-13 09:48:18 +00:00
bdistin
630009f3cf
fix: Convert lastMessage to getters ( #2384 )
...
* convert lastMessage to getters
* fix bug in pr
* requested changes
2018-03-08 10:19:43 -06:00
Amish Shah
79b02dd35f
voice: resolve "cb is not a function" error ( #2317 )
2018-03-06 10:36:05 +00:00
Amish Shah
8289b70e2c
voice: resolve issue where dispatcher tried to send packets to null socket ( #2317 )
2018-03-06 10:21:44 +00:00
Amish Shah
835bff74cd
lint: remove unused import
2018-03-05 20:17:38 +00:00
Amish Shah
ff825cd8b8
voice: fix #2331 (speaking not set back to false on stream ending)
2018-03-05 19:41:35 +00:00
Amish Shah
e263063ba6
voice: update prism and fix framesize to work for opusscript
2018-03-05 19:30:18 +00:00
Will Nelson
cf7dcba1a5
Add toJSON methods ( #1859 )
...
* tojson things
* fix client
* ignore private properties
* remove extra property descriptors
* handle primitive flattening
* remove unused import
* add toJSON to collections
* reduce stateful props
* state
* allow custom prop names when flattening
* fix client
* fix build
* fix flatten docs
* remove guild.available, cleanup permissions, remove arbitrary id reduction
* fix util import
* add valueOf as needed, update member props
* fix incorrect merge
* update permissionoverwrites and permissions
remove serialization of permissions in PermissionOverwrites#toJSON.
change Permissions#toJSON to serialize permissions, by default excluding
admin checks.
* change Permissions#toJSON to return the primitive
* Permissions#toJSON explicitly return bitfield
2018-03-01 23:00:21 -06:00
nekobako
c25ea45866
fix(StreamDispatcher): emit volumeChange event when the volume changes ( #2349 )
2018-02-21 22:21:13 +01:00
Pascal
05c5bdc476
fix(StreamDispatcher): do nothing when resume is called when not paused
...
Fixes #2324
2018-02-19 18:17:51 +01:00
Sanctuary
87e5a45659
feat(ClientOptions): add support for setting an initial presence ( #2320 )
...
* docs/feat(WebsocketOptions): Parse ws options presence
Allow the `presence` property in `WebsocketOptions` to be used the same way
as `ClientUser#setPresence`.
* Move presence options to top level
2018-02-04 21:32:45 +01:00
FireController1847
92c9f8864c
Specify that Client#uptime is "in milliseconds" ( #2288 )
2018-01-24 08:24:24 +01:00
Pascal
07c48a6845
fix: require discordjserror to throw meaningful errors where necessary
2018-01-22 20:23:36 +01:00
Cat
8a2ace45d8
docs: fix VoiceBroadcast documentation ( #2277 )
2018-01-21 18:23:23 +01:00
Michel Nguyen
edc4e2b751
docs: fix streamdispatcher documentation ( #2275 )
...
* docs change
* fix streamdispatcher documentation
Signed-off-by: Michel Nguyen <modzongaming@gmail.com>
* fucks sake
Signed-off-by: Michel Nguyen <modzongaming@gmail.com>
* typings
Signed-off-by: Michel Nguyen <modzongaming@gmail.com>
* typings again 👀
Signed-off-by: Michel Nguyen <modzongaming@gmail.com>
2018-01-21 18:23:00 +01:00
Amish Shah
83de7c0d4c
Fix error messages
2018-01-21 15:52:32 +00:00
Amish Shah
76891a1e00
try fix
2018-01-21 10:34:14 +00:00
Amish Shah
aa09490724
whoops
2018-01-21 10:31:12 +00:00
Amish Shah
b2708a6fa8
Merge branch 'master' of https://github.com/hydrabolt/discord.js
2018-01-21 10:29:06 +00:00
Amish Shah
0e262ea8d7
More informative stream errors
2018-01-21 10:29:03 +00:00
Pascal
93e083da4f
fix(Guild): memberCount not decrementing when an uncached member leaves
...
This leads to GuildMemberStore#_fetchMany to always reject
because it expects more member than possible.
Also no longer call the GuildMemberRemove handler locally
to not decrement twice.
2018-01-21 07:30:59 +01:00
Amish Shah
b16e6f8262
Fix VoiceBroadcast#play documentation
2018-01-20 16:57:27 +00:00
Amish Shah
f588b3fd20
Merge branch 'master' into voice-rewrite
2018-01-20 13:50:34 +00:00
Amish Shah
c63bdb5fb1
Remove redundant doc tag descriptions
2018-01-20 13:47:35 +00:00
Amish Shah
ca96e1478a
Make docs technically correct
2018-01-20 13:45:22 +00:00
Amish Shah
791740220e
Improve docs, allow for webm/opus demuxing and playing broadcasts without specifying a type
2018-01-20 13:01:48 +00:00
Amish Shah
f14193b93a
Document examples
2018-01-20 12:48:28 +00:00
Pascal
a22b856494
fix(WebSocketConnection): make errors in event handlers throw again
...
The error from something like client.on('ready', () => undefined.f);
would just be emitted as debug event instead of being thrown.
Simply moving the emitting part out of the try catch again solves this.
2018-01-20 09:05:07 +01:00
Amish Shah
ef02bd2935
Add stubs for docs
2018-01-20 00:05:37 +00:00
Amish Shah
2b5fc77a67
Rudimentary support for unified audio playing! 🎉
2018-01-19 23:55:59 +00:00
Amish Shah
8e5e1ad8fe
Document Receiver
2018-01-19 23:03:01 +00:00
Amish Shah
c57c2889b7
Fix import errors for networking classes
2018-01-19 22:54:54 +00:00
Amish Shah
066fbfe330
Move voice UDP client and Websocket client to networking folder
2018-01-19 22:53:55 +00:00
Amish Shah
60c5c1486b
Remove dead files
2018-01-19 22:51:53 +00:00
Amish Shah
c6c9c0918a
Fix PacketHandler runtime error (EventEmitter not imported)
2018-01-19 22:51:26 +00:00
Amish Shah
cb161a8a40
Implement Receiver debug events
2018-01-19 22:47:01 +00:00
Amish Shah
83140f11b7
Fix ESLint and inline the voice readable stream
2018-01-19 22:41:31 +00:00
Amish Shah
dd618584d0
Simplify VolumeInterface constructor
2018-01-19 22:38:39 +00:00
Amish Shah
4a1b55d145
Receiver#createStream should take options
2018-01-19 22:38:10 +00:00
Amish Shah
2c1a302eea
Redesign voice receiving, still needs cleaning up
2018-01-19 21:14:03 +00:00
Amish Shah
6058ea4888
Start voice receive rewrite
2018-01-19 17:45:37 +00:00
Amish Shah
580bda46ea
Fix documentation for VoiceBroadcast (play methods return BroadcastDispatcher not StreamDispatcher)
2018-01-19 14:40:58 +00:00
Amish Shah
3b1c5d3494
Expose VoiceBroadcast#dispatcher so that the broadcast can be controlled
2018-01-19 14:39:51 +00:00
Amish Shah
e7375aa0fd
Reimplement broadcast (un)subscribe events
2018-01-19 14:32:51 +00:00
Schuyler Cebulskie
f649610c26
Merge branch 'master' into voice-rewrite
2018-01-18 19:49:23 -05:00
SpaceEEC
aa3407f705
Base Emoji class for ReactionEmoji and renamed GuildEmoji classes ( #2230 )
...
* feat: create base Emoji class for ReactionEmoji and new GuildEmoji
* rename EmojiStore to GuildEmojiStore to account for the new class' name
2018-01-18 02:38:45 -06:00
Artful
1db0906483
Client method examples. ( #2264 )
...
* Client method examples.
* Consistency
* As per hydras request 🙇
* Thanks kya
2018-01-18 07:47:05 +01:00
Amish Shah
b94d60d2ab
Merge branch 'master' into voice-rewrite
2018-01-16 17:24:07 +00:00
bdistin
3d32dea5e1
remove pointless function from GuildEmojisUpdate ( #2256 )
2018-01-16 01:20:51 +01:00
Amish Shah
83640a2640
refactor: tidier overflow checking in StreamDispatcher
2018-01-13 20:50:24 +00:00
Amish Shah
d541cac9b3
Merge branch 'master' into voice-rewrite
2018-01-13 12:47:56 +00:00
Amish Shah
8cab673fea
fix: stream dispatcher throwing key error due to missing secretKey
2018-01-13 12:47:19 +00:00
Isabella
9eac19d9d8
refactor: more oop with stores ( #2216 )
...
* refactor: more oop with stores
* forgot bulk delete
* Revert "forgot bulk delete"
This reverts commit 1b4fb999ee07b358ee6e1af9efb8981b84f83af1.
* appease linter
* missed some
shh
* fail
2018-01-11 16:33:30 +00:00
Schuyler Cebulskie
da32dae8f5
Merge branch 'master' into voice-rewrite
2018-01-10 00:14:29 -05:00
Schuyler Cebulskie
e792757e32
Only create ShardClientUtil when spawned by ShardingManager
2018-01-08 22:13:46 -05:00
Amish Shah
eb40a663dd
god damn it i forgot to save the file the first time
2018-01-05 21:23:21 +00:00
Amish Shah
eeded90782
Fix: "value" argument is out of bounds when writing timestamp header to packet
2018-01-05 21:22:11 +00:00
Schuyler Cebulskie
96971c432d
Merge master into voice-rewrite
2017-12-02 19:48:43 -05:00
Schuyler Cebulskie
77fc046550
Merge branch 'custom-structures'
2017-11-29 23:27:43 -05:00
Schuyler Cebulskie
7cd0a9525d
Fix ClientUser not extending custom User
2017-11-24 23:05:00 -05:00
Schuyler Cebulskie
637ea09532
Fix lint error
2017-11-19 01:56:51 -05:00
Frangu Vlad
0cd4a92fb8
docs: Fixed some missing docstrings or incorrect return types ( #2093 )
...
* Fix some missing doc strings
Mainly just readonly tags
* Return an error when guild#allowDMs is ran from a bot account, and fix some return types
* WebhookClient implements Webhook, doesn't extend it
* Fix Client#rateLimit docs not showing what it returns
Cause I wanted to handle this event only to see no return props 🤔
* Actually make Client#rateLimit show the right info
Its an object with all the info
2017-11-17 14:20:57 +01:00
Amish Shah
2531065bbd
Fix loop and only emit error, not warn
2017-11-04 15:02:58 +00:00
Amish Shah
6a523ba96a
Reimplement StreamDispatcher error and start event in docs, emit error instead of debug if there are listeners for errors
2017-11-03 20:01:51 +00:00
Amish Shah
8efafb6a43
StreamDispatcher documented as extending WritableStream, not stream.Writable
2017-10-31 19:50:02 +00:00
Amish Shah
995cd181c9
Fix setFEC bug and use bitrateEditable in setBitrate
2017-10-31 19:47:58 +00:00
Amish Shah
121a40bb4a
Use passes and increase highWaterMark to 12
2017-10-31 19:43:58 +00:00
Amish Shah
fa7f391b3a
Fix ECONNRESET (again)
2017-10-31 18:12:49 +00:00
Amish Shah
2e1a28a6ee
Use destroy and end in apt places
2017-10-29 18:04:36 +00:00
Amish Shah
cf30b1ef08
Add @extends to some classes
2017-10-29 17:43:22 +00:00
Amish Shah
1697b13f15
Update to master
2017-10-29 13:50:49 +00:00
Amish Shah
5cb757add6
Add highWaterMark
2017-10-29 13:48:07 +00:00
Amish Shah
5879cd7c8e
Merge branch 'voice-rewrite' of https://github.com/hydrabolt/discord.js into voice-rewrite
2017-10-29 13:19:41 +00:00
Amish Shah
d4a9e5ec9c
Fix ESLint and handle stream errors
2017-10-29 13:19:38 +00:00
SpaceEEC
0101392334
Documentation improvements ( #2069 )
...
* docs: fix documentation in various places
All stores: resolveID returns a nullable Snowflake
GuildAuditLogs: ActionType also can be ALL
MessageEmbed: make files property show up in the docs
ClientApplication: resetSecret and resetToken return a promise
ClientManager: status is readonly
Guild: features is an array of strings and ban no longer accepts a number or string
Guild: ban method no longer accepts a string or number
GuildMember: ^
RichPresenceAssets: small and large Image are Snowflakes, also fixed parameter documentation for small and large image url method
WebhookMessageOptions: file property is no longer a thing
* docs: improve GuildAuditLogs documentation
Prefix types with AuditLog to avoid confusion
Document GuildAuditLogs' static Targets and Actions properties and add necessary typedefs
Use typdefs over primitives where possible.
* fix documentation for Guild#defaultRole
2017-10-28 19:04:03 +02:00
William Tran
88719f0f42
Typos in docs ( #2055 )
...
* Typo in Guild.createRole docs
Added missing semicolon in example code.
* consistent periods in docs
2017-10-28 19:01:17 +02:00
Gus Caplan
c495ea025a
fix raw event ( #2074 )
2017-10-28 18:58:46 +02:00
Will Nelson
dbf4ef9a7c
handle string ffmpeg input ( #2064 )
...
* handle string ffmpeg input
* rename stuff for new purpose
* file prefix isn't needed
* pass tests
* remove dumb spaces in dispatcher docs
2017-10-27 22:42:21 +01:00
Amish Shah
8a87cbf404
Better broadcast stuff
2017-10-27 14:32:02 +01:00
Amish Shah
a8511ebfaf
Fix player
2017-10-26 21:50:52 +01:00
Amish Shah
bdf8955098
"yeah we need voice broadcasts cause we make big big music bots" no stop
2017-10-26 21:00:53 +01:00
Amish Shah
3696b4a810
Add ability to disable volume transform
2017-10-26 18:56:02 +01:00
Amish Shah
6490d1b911
FEC and PLP exposed
2017-10-26 18:36:04 +01:00
Amish Shah
cc4aa75a71
Fix closing bug
2017-10-26 18:22:43 +01:00
Amish Shah
387d96bd6b
Add setPLP and setFEC
2017-10-26 18:22:18 +01:00
Amish Shah
45ef80b92f
Fix docs
2017-10-26 18:05:45 +01:00
Amish Shah
eeed5f23e3
Move streams to StreamDispatcher
...
breaking: removed AudioPlayer#setBitrate
2017-10-26 17:53:10 +01:00
Amish Shah
a79c9ac11a
add: StreamDispatcher#pausedTime
2017-10-26 17:11:03 +01:00
Amish Shah
116b4c3788
Rename unpause to resume
2017-10-26 16:47:59 +01:00
Amish Shah
c8a75e4c29
More volume docs
2017-10-26 16:44:21 +01:00
Amish Shah
b83e12634c
Docs
2017-10-26 16:35:20 +01:00
Amish Shah
780e67d19f
Volume!!
2017-10-26 16:30:55 +01:00
Amish Shah
863e38676f
Add back setBitrate
2017-10-26 14:39:58 +01:00
Amish Shah
f6959a848f
Start some docs crap
2017-10-26 14:17:56 +01:00
Amish Shah
ac0cc9a009
Remove useless SecretKey class
2017-10-26 14:02:44 +01:00
Amish Shah
3e3e6f9af7
Actually fix ESlint this time
2017-10-26 13:45:36 +01:00
Amish Shah
8913096f73
Fix Travis by removing stuff for fun 👌 👌
2017-10-26 13:42:21 +01:00
Amish Shah
53ca34cbde
Don't need to continue count and pausedTime amongst dispatchers
2017-10-26 13:33:14 +01:00
Amish Shah
f5d10a5f76
Pause/Unpause
2017-10-26 13:32:38 +01:00
Amish Shah
79c10f7084
Fix resetting timestamps
2017-10-26 12:01:04 +01:00
Amish Shah
ca93c05eee
Merge branch 'master' into voice-rewrite
2017-10-26 11:59:28 +01:00
SpaceEEC
cd08a3b5a4
refactor(Actions): remove obsolete user and guild member get actions ( #2061 )
...
The UserGetAction was never used.
The GuildMemberGetAction was only once used.
Easily replaced with a shorter and more comprehensible line. (Also consistent with the rest of the library)
2017-10-26 08:52:03 +01:00
Amish Shah
a76e4c064d
Fix sequence and timestamp growing too large
2017-10-26 00:32:14 +01:00
Amish Shah
7f90d4ebc5
Better ending
2017-10-25 23:46:05 +01:00
Amish Shah
48452173ca
probably would cause an error somewhere
2017-10-25 23:21:02 +01:00
Amish Shah
65673197d4
Start rewrite with new prism
2017-10-25 23:14:41 +01:00
Gus Caplan
0589b7d7f1
zlib stream compression ( #2028 )
2017-10-25 17:30:03 +01:00
Isabella
0277d1de78
fix(Client): login wasnt using env.token ( #2060 )
2017-10-25 17:29:36 +01:00
Amish Shah
80595d9bec
Stop ESLint whining
2017-10-22 22:04:29 +01:00
Amish Shah
96ce1b0945
Update libsodium-wrappers peer dep and fix support for the newest version
2017-10-22 21:59:30 +01:00
Amish Shah
0004e19eca
Fix ESLint issue
2017-10-22 16:03:35 +01:00
Amish Shah
29d743a521
Fix #2018 (rapid joining/leaving of voice channel causes a crash)
2017-10-22 14:29:49 +01:00
SpaceEEC
356778b9d5
fix(MessageBulkDeleteAction): remove deleted messages from cache ( #2046 )
...
Fixes #2036
2017-10-22 14:51:44 +02:00
kitsuyui
6b249ba454
Fixes #2034 ( #2035 )
...
Cancelling: https://github.com/hydrabolt/discord.js/pull/1745/files#diff-31d1bb7c08f2176ba026497c2e8d9b3fR81
2017-10-19 07:06:12 +02:00
SpaceEEC
fa3eee8fd9
fix(GuildDelete): disconnect voice and cleanup GuildChannels ( #2026 )
2017-10-19 07:03:02 +02:00
SpaceEEC
68a30584db
refactor: remove redundant Client#rest and obsolete RESTManager#destroy ( #2022 )
2017-10-11 02:29:50 +02:00
Gus Caplan
d8f6198a12
fix websocket ratelimits ( #2014 )
2017-10-09 02:40:54 +02:00
Gus Caplan
69dcfa0708
fix Client#login from other invalid things ( #2013 )
2017-10-09 02:39:52 +02:00
Robin B
97823bc376
Various documentation adjustments ( #2001 )
...
* docs(various): Add "at" to createdAt description
* docs(Client): Adjust to fit with guilds property
* docs(various): Adjust phrasing & fix typos
* docs(various): Clarifications
* docs(Permissions): fix numerus
* docs(DataStore): capitalize DataStore
* docs(various): Formatting changes
* docs(Presence): Expand RichPresenceAssets docs
* Add space
2017-10-07 01:56:17 +02:00
Frangu Vlad
3871662a95
fix(setSpeaking) Fix #2005 ( #2007 )
2017-10-07 01:55:16 +02:00
Gus Caplan
27ccad1f1c
tinify webpacks ( #1975 )
...
* tinify webpack
* meme
* fix long version
* more changes
* even smoler
* fix up logic
* fix build
* undo changes to user agent manager because its not webpack'd anymore
* the heck
* fix stupid
* clean up browser rules
* typo
2017-09-26 07:18:12 +02:00
Gus Caplan
dca0bac444
fix typo in ws manager ( #1966 )
2017-09-23 19:13:30 +02:00
Frangu Vlad
eb591dafba
docs: Fix some small typos or "missing" docs ( #1943 )
...
* Fix documentation for GuildAuditLogEntry.target
* Update documentation for CategoryChannel#children
* Add EntryTarget for audit logs
I've done this to "fulfill" devsneks request while also showing all the possible results for the target of an AuditLogEntry
* Oops Eslint
* Private timeout sets gets set by BaseClient not WebhookClient
* Fix the "Missing Docs" for Presence#activity
* Small doc inconsistency
Array<Number> instead of Array<number> for Activity
* Client#emojis is an EmojiStore not a Collection
* Document ClientPresenceStore
Just so its clickable through the wiki, nothing else is documented
* Small fix for BaseClient#setInterval
You don't wait before executing, you execute every X ms
* GuildChannelResolvable takes a GuildChannel/Snowflake
* Typo in UserResolvable
* Another typo for UserResolvable
* Add the number to the Status and VoiceStatus docs
Its probably not needed, but just so the user knows what each number means, its now documented.
2017-09-21 07:02:47 +02:00
SpaceEEC
3ace61a179
fix(ClientManager): reject login with proper error on timeout or on connection failure ( #1947 )
2017-09-16 20:32:03 +02:00
SpaceEEC
ec4c98704f
refactor: make use of destructuring for Constants ( #1942 )
2017-09-16 20:31:36 +02:00
Gus Caplan
2ffe3048ba
clean up positions ( #1919 )
...
* clean up positions
* perf i guess
2017-09-09 22:40:32 +02:00
Dragon Fire
30757cc97b
Fix for emojis not being an EmojiStore ( #1916 )
...
* Fix for emojis
* Proper fix
2017-09-09 14:10:27 +02:00
Gus Caplan
67c239b33f
update webhook cache and message cache stuff ( #1910 )
2017-09-08 23:19:30 +02:00
bdistin
dd085ceaee
Datastore cleanup ( #1892 )
...
* Start Store cleanup
* wip store cleanup
* fix iterables initiating datastores
* handle the possibility of a datastore with no holds and no its own 'create' method
* more cleanup (instances that need more than just client/data)
* missed RoleStore extras
* not sure how eslint didn't catch that tab...
* avoid re-getting the channel we already have...
* cleanup resolvers and refactor them into DataStores
* ^
* and remove
* fix some bugs
* fix lint
* fix documentation maybe?
* formatting
* fix presences
* really fix presences this time
* bad fix was bad... let;s see how bad this one is..
* forgot to save a file
* make presence resolving take userresolveables too
* fix tabs in jsdocs
* fix bad fix from last night that caused issues, with better fix...
* oops
2017-09-08 23:06:10 +02:00
Isabella
0607720ec8
docs: improve documentation ( #1898 )
...
* improve channel documentation
* forgot some stuff
* another one
* im good at this
* i did a dum
2017-09-08 02:01:35 +02:00
SpaceEEC
694f78cd43
fix(WebhookClient): use applyToClass instead of multiple inheritance ( #1896 )
2017-09-06 23:11:40 +02:00
iCrawl
2305311ec1
fix: voice websocket sending
2017-09-06 16:38:42 +02:00
Gus Caplan
675e1eccb1
Separate websocket internals for RPC ( #1893 )
...
* websocket centralization
* more centralization
* whoops
* Update WebSocket.js
2017-09-06 07:20:10 +01:00
Amish Shah
99419a3670
Fix #1310 (strip RTP header extensions)
2017-09-05 19:14:54 +01:00
Amish Shah
37d84b14f8
Re-add VoiceChannel#members and messageUpdate to the documentation
2017-09-05 11:16:56 +01:00
SpaceEEC
87fa74acd4
ClientUserGuildSettings: avoid uncaught exception and a bit of refactoring ( #1885 )
...
* refactor(ClientUserGuildSettings): make client first parameter of the constructor
* refactor(ClientUserChannelOverride): patch if possible rather then reinstantiating every update
* fix(ClientUserGuildSettings): avoid uncaught exception when patching newly joined guilds/gdms
2017-09-05 02:40:46 +02:00
SpaceEEC
bb4fe256e0
fix(Client): apply shardId and shardCount to the correct options object ( #1888 )
2017-09-05 02:40:22 +02:00
Gus Caplan
18e3801bb7
lots of important stuff ( #1883 )
...
* lots of important stuff
* Update Constants.js
2017-09-04 17:49:44 +02:00
Gus Caplan
c4df2502ec
Rewrite presence a little bit ( #1853 )
...
* such presence many good
* Update PresenceStore.js
* Update index.js
* Update ClientPresenceStore.js
* Update Presence.js
* Update ClientPresenceStore.js
* Update ClientUser.js
* Update Presence.js
* add timestamps and party
* Update Presence.js
* Update PresenceStore.js
* Update ClientPresenceStore.js
* Update ClientPresenceStore.js
2017-09-02 23:57:02 +01:00