Amish Shah
ebfbf20f07
Bump to 11.4.2
2018-08-13 15:19:21 +01:00
Souji
3021e5ce7f
Docs: document ChannelData.parent and .permissionOverwrites, fix typedefs to not include Collection of ChannelCreationOverwrite ( #2734 )
...
* document ChannelData.parent
* document ChannelData.permissionOverwrites
* Overwrites also take other things, account for it
* note to self: stop copy-pasting
* remove eslint madness, fix param defs
* fix property slip
2018-08-13 15:17:09 +01:00
Schuyler Cebulskie
b5df8603e8
Update version in web builds example
2018-08-12 17:01:32 -04:00
Kolkies
8b1bb95b1a
docs: update for 11.4.0 ( #2727 )
...
* Update for 11.4.0 docs
2018-08-12 13:20:08 -05:00
Lewdcario
6775684ff0
chore: update typings & bump version
2018-08-12 13:14:52 -05:00
Lewdcario
d772bff632
fix(ClientDataManager): replacing channels unecessarily
2018-08-12 11:50:01 -05:00
SpaceEEC
8adfc97409
docs(Client): actually fix rateLimit's event params
2018-08-11 09:38:58 +02:00
Amish Shah
72bb9cb532
voice deps: fix prism-media requirement
2018-08-09 22:40:31 +01:00
Lewdcario
0e370d7a4c
docs: fix client#rateLimit parameters
2018-08-09 14:58:17 -05:00
Lewdcario
7126cade45
fix: richEmbed#_apiTransform fields
2018-08-09 13:52:50 -05:00
Lewdcario
bef07152c8
chore: update typings & bump version
2018-08-09 11:47:52 -05:00
Amish Shah
16331d9e85
chore: update typings
2018-08-09 17:34:59 +01:00
Souji
bafbee9677
docs: small changes regarding permissions/overwrites ( #2718 )
...
* Add Collection as param to GuildChannel#replacePermissionOverwrites
* Add example for null to PermissionOverwriteOptions
* eslint-disable max-len
* PermissionOverwriteOptions desc. change default to unset
* deprecated allow/deny in favor of allowed/denied
2018-08-09 10:52:59 -05:00
Lewdcario
6da423fc07
backport: Permissions#toArray
2018-08-08 22:17:08 -05:00
Lewdcario
1e5b5b83c8
backport: GuildChannel#permissionsFor(role)
2018-08-08 22:16:46 -05:00
Lewdcario
c76f3048af
backport: TextChannel#bulkDelete accepts Snowflake[]
2018-08-08 17:14:52 -05:00
Souji
af6d649510
docs: change for GuildChannel#replacePermissionOverwrites ( #2714 )
2018-08-08 16:09:39 -05:00
SpaceEEC
c7f379f51d
docs(RichEmbed): timestamp is actually a Date
2018-08-07 21:46:54 +02:00
SpaceEEC
4a48a7d621
docs(ShardingManager): respawnAll actually resolves with a collection of shards keyed by numbers
2018-08-07 21:36:03 +02:00
Lewdcario
c33ab1ea61
backport: add PRIORITY_SPEAKER permission
2018-08-03 19:09:09 -06:00
Lewdcario
87b4b23596
backport: fix circular conversion when editing RichEmbed
2018-08-03 15:33:51 -06:00
Lewdcario
b63948e14e
backport: RichEmbed#attachFiles
2018-08-02 15:06:27 -06:00
Lewdcario
4a9c2f8884
fix(Emoji#fetchAuthor): reject with Error rather than TypeError
2018-07-26 14:35:26 -06:00
Lewdcario
41f6eaa635
backport: Message#url getter
2018-07-26 11:22:29 -06:00
Lewdcario
95a2d25b7d
chore: deprecate userbot methods
2018-07-26 11:18:41 -06:00
Lewdcario
d685e39af4
backport: add rejection for Emoji#fetchAuthor if managed
...
Signed-off-by: Lewdcario <isabellafj97@gmail.com >
2018-07-26 10:24:26 -06:00
Lewdcario
96011cf68f
backport: make Webhook token not enumerable
2018-07-26 09:51:47 -06:00
Isabella
488b1eb4ee
backport: Sharding utility methods ( #2672 )
2018-07-25 12:08:08 -04:00
Lewdcario
6d70da5b1e
backport: fix circular conversion in RichEmbed
2018-07-23 22:41:07 -06:00
Lewdcario
e4da97e058
eslint: re-enable eslint after disabling max-len
2018-07-23 14:34:38 -06:00
SpaceEEC
fbbd8f43b3
chore: update typing submodule
2018-07-22 20:37:38 +02:00
SpaceEEC
886c21223e
fix(GuildAuditLogs): default to PartialGuildChannel if channel deleted ( #2605 )
2018-07-18 11:38:59 +02:00
Gymnophoria
a97b5040e6
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:37:36 +02:00
Lewdcario
524a15df0b
backport: Permissions improvements
2018-07-17 21:49:21 -05:00
Lewdcario
0702a0fcda
backport: DefaultMessageNotifications
2018-07-17 21:32:24 -05:00
SpaceEEC
1d9edec567
fix(Message): keep reply option when replying with an embed or attachment
...
Fixes #2651
2018-07-08 21:40:12 +02:00
Amish Shah
d81441f627
voice: null-check UDP socket
2018-07-03 14:15:27 +01:00
Amish Shah
695ff1e70f
voice: fix #2635 (channel bitrate not being set)
2018-07-02 19:45:35 +01:00
Lewdcario
a667e44c4d
fix(Client): login catch
2018-07-01 10:05:56 -05:00
Lewdcario
3d82ca901b
docs: improvements in various places
...
* Client#login example consistency
* add warning to Client#fetchApplication
* incorrect WEBHOOK_DELETE value
2018-06-29 19:38:20 -05:00
Lewdcario
448f38429d
fix(Client): login not properly rejecting on invalid token
2018-06-29 19:38:06 -05:00
Lewdcario
3fa9ed1f42
backport: deleted property
2018-06-29 19:11:50 -05:00
Lewdcario
72346fb47e
fix(TextBasedChannel): bulkDelete should not return non-Promise
2018-06-29 17:32:56 -05:00
Camzure
7ce1d1642c
docs: only cached messages emit reaction events ( #2607 )
...
* wording improvement
* wording improvement for docs
* docs: wording
* wording
* user account only: docs
* Edited
* Edited
Signed-off-by: SpaceEEC <spaceeec@yahoo.com >
2018-06-21 21:40:52 +02:00
SpaceEEC
8a3ae875bb
fix: do not cache webhook users ( #2611 )
...
Goal in mind is to not save the name and avatar used by webhooks because
those can change between messages without any other update.
2018-06-21 21:34:30 +02:00
SpaceEEC
bd3d8d48c0
docs(GuildMember): joinedAt is nullable
...
See: ecf6e2b62d
2018-06-21 21:24:53 +02:00
RumbleFrog
493ba73037
fix(ShardClientUtil): send method's promise erroneously rejecting ( #2604 )
...
Patches the remaining ones that were missed in eef4a4ad17
2018-06-17 08:21:51 +02:00
reeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
507cce3ff4
docs: document lastMessageID for TextChannel and (Group)DMChannel ( #2602 )
...
* Adds JSDocs for TextChannel.lastMessageID
* oops
* docs: document lastMessageID in (Group)DMChannel as well
2018-06-16 22:10:24 +02:00
Lewdcario
6de5acbac3
backport: RichPresence
2018-06-09 15:37:01 -05:00
Lewdcario
ecf6e2b62d
fix(GuildMember): mark joined as nullable
2018-06-09 15:15:08 -05:00
Lewdcario
caa4104b95
docs: GuildMember#speaking
...
closes #2540
also improves consistency
2018-06-05 00:31:06 -05:00
Lewdcario
f238883046
fix(MessageReaction): fetchUsers inconsistency
...
Unlike TextChannel#fetchMessages, this method returned the cache rather than the fetched items, so in interests of consistency, this does as well now
closes #2574
2018-06-05 00:31:03 -05:00
Lewdcario
eef4a4ad17
fix(Shard): erroneously returning false
...
The node documentation fails to correctly document when the backlog of unsent messages exceeds a certain threshhold the function will return false. This does not mean it will refuse to send- simply that it will take time. Issue in point: https://github.com/nodejs/node/issues/7657#issuecomment-240581726
2018-06-05 00:31:00 -05:00
Lewdcario
c699888780
docs: add examples & improve notices
2018-06-05 00:30:50 -05:00
Lewdcario
0387d34ab4
fix(VoiceChannel): deletable erroneously returning true
2018-06-04 17:18:27 -05:00
Adrien Brignon
13880fe7de
docs(Guild): handle error in example of fetchInvites correctly ( #2568 )
2018-05-27 20:59:12 +02:00
SpaceEEC
f23b61794c
fix(ClientUser): correctly resolve nicks to an object in createGroupDM
2018-05-25 17:23:09 +02:00
SpaceEEC
f456f4c3c0
feat(Collection): backport partition method
...
Commit: a732402c95
PR: #2511
2018-05-25 16:49:10 +02:00
SpaceEEC
f921261f3f
fix(docs): remove duplicated Collection#findAll docstring
...
Also added intended @ deprecated decorators
2018-05-25 16:44:49 +02:00
Lewdcario
6070b22382
docs: using deprecated version of find
2018-05-13 04:41:58 -05:00
Lewdcario
b2d1cb6a3d
docs: permissions
2018-05-12 00:51:08 -05:00
Lewdcario
09ddbcb88a
chore: deprecations
2018-05-12 00:40:12 -05:00
Lewdcario
6f02be2b2e
docs: rateLimit event
2018-05-11 23:21:39 -05:00
Lewdcario
0d90798c6c
backport: rateLimit event
2018-05-11 20:55:31 -05:00
Lewdcario
379061987c
fix: burst request mode hanging permanently
2018-05-11 19:27:34 -05:00
1Computer1
de7d90ada3
feat(Collection): add tap method ( #2507 )
...
* Add Collection#inspect
* No u
* Rename to tap
* Rename variable
* Do it here too
2018-05-09 16:46:54 +02:00
bdistin
2b6592ed54
feat(Collection): add sweep method ( #2528 )
2018-05-09 16:42:28 +02:00
SpaceEEC
9bb8831619
feat(GuildMember): add manageable getter
2018-05-09 16:38:28 +02:00
SpaceEEC
99041671f0
feat(GuildChannel): add fetchInvites method
...
Backported from commit: 47bc0fc51e
PR: #2339
2018-05-09 16:28:40 +02:00
SpaceEEC
dd7eedbd48
feat(Emoji): add fetchAuthor method
...
Backported from commit: e0cbf0bb60
PR: #2315
2018-05-09 16:20:41 +02:00
SpaceEEC
c0ca73a40c
feat(Game): add toString method
...
Backported from commit: 016526486c
PR: #2313
2018-05-09 16:08:59 +02:00
SpaceEEC
15a8e17710
fix(Guild): memberCount not decrementing when an uncached member leaves
...
Backported from commit: 93e083da4f
2018-05-09 16:07:20 +02:00
SpaceEEC
54913d9edb
feat(GuildChannel): add setNSFW method
...
Backported from commit: 0fc9459450
PR: #2050
2018-05-09 16:04:49 +02:00
Gus Caplan
9169958264
feat(Guild): add verified getter ( #2027 )
2018-05-09 15:52:00 +02:00
SpaceEEC
96b115ef7b
feat(ClientDataResolver): add 2 basic role colors
...
Commit: 3a3ca96b0d
PR: #2303
2018-05-08 22:35:35 +02:00
Will Nelson
2d831269ab
feat(Permissions): add valueOf method ( #2363 )
2018-05-08 22:30:27 +02:00
Jonah Snider
e5e59cce32
docs(Role): Change 'the this' to this (typo) ( #2377 )
...
Commit: 8b679913a4
2018-05-08 22:27:58 +02:00
Pascal
ae28f52e0d
fix(ClientDataResolver): always resolve with a buffer when fetching a file
...
Commit: 85413481ed
2018-05-08 22:25:49 +02:00
SpaceEEC
9264511092
docs(ClientUser): correct warning for createGuild method
...
Backported from: 2bf68dcdfb
PR: #2453
2018-05-08 22:06:07 +02:00
SpaceEEC
2f2e28183b
fix(Role): allow role color to be removed
...
Backported from: f985b6bef3
PR: #2447
2018-05-08 22:05:56 +02:00
SpaceEEC
54fa5f644f
docs(GroupDMChannel): fix top 'an user' -> 'a user'
2018-05-08 20:14:23 +02:00
bdistin
b757f9ef2d
docs(Collection): fix spelling of 'behavior' ( #2529 )
2018-05-08 19:07:49 +02:00
Kyra
bd9c9ce4e0
refactor(VolumeInterface): remove usage of deprecated new Buffer ( #2531 )
2018-05-08 18:55:52 +02:00
SpaceEEC
60288d0704
fix(Collector): increase and decrease max listeners dynamically
2018-05-08 11:57:12 +02:00
SpaceEEC
ed8ab91782
feat(Emoji): add deletable getter
...
Backport for commit: fca6d3be56
From PR: #2535
2018-05-08 11:35:14 +02:00
SpaceEEC
21326f67a0
feat(ClientDataResolver): account for discord.gg/invite/<code> invites
2018-05-04 18:49:53 +02:00
Kyra
8700e965c5
feat(DiscordAPIError): backport method property ( #2536 )
2018-05-03 22:47:50 +02:00
Kyra
a89de09855
fix(RESTMethods): remove listener from correct event ( #2534 )
2018-05-03 17:56:10 +02:00
SpaceEEC
a85d801a12
fix(ClientUser): setActivity should resolve with a Presence
2018-05-01 20:27:05 +02:00
Amish Shah
5f50d9e627
voice: backport null key fix
2018-04-29 18:53:50 +01:00
SpaceEEC
33a4232652
fix(OpusEngineLinst): throw a descriptive error when not funding an opus engine
2018-04-28 14:30:14 +02:00
SpaceEEC
d9a091f674
feat(SnowflakeUtil): allow snowflakes to be generated dynamically
2018-04-27 20:34:48 +02:00
SpaceEEC
44fefdfa49
fix(Util): reject with a meaningful error instead of throwing one
2018-04-27 20:16:46 +02:00
Amish Shah
b05622766b
voice: start using provided IP rather than manually resolving
2018-04-27 15:25:05 +01:00
Isabella
49ad8cc2cc
feat(GuildChannel): add manageable getter ( #2439 )
...
* Adds GuildChannel.manageable
* Resolve requested changes
* fix eslint max-len error
* Fix for nullable permissionsFor()
* Indent fixes
2018-04-26 01:31:52 -05:00
bdistin
7b9e84dff5
feat(Guild): add mfaLevel property ( #2451 )
2018-04-26 01:28:59 -05:00
Lewdcario
384e96d51e
backport: docs improvements
2018-04-26 01:25:44 -05:00
Isabella
d7e7803178
docs: (backport) Bring the main doc pages up to date, and add more examples ( #2094 )
2018-04-26 01:13:44 -05:00
bdistin
feb0991c46
fix: use Object.keys instead of Object.values for node 6 ( #2487 )
2018-04-20 21:11:27 +02:00
SpaceEEC
ff671b2f3c
fix(RestMethods): typo timeout -> timed
2018-04-19 13:53:44 +02:00
SpaceEEC
b60ee25038
fix(MessageEmbed): avoid throwing error when accessing colorless hexColor
2018-04-19 13:14:20 +02:00
SpaceEEC
3ba26ad972
fix(Message): do not update editedTimestamp when there is none in the payload
...
Fixes #2307
2018-04-19 13:13:50 +02:00
SpaceEEC
de78a8d0b4
fix(RESTMethods): verify correct member in add and remove role listeners
...
Fixes #2480
2018-04-19 13:13:28 +02:00
SpaceEEC
7c37a0d386
fix(MessageDeleteBulkAction): remove bulkDeleted messages from cache
...
Fixes #2382
2018-04-19 11:50:30 +02:00
Lewdcario
c387e96078
fix: Client#generateInvite resolving permissions incorrectly
2018-04-18 20:30:24 -05:00
Lewdcario
7c0b6173dd
fix: Role#setPermissions resolving & docs
2018-04-18 19:57:16 -05:00
Lewdcario
92b421607e
fix: GuildChannel#setTopic not nullable
2018-04-18 19:35:28 -05:00
iDroid
f3ae7fd638
Fixed JSDoc owner thing ( #2473 )
...
Added a `?` before `GuildMember`, the `owner` property may be undefined in some cases.
2018-04-18 19:25:28 -05:00
sekwah41
6e5b674338
Fixed updateChannel being too protective ( #2460 )
...
If I am not mistaken the only way atm to remove a channels parent atm is to do this to get the null value through the code.
channel.client.rest.methods.updateChannel({id:channel.id, name:channel.name,
topic:channel.topic,position:channel.position,
bitrate:channel.bitrate,userLimit:channel.userLimit,parent:{id:null}}, {});
This fixes the method allowing channel.setParent(null); to work
2018-04-13 14:03:18 +02:00
Amish Shah
e5bd6ec150
11.3.2
2018-03-04 18:08:54 +00:00
Gus Caplan
c8f78b2bf0
fix(ws): set correct ratelimit remaining after reset or destroy ( #1806 )
2018-03-04 12:44:31 +01:00
Schuyler Cebulskie
419a2eea3f
Bump version to 11.3.1
2018-03-03 15:38:24 -05:00
Schuyler Cebulskie
a3cec3bc1f
We must not be like Todd Howard
2018-03-03 15:36:59 -05:00
iCrawl
ad93b90cd9
update typings
2018-03-03 02:53:24 +01:00
Lewdcario
8f9e911b5f
fix: RichEmbed timestamp cloning
2018-03-02 18:52:43 -06:00
Lewdcario
363ead922a
fix: bulkDelete discarding non-cached messages
2018-03-02 12:17:10 -06:00
Lewdcario
96e88f3cef
docs: incorrect returns
2018-03-01 22:38:55 -06:00
Lewdcario
fcdffcf623
docs: improvements & examples
2018-03-01 20:47:18 -06:00
Lewdcario
acdf43a872
fix: GuildAuditLogs using Guild#fetchInvites
2018-03-01 20:37:19 -06:00
Lewdcario
38f5288be8
docs: Message#type
2018-03-01 20:12:14 -06:00
Lewdcario
f64e924f0d
fix: export CategoryChannel
2018-03-01 20:09:05 -06:00
Pascal
f2c5714751
fix(StreamDispatcher): remove gratuitous parentheses
2018-03-01 19:12:15 +01:00
FireController1847
ced93fe826
Specify that Client#uptime is "in milliseconds" ( #2288 )
2018-03-01 18:25:17 +01:00
Gus Caplan
7f5c1038db
fix websocket ratelimits ( #2014 )
2018-03-01 18:25:00 +01:00
Gus Caplan
af75e43900
proper fix for #1685 ( #1805 )
...
* Update WebSocketConnection.js
* Update WebSocketConnection.js
* Update WebSocketConnection.js
* Update RESTManager.js
2018-03-01 17:50:07 +01:00
Lewdcario
b79722a77b
docs: remove trailing commas
2018-02-27 17:43:51 -06:00
Lewdcario
2b24b10246
docs: trailing commas
2018-02-27 11:13:56 -06:00
Isabella
af3517594f
docs: improvements
2018-02-27 10:43:31 -06:00
Pascal
c6f92c1bc5
fix: if present, wait for libsodium-wrappers' ready to support v0.7.3
2018-02-26 11:35:51 +01:00
Kyra
b7851bad37
perf(Collection): Performance improvements ( #2342 )
...
* Update Collection.js
* ESLint
2018-02-21 22:03:40 +01:00
Sanctuary
0ec53c9d6f
docs: Add links for the guide ( #2346 )
2018-02-21 21:42:35 +01:00
Pascal
dc92582eb4
fix(ReadyHandler): don't create new guild instances for already existing guilds
...
See: #2319 , #2332
2018-02-21 21:41:02 +01:00
Pascal
be40858e32
chore: update typings submodule
2018-02-19 16:26:30 +01:00
iCrawl
5454a074ee
revert: changes to node 8
2018-02-17 18:19:56 +01:00
iCrawl
2254a3ee11
fix: build with node 8
2018-02-17 18:13:01 +01:00
iCrawl
da14e33ff7
fix: add node 8 to build
2018-02-17 18:11:28 +01:00
iCrawl
a7b46be923
fix: webpack minified and bump deps
2018-02-17 18:01:20 +01:00
Lewdcario
40a2f093aa
fix(VoiceChannel): setUserLimit defaulting to wrong value
2018-02-13 10:43:38 -06:00
David Siaw
8ee2788baf
fix(StreamDispatcher): properly check that timestamp fits in 2^32-1 ( #2325 )
...
* fix a very strange bug caused by massive timestamps sent to discord
* remove 'gratituous' spaces
2018-02-11 08:35:46 +01:00
Pascal
3df3741922
backport/fix(GuildDelete): disconnect voice and cleanup GuildChannels
2018-02-05 13:03:43 +01:00
Pascal
96904b1826
fix(AudioPlayer): add opus to destructured key of stream options
...
This fixes #2079 (VoiceConnection#playOpusStream being broken)
2018-02-05 10:42:47 +01:00
Lasse Niermann
1f14758e0c
docs(ClientUser): mark email field as user account only property ( #2306 )
...
* Store Mail - User Account Only
Added that info
* docs(ClientUser): mark email field as nullable
2018-02-01 20:06:59 +01:00
Lewdcario
52c402faea
fix(resolveColor): not interpreting DEFAULT correctly
2018-01-28 19:04:55 -06:00
Lewdcario
e978253896
fix(Webhook#send): incorrect docs + return
...
Two things:
* Documentation doesn't account for possible raw object return
* Allows the return to be a Message object as well, like the docs originally intended
2018-01-24 13:06:05 -06:00
Pascal
8df1ac9920
fix(startTyping): return, to not overwrite already existing entries
2018-01-22 14:09:27 +01:00
Cynthia Lin
00e2f39ea1
fix(client#voiceConnections): Incorrect docs description ( #2280 )
2018-01-20 22:09:39 -06:00
Pascal
b5ff309bf9
fix(CategoryChannel): set the type to 'category' and document its type
2018-01-20 23:27:18 +01:00
Schuyler Cebulskie
6e10d258b6
Tweak readme and docs welcome page
2018-01-18 20:16:59 -05:00
Schuyler Cebulskie
aafb291ce2
Update typings submodule URL
2018-01-18 19:45:04 -05:00
Schuyler Cebulskie
51ddd6595c
Update repository references
2018-01-18 14:40:02 -05:00
Schuyler Cebulskie
bb8ed98a85
Merge remote-tracking branch 'origin/11.3.1-dev' into 11.3-dev
2018-01-18 14:32:36 -05:00
Amish Shah
c49c5576d0
Point discord.js-docgen dependency to its new location
2018-01-18 17:56:46 +00:00
MaySoMusician
8cbefcc081
[v11.3.x] Fix param to setPresence in setActivity ( #2270 )
...
ClientUser#setPresence in master branch (latest) calls client.presences.setClientPresence, but that in v11.3 does not
so i change parameter sent to setPresence for clearing the game activity, from activity:null to game:null,
for now until setPresence gets updated
2018-01-18 02:39:54 -06:00
Isabella
932980e91f
fix(guild#createRole): incorrect guild reference
2018-01-16 08:28:08 -06:00
Schuyler Cebulskie
2c8eb8a1ec
Fix grammar
2018-01-14 19:03:21 -05:00
Amish Shah
c4b1be8506
i didnt even want to update deps but no here we are updating deps for a version nobody will use because they all use v12
2018-01-13 20:39:47 +00:00
Schuyler Cebulskie
4584148706
Merge branch '11.3-dev' of https://github.com/hydrabolt/discord.js into 11.3-dev
2018-01-13 14:22:10 -05:00
Schuyler Cebulskie
0b28998af8
Update docs
2018-01-13 14:22:05 -05:00
Amish Shah
c27ecf678e
Update dependencies
2018-01-13 18:52:20 +00:00
Amish Shah
233889cf3a
Update typings
2018-01-13 17:28:20 +00:00
Isabella
f62fa05389
fix(Message#addReaction): incorrect regex ( #2247 )
2018-01-13 17:22:23 +00:00
Isabella
2efe2d28f2
fix(Channel#startTyping): less breaking ( #2232 )
...
* fix(Channel#startTyping): less breaking
* silent
* appelation suggestion
* space suggestion
2018-01-11 16:18:40 +00:00
Frangu Vlad
0821acfa99
Fix iter issues ( #2237 )
2018-01-09 21:17:46 +01:00
Isabella
d94ead70f8
fix(avatarURL): gifs not being animated ( #2195 )
2018-01-05 21:33:50 +00:00
Isabella
8226752098
fix(voiceStateUpdate): incorrect members.size ( #2231 )
2018-01-05 21:28:57 +00:00
Michel Nguyen
e883afa0ee
docs: fix guildChannel#toString() example ( #2203 )
...
* fix the docs
* don't log something what you don't log
2018-01-04 01:17:40 +01:00
SpaceEEC
659e89e8cd
feat: backport animated emojis support ( #2217 )
...
Commit: 84e4dd6a99
2018-01-04 01:16:50 +01:00
Isabella
c79823002b
docs: improve examples ( #2200 )
...
* docs: improve examples
another
* remove conflict
* some nuances
* backport
2018-01-04 01:14:36 +01:00
SpaceEEC
db5bdcd855
feat: backport after and before parameter when fetching a reaction's users ( #2218 )
...
Commits:
- f40a5e9f88
- 5cd42695ae
2018-01-04 01:07:14 +01:00
Isabella
b3eb1bba24
backport(Channel#startTyping): returns Promise ( #2208 )
2018-01-04 01:02:22 +01:00
bdistin
7a89598795
Update welcome.md ( #2173 )
2017-12-31 20:22:58 +01:00
Isabella
b6c89ef638
fix(verson): update package.json ( #2196 )
2017-12-31 20:19:42 +01:00
Yukine
fc5d4438f8
backporting the fix for RTP header extensions ( #2185 )
2017-12-23 12:29:06 +01:00
Isabella
6683c40a6f
fix(bulkDelete): stop rejections when filterOld=true ( #2178 )
...
* fix(bulkDelete): stop rejections when filterOld=true
* gus suggestion
2017-12-21 09:31:47 +01:00
Isabella
9f0417c09d
fix(Guild#createChannel): default to text ( #2168 )
...
update docs
doc fixes
real fix
stuf
2017-12-12 06:33:48 +01:00
Isabella
1c34819d47
fix(UserGuildSettingsUpdate): not creating settings with new guilds ( #2150 )
2017-12-06 07:10:30 +01:00
Isabella
862b2ec3d4
Backport: Guild#createChannel ( #2145 )
...
* Backport: Guild#createChannel
* this should not return a buffer
2017-12-06 07:08:46 +01:00
Isabella
d705a0c7d0
fix(VoiceChannel#edit): incorrect bitrate ( #2144 )
2017-12-04 05:38:06 +01:00
Isabella
fb6d14d099
fix(guild#createChannel): new channel returning null ( #2143 )
...
forgot to return channel.
2017-12-04 05:37:51 +01:00
bdistin
6a222ec6e9
Backport: erlpack dep fix ( #2142 )
2017-12-01 18:50:33 +01:00
Isabella
cd066849ad
feature(ClientUser): deprecate ClientUser#setGame in favour of ClientUser#setActivity ( #2127 )
...
* feature(ClientUser): backported ClientUser#setPresence
* fix ternary
* deprecation stuff
2017-11-29 23:29:37 -05:00
Isabella
e40c3f8cd0
fix(GuildAuditLogs): backport ( #2123 )
2017-11-21 09:45:26 +01:00
Isabella
22da595b50
fix(DMChannel): messages not being cached ( #2122 )
2017-11-21 09:43:53 +01:00
Isabella
cce2480bb5
feature(CategoryChannel): backport ( #2117 )
...
* feature(CategoryChannel): backport
fix
no
* ????
* bad ternary
2017-11-19 23:19:46 -05:00
Isabella
b274dba6ec
fix(GuildMember): permissions.missing is not a function ( #2118 )
2017-11-18 17:10:59 -05:00
Gus Caplan
69b7d5d58e
Fix #1903 ( #1904 )
2017-09-07 16:25:55 +01:00
Cynthia Lin
97b013de46
Fix whitespace in 11.2.0 welcome docs. ( #1887 )
2017-09-04 18:36:43 -04:00
Amish Shah
d9f772cdc1
11.2.1
2017-09-03 19:54:59 +01:00
Amish Shah
42c195c857
Merge branch '11.1-dev' into stable
2017-09-03 18:13:53 +01:00
iCrawl
77c54a94f2
Fix typo in landing page
2017-09-03 18:42:57 +02:00
iCrawl
4778a47cd4
Update docs landing page
2017-09-03 18:40:49 +02:00
iCrawl
18de265fcc
lock version numbers, prepare release
2017-09-03 18:03:13 +02:00
iCrawl
a47c30e31a
update submodule
2017-09-03 17:58:46 +02:00
bdistin
0d6b7ce641
Fix deny administrator edge case bug
...
(backport from permissions cleanup)
2017-09-03 17:43:15 +02:00
Crawl
9cdd494db6
Revert "Fix deny administrator edge case bug ( #1878 )" ( #1879 )
...
This reverts commit dbe1ae972b .
2017-09-03 17:41:07 +02:00
bdistin
dbe1ae972b
Fix deny administrator edge case bug ( #1878 )
...
(backport from permissions cleanup)
2017-09-03 16:39:27 +01:00
SpaceEEC
4df2adc801
Backporting #1863 , allowing the afk and systemchannel to be set to null ( #1865 )
...
* fix(Guild): Allow the afk and system channel to be set to null.
* make the getter return null
2017-09-01 16:14:20 +02:00
SpaceEEC
95e22c2f12
feat/fix: add DiscordAPIError#path and fixed Burst request handler handling api errors ( #1867 )
2017-09-01 16:05:22 +02:00
SpaceEEC
425efe1fe4
Consistently store message reactions keyed under their unicode ( #1852 )
2017-08-30 02:15:24 +02:00
SpaceEEC
56fe70266e
Allow Message#edit to accept a RichEmbed and fixed RichEmbed#file's type ( #1829 )
2017-08-25 19:50:01 +02:00
SpaceEEC
1fe201ae90
Backporting, doc/bug fixes as well deprecation ( #1826 )
...
* Backporting, doc/bug fixes as well deprecation
* Adress issue with not resettable icons/images
2017-08-25 15:14:05 +02:00
iCrawl
bce5b677ad
Backport passing a collection to a collector
2017-08-24 00:35:44 +02:00
Gus Caplan
85d195da52
Fix docs on resolveImage
2017-08-23 05:40:58 +02:00
Isabella
17d7f5c723
resolveImage backport ( #1822 )
...
* add resolveImage
* add groupDMChannel#setIcon + icon getter
* doc fix
* crawl no kill pls
* *whistles*
* channe
2017-08-23 05:29:22 +02:00
Crawl
a85fc91630
make webpack over 9000 times better ( #1816 )
...
* webpack stuff
* even better
* Update browser.js
2017-08-22 19:57:59 +02:00
SpaceEEC
0b22d9a774
Backporting Attachments ( #1817 )
2017-08-22 00:39:27 +02:00
SpaceEEC
f7664b01a2
Backports ( #1813 )
...
* Backported OAuth2Application 201ecd25a2
* Backported retry on 500 57b6980313
* Backported b8034525e3 and fa5c4efa2b
2017-08-21 22:25:21 +02:00
SpaceEEC
be4ccb3686
Backporting audit log reasons and createRole with position for 11.2 ( #1810 )
...
* Backporting audit log reasons and createRole with position for 11.2
* Sending kick reason via header rather than via query
2017-08-21 22:21:18 +02:00
SpaceEEC
618fa2b104
functions for setTimeout should get the context bound and not applied ( #1673 )
2017-08-20 22:26:04 +02:00
Crawl
a7e5e53e5d
Fix ClientUser#settings not showing up in the documentation ( #1757 )
2017-08-20 22:18:40 +02:00
SpaceEEC
c01e9ad828
No longer double increment the reaction count when the client reacts ( #1755 )
2017-08-20 22:17:44 +02:00
Raphael
29aef18de8
updated docs for <ReactionEmoji>.toString() so it now uses send instead sendMessage in example ( #1761 )
2017-08-20 22:17:36 +02:00
Crawl
2478092d44
More docs cleanup
2017-08-20 22:15:51 +02:00
Crawl
c7d1507e19
Docs cleanup
2017-08-20 22:08:37 +02:00
Crawl
c33b78da23
Remove reasons for now
2017-08-20 22:01:17 +02:00
Gus Caplan
e76ebb4fcb
Guild/systemchannel ( #1799 )
...
* add cool system channel
* Update Guild.js
* Update Guild.js
* Update Guild.js
2017-08-20 21:59:20 +02:00
iCrawl
b3216f26d6
Update deps
2017-08-20 21:39:27 +02:00
SpaceEEC
2809eb74ca
Always send a type now when updating own presence ( #1785 )
2017-08-17 00:16:09 +02:00
Crawl
cd4a69d009
Add Guild#nameAcronym
2017-08-12 11:50:15 +02:00
iCrawl
5dc83a1b03
Git pls
2017-08-12 11:28:47 +02:00
SpaceEEC
2611efe9c1
No longer double increment the reaction count when the client reacts ( #1755 )
2017-08-12 11:25:29 +02:00
Crawl
cba4cc2400
Audio bitrate support ( #1439 )
...
* Audio bitrate support
Note: not implemented for VoiceBroadcasts
* Fix default args, auto bitrate
* Late night typos are the best
* Changes bitrate to kbps for VoiceChannel stuff
* Add methods to manipulate bitrate while encoding
2017-08-12 11:23:47 +02:00
Évelyne Lachance
d513c4bbb9
Add count optional argument to Collection methods ( #1552 )
...
* Add `count` optional argument to Collection methods
[NON-BREAKING CHANGE]
An optional `count` argument is added to the following methods:
- random() and randomKey()
- first() and firstKey()
- last() and lastKey()
If `count` is used, the method returns an array instead of only the value. Performance impact non-existent for existing code. Performance for returning an array has been measured and this is the fastest I could find (array[i] = value is faster than array.push()).
* Update Collection.js
Fixed spacing/line length errors according to suggestions by codacy/pr
* Fixed docs
Added proper `@returns {*|Array}` as the methods might return either. Also added params where missing (whoops)
* Further doc fixes
Per Crawl's comments, fixed (i + 1) spacing as well as fixed {Integer} to {number}
* random() and randomKey() fix
Per Hydra's comment, random() and randomKey() now ensures unique values.
I've also resolved potential issues with requesting a count higher than the collection size. A collection with 10 items will only ever return at most 10 items using the `count` property.
* Can I facepalm harder
Had wrong header comments ^_^
* Fixed for "values/value" and Omited
Also, added "Positive" integer check.
* looks like I "omitted" a change, there.
* Update Collection.js
* Update Collection.js
* Update Collection.js
2017-08-12 11:18:25 +02:00
aemino
7aa791eaaa
Ignore setSpeaking requests when VC isn't connected ( #1638 )
2017-08-12 11:16:11 +02:00
Gus Caplan
407500bf52
deprecate Guild#defaultChannel ( #1752 )
2017-08-04 10:44:35 +02:00
Crawl
59122a6ba4
Update typings
2017-08-01 04:39:44 +02:00
iCrawl
8a9b6cbdb5
Stop doubling the message key
2017-07-31 01:32:44 +02:00
iCrawl
bdc61a4068
Wrong operator in flattenErrors
2017-07-31 01:29:46 +02:00
SpaceEEC
a56a24d042
Fixed DiscordAPIError#message sometimes being undefined
2017-07-31 01:26:42 +02:00
bdistin
e7ebb23f14
Fix guildMembersChunk documents for v11.1-dev ( #1734 )
2017-07-30 15:00:01 +02:00
Crawl
46a50cb57c
Fix "shitty" shortcut
2017-07-28 05:20:28 +02:00
Crawl
b27198ebe5
Update nsfw prop
2017-07-28 04:53:36 +02:00
Crawl
e91a2c6b2b
Update typings
2017-07-21 15:34:30 +02:00
Crawl
26e5ef3205
Update deps and fix webpack
2017-07-16 14:34:23 +02:00
Gus Caplan
ed84d76a42
move nsfw to the new prop ( #1687 )
2017-07-16 14:06:51 +02:00
aemino
b9434ed112
Expose DiscordAPIError and API error constants ( #1641 )
...
* Expose DiscordAPIError
* Expose API error constants
* Add typedef for APIError
* Integligently forgot to save file
2017-07-16 14:06:26 +02:00
Gus Caplan
85615aa3a1
update tern file to actually work ( #1630 )
2017-06-29 19:53:37 +01:00
Gus Caplan
822c1f533c
Fix toLowerCase errors in GuildAuditLogs ( #1627 )
2017-06-29 19:53:25 +01:00
Drahcirius
4ce4dc019e
setTimeout should use args ( #1623 )
2017-06-29 19:53:11 +01:00
Will Nelson
f1a74f214e
make token not enumerable ( #1620 )
2017-06-29 19:52:58 +01:00
Gus Caplan
85ec7c64bc
update docs for discord api error ( #1575 )
...
* aaaaa
* Update DiscordAPIError.js
2017-06-29 19:52:44 +01:00
aemino
b5de89a973
Fix VoiceConnection#authenticateFailed race condition ( #1601 )
2017-06-29 19:52:22 +01:00
Mythic
ddfa57e96d
Improve Message's ID attribute documentation ( #1450 )
...
Remove the implication that a Message object's ID is unique only to the channel it was sent on
Message ID's are snowflakes, and as stated in Discord's API documentation, globally unique throughout Discord
2017-06-29 19:51:37 +01:00
SpaceEEC
e3232bdb2b
added Guild#setExplicitContentFilter ( #1583 )
2017-06-29 19:51:11 +01:00
SpaceEEC
86ec60bc00
fix merge conflict
2017-06-29 19:48:34 +01:00
Drahcirius
830d8fb3b5
Remove global flag from ffmpeg tutorial doc ( #1582 )
2017-06-10 23:55:10 +01:00
Crawl
510ddab0f5
Fix createMessageCollector example
2017-06-08 14:50:34 +02:00
Schuyler Cebulskie
95a531ee7d
Switch to User#tag in web builds example
2017-06-08 09:35:38 +02:00
Crawl
3f7049e1a0
CRLF to LF
2017-06-06 08:45:51 +02:00
aemino
1ed6bbc4b4
Remove unused VoiceBroadcast#guaranteeOpusEngine ( fixes #1556 ) ( #1563 )
2017-06-05 06:54:56 +02:00
aemino
2116fba4c2
Opus engine fetching: don't ignore non-missing errors ( #1555 )
...
* Opus engine fetching: don't ignore non-missing errors
* typo fix
2017-06-01 10:32:12 +02:00
Amish Shah
b49266baa5
fml
2017-05-30 12:33:58 +01:00
Amish Shah
46b8a7d411
Correct documentation for VoiceConnection (see #1536 )
2017-05-30 12:33:50 +01:00
Snazzah
2f1eb71a3f
Add MEMBER_ROLE_UPDATE to returning 'UPDATE' array ( #1538 ) ( #1542 )
2017-05-29 23:55:42 +02:00
Gus Caplan
3ec08d5976
add nsfw options to 11.1 search ( #1540 )
...
* Update RESTMethods.js
* Update TextBasedChannel.js
2017-05-29 23:53:49 +02:00
Amish Shah
19d4d3bf2c
Fix #1528
2017-05-27 19:21:03 +01:00
Crawl
eb4d3627bd
Update typings
2017-05-23 11:13:59 +02:00
Gus Caplan
bb2a35a849
they can be more than just string/num/bool ( #1448 )
2017-05-21 21:25:06 +02:00
vzwGrey
8e80b6660c
Fix reaction collector example ( #1513 )
2017-05-21 21:15:23 +02:00
Crawl
c62e8bb1f0
Update typings
2017-05-21 06:40:52 +02:00
Gus Caplan
433c5e5702
you can't mutate a socket event in some browsers (webpack fix) ( #1512 )
2017-05-21 05:20:51 +02:00
Crawl
a8d34e340b
Relink permission#FLAGS on docs
2017-05-20 21:05:45 +02:00
Crawl
04f0534d33
Revert "relink Permissions.FLAGS ( #1510 )" ( #1511 )
...
This reverts commit 65afedee49 .
2017-05-20 21:02:10 +02:00
aister
65afedee49
relink Permissions.FLAGS ( #1510 )
...
(hop ai du eet raito)
2017-05-20 21:00:51 +02:00
bdistin
c903929b6b
guild setPosition missing docs ( #1498 )
...
* missing docs
* update return docs
2017-05-16 16:12:43 +02:00
Gus Caplan
28a29d5d9f
Update Invite.js ( #1496 )
2017-05-16 15:26:32 +02:00
Gus Caplan
6eced4d465
fix infinte loop issue ( #1488 )
2017-05-14 19:34:51 +02:00
Crawl
f25ced2969
Add test.sh and modified deploy.sh
2017-05-13 19:19:25 +02:00
Crawl
b9172ffe22
Add travis staging
2017-05-13 19:16:32 +02:00
Crawl
8a7a805d92
Fix webpack uglify
2017-05-13 18:18:15 +02:00
SpaceEEC
45bc653988
Failing to resolve a role should reject and not throw an error ( #1483 )
2017-05-12 15:31:04 +02:00
aemino
e3c3a4fd60
GuildMember#setVoiceChannel fix ( #1482 )
...
Looks like someone forgot to remove the full channel object from the PATCH payload.
2017-05-12 06:42:18 +02:00
Drahcirius
798018713b
invalid token errors not rejected properly ( #1478 )
...
* ready event will now throw errors properly
* ws login rejection fix
2017-05-11 00:40:47 +02:00
meew0
ea1b5beea6
Fix the mention example in the USERS_PATTERN doc comment
...
Previously it was a channel mention. Thanks @Hackzzila.
2017-05-11 00:40:39 +02:00
SpaceEEC
bb0ee59718
Handing promise rejections from GuildAuditLogs#build to the user ( #1474 )
...
* handing guildauditlog's promise rejections to the user
* Returning a new Promise to resolve a Promise.all is unnecessary.
Also for the docs, it returns a Promise<GuildauditLogs>, not GuildAuditLogs directly.
* totally did not removed that line
2017-05-09 00:19:46 +02:00
1Computer1
294f5ea5c8
Deprecate aliases ( #1469 )
2017-05-06 01:24:53 +02:00
Crawl
fd7cb41ee6
Using a traditional for loop rather than a for in loop for options.files ( #1461 )
2017-05-06 01:14:27 +02:00
SpaceEEC
1e115efa56
fix fetchMentions' auth header, options and data mapping ( #1457 )
...
* fix fetchMentions' auth header, options and data mapping
* vscode strikes again
* switched to Util.mergeDefault
* vscode
* removed duplicated optionals and switched to instanceof
2017-05-06 01:04:05 +02:00
SpaceEEC
ee622f7d9f
added Invite#presenceCount and Invite#memberCount ( #1460 )
...
* added Invite#online and Invite#memberCount
* requested change
2017-05-05 23:24:16 +02:00
SpaceEEC
1fc6e3b91e
using correct properties for invites ( #1467 )
2017-05-05 23:19:25 +02:00
SpaceEEC
6cd55ed5c9
readded docs for Client#error and Client#ready ( #1466 )
2017-05-05 20:14:56 +02:00
SpaceEEC
7d7f1b2446
update GuildAuditLogs for MESSAGE_DELETE and fixed extras ( #1464 )
...
* update GuildAuditLogs for MESSAGE_DELETE and fixed extras
* correct oder of targets
2017-05-05 19:44:41 +02:00
Crawl
328d75be7d
Update version
2017-05-05 17:08:22 +02:00
Crawl
41e0be1db3
Endpoints.Guild(...).Emoji(...) should not use CDN ( #1462 )
2017-05-05 02:23:25 +02:00
Crawl
77caa0f8d4
Update welcome docs page
2017-05-05 01:57:09 +02:00
Gus Caplan
712305dece
Update GuildAuditLogs.js ( #1456 )
2017-05-04 00:50:16 +02:00
Anxeal
e96daba7c0
Fix typo in RESTMethods.js ( #1455 )
...
Mentions should be written with a capital M
2017-05-03 20:36:22 +01:00
Anxeal
3a73628567
Fix typo in RESTMethods.js ( #1454 )
...
fetchMeMentions -> fetchMentions 🤔
2017-05-03 20:36:17 +01:00
Amish Shah
cdc355811e
New is also optional
2017-05-01 22:10:45 +01:00
Amish Shah
ce8dc85f78
watch me, gus
2017-05-01 22:09:14 +01:00
Amish Shah
2d416cca79
Improve GuildAuditLogs documentation by creating an AuditLogChange typedef
2017-05-01 21:07:46 +01:00
Cody A. Taylor
61a081faa5
Document flattenErrors keys param ( #1447 )
...
* Document flattenErrors keys param.
* Remove parens.
* Capitalise a letter
2017-05-01 20:47:45 +01:00
Gus Caplan
3bab4ec9fd
Add time methods to Audit Log entries ( #1443 )
...
* aaaaa
* Update GuildAuditLogs.js
2017-05-01 18:05:15 +01:00
aemino
2bf8a36077
Allow await endpoint stage to not error ( #1444 )
2017-05-01 18:01:28 +01:00
Amish Shah
fccd0bd183
docs
2017-05-01 16:39:43 +01:00
Amish Shah
c48f042785
silly hydar
2017-05-01 15:42:47 +01:00
Amish Shah
b8018d4b6d
Reconnect on 1000 if client didn't close
2017-05-01 15:32:40 +01:00
Amish Shah
6e4b744d03
Export ClientOAuth2Application
2017-05-01 15:27:44 +01:00
Amish Shah
135d9e3ea0
Expose GuildAuditLogs
2017-05-01 15:25:21 +01:00
Amish Shah
51a2e465bd
Let client know who closed the WebSocket
2017-05-01 15:24:02 +01:00
Amish Shah
2ace21c412
backwards compat docs
2017-05-01 15:10:11 +01:00
Amish Shah
140839128a
Fix ban delete days
2017-05-01 15:07:02 +01:00
Amish Shah
47fbd18eda
docs
2017-05-01 15:06:26 +01:00
Amish Shah
0f4983852e
Fix ban message delete days
2017-05-01 14:57:27 +01:00
Amish Shah
db45d99d0c
More deprecated stuff
2017-05-01 11:28:48 +01:00
Amish Shah
8bab9fb122
Add VIEW_AUDIT_LOG to Permissions docs
2017-05-01 11:15:09 +01:00
Isabella
a02e10926d
Stop using deprecated methods within discord.js ( #1441 )
...
* fix deprecation stuff
* fixed a check
2017-05-01 10:14:26 +01:00
Drahcirius
166161d6d3
ready event will now throw errors properly ( #1440 )
2017-05-01 08:43:35 +01:00
Amish Shah
892ba67d71
Emit packet handling errors to the error event and not the debug event
2017-05-01 07:56:13 +01:00
Crawl
c3be798663
Update GuildAuditLogs.js
2017-05-01 01:03:12 +02:00
Gus Caplan
7779069e32
add audit logs "extras" ( #1435 )
...
* add audit logs "extras"
* whoops
* Update GuildAuditLogs.js
2017-04-30 23:57:42 +01:00
Gus Caplan
1ddae43fed
Add class doc blocks to Audit Logs ( #1438 )
2017-04-30 23:57:06 +01:00
SpaceEEC
c5efa985fc
Readding Client#disconnect and docs for Client#reconnecting ( #1437 )
...
* readded docs for client#reconnecting and client#disconnect
* moved disconnect event emitting and clarified emitting reason
2017-05-01 00:16:02 +02:00
Amish Shah
0754ddbc34
Reset sequence when sessions are invalidated
2017-04-30 22:26:44 +01:00
Gus Caplan
37b1f38ebe
Make audit log entries a collection ( #1436 )
2017-04-30 21:25:22 +01:00
Amish Shah
c2566d230c
Wait undo that
2017-04-30 21:04:39 +01:00
Amish Shah
474a954938
Force deaf/mute properties to be booleans even when null data is received
2017-04-30 21:04:11 +01:00
Amish Shah
e460e5e853
Fix some stuff
2017-04-30 21:01:04 +01:00
Crawl
457b9600f2
Docs consistency plz
2017-04-30 13:16:19 +02:00
Amish Shah
9841615775
Merge branch 'master' of https://github.com/hydrabolt/discord.js
2017-04-30 12:10:27 +01:00
Amish Shah
c880f10714
Update bufferutil peerdep requirement from ^2.0.0 to ^3.0.0
2017-04-30 12:10:22 +01:00
Crawl
3cb4aac65a
Remove unused util
2017-04-30 13:03:51 +02:00
Crawl
653aa6c1d7
Add back uws to the docs frontpage
2017-04-30 13:02:44 +02:00
Crawl
62ac246162
Add uws back to the readme
2017-04-30 13:01:46 +02:00
Crawl
bd6317cf99
Add uws back to package.json
2017-04-30 12:59:11 +02:00
Amish Shah
edf1a3e7b4
Undeprecate uws and fix support for it
2017-04-30 11:56:24 +01:00
Amish Shah
f20f49388d
Simplify data unpack logic
2017-04-30 11:40:16 +01:00
Amish Shah
007b1226c9
Rudimentary support for uws while it is deprecated
2017-04-30 11:36:20 +01:00
Amish Shah
8e5c600227
Make OAuth2Application backwards compatible again
2017-04-30 11:21:48 +01:00
Amish Shah
dd110f4824
Add example for creating VoiceBroadcasts
2017-04-30 11:04:41 +01:00
Amish Shah
81b176cfea
BaseOpusEngine should be private
2017-04-30 11:01:26 +01:00
aemino
5cad25ea69
Add Guild#me ( #1384 )
...
* Add Guild#me
(also did minor docs cleanup)
* Don't use Guild#member as there's nothing to resolve
* Update ClientDataResolver.js
* Update Guild.js
* Update Guild.js
* Update Guild.js
2017-04-30 04:30:59 -04:00
Pg Biel
9a5de25d79
Emoji convenience methods ( #1378 )
...
* make branch
* stuff
* Consistency & remove role(s)
* kill me
* Doc changes
Requested by Crawl
* forgot 1
2017-04-30 04:51:15 +02:00
Crawl
ac92d2cecc
Improve docs a bit
2017-04-30 04:30:44 +02:00
Schuyler Cebulskie
3f8c0a4d11
Move things
2017-04-29 20:56:40 -04:00
Schuyler Cebulskie
e2c8ba5be0
Allow MessageMentions#channels to function in DMs
2017-04-29 20:18:23 -04:00
Schuyler Cebulskie
aa35e21b84
Revert "Make MessageMentions#channels return an empty collection in DMs ( #1430 )"
...
This reverts commit 88aa947376 .
2017-04-29 20:00:36 -04:00
Schuyler Cebulskie
4bca4a5181
Update typings
2017-04-29 19:59:22 -04:00
Gus Caplan
6f96cf7325
Use Target variables for consistency ( #1431 )
2017-04-30 00:36:26 +01:00
Amish Shah
ee37d859a4
dumb ass bug fix
2017-04-29 22:47:06 +01:00
Amish Shah
1a69331f0c
Merge branch 'master' of https://github.com/hydrabolt/discord.js
2017-04-29 21:09:56 +01:00
Amish Shah
c40252381b
Deprecate all the things
2017-04-29 21:09:53 +01:00
Gus Caplan
4127cf6e40
Experimental support for Audit Logs ( #1403 )
...
* start audit logs
* make better var types so gawdl3y doesn't shit on this
* add constructor stuff
* make more changes
* add entry creation
* add methods
* make it all work hopefully
* aaa
* aaaa
* i wish i could test this locally
* fix users, guild when i feel like it
* make guild prop non-enumerable
* make better types
* change nouns
* e
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* eek
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* friggin trailing spaces
* Update GuildAuditLogs.js
* docs!
* Update GuildAuditLogs.js
* reason stuff
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* support before/after for pagination
* Update Guild.js
* Update GuildAuditLogs.js
* mfw using github web editor
* fix build
* Update Guild.js
* amazing cache fuckery shit evil
* cool stuff
* make building audit logs nicer
* ban endpoint stuff
* dox
* <.<
2017-04-29 20:34:57 +01:00
Amish Shah
b0a3528411
sorry gus i borked
2017-04-29 20:00:05 +01:00
Amish Shah
5b2ca326d4
ESLint pls >.>
2017-04-29 18:07:48 +01:00
Amish Shah
f7d65991d5
Minor refactor of Actions
2017-04-29 17:56:36 +01:00
Amish Shah
dd8f77fcf0
Stop the EventEmitter debug warnings when fetching lots of guilds before ready
2017-04-29 17:46:36 +01:00
Amish Shah
584961b04b
Debug resume from connection not Client
2017-04-29 15:58:12 +01:00
Amish Shah
2e33bf583e
Try to fix StreamDispatchers ( #1387 )
2017-04-29 15:12:34 +01:00
SpaceEEC
88aa947376
Make MessageMentions#channels return an empty collection in DMs ( #1430 )
...
* Make MessageMentions#channels return an empty collection in DMs
* reduce code duplication and corrected docstring
2017-04-29 14:33:18 +01:00
stupid cat
d6b7d31047
Better ClientUser#setStatus for self bots ( #1428 )
...
* better setstatus for selfbots
* make both calls
* must return
* use setpresence, set invisible
2017-04-29 14:31:32 +01:00
Will Nelson
13672cc637
Export ReactionCollector and Collector ( #1426 )
2017-04-29 14:27:39 +01:00
SpaceEEC
956372731f
Using ws.connection.status rather than undefined ws.status ( #1429 )
2017-04-28 21:27:30 +02:00
Drahcirius
9ee695a291
incorrect variable name convention ( #1427 )
...
I'm not pr farming, I swear.
Gus told me to fix it.
2017-04-28 19:46:24 +02:00
Will Nelson
35c4c552f4
[wip] Fix collector documentation (again) ( #1416 )
...
* remove private on abstract methods, fix timeout type
* make client readonly, add documentation to abstract methods
* document implemented collector methods
2017-04-28 19:45:46 +02:00
Drahcirius
89745fe132
emojis should use cdn endpoint ( #1425 )
2017-04-28 18:47:18 +02:00
Drahcirius
2accb7b6fd
small typo fix in emoji id endpoint ( #1424 )
2017-04-28 18:11:12 +02:00
Amish Shah
195fcfa15c
Rewrite WebSocket internals ( #1410 )
...
* Start rewriting Manager and Connection
* more stuff
* stuff
* Fix ready bug
* some stuff i forgot
* fix some stuff
* add stupid heartbeat ack like seriously who cares
* woo!
* fix a bug
* rate limit the dumb websocket
* stuff
* hdocs
* Docs
* Remove ClientManager#setupKeepAlive as it is now redundant
* Change Client._pingTimestamp to a getter that fetches the timestamp from the WebSocketConnection
* are you happy now eslint smh
* make gus happy
* Add CloseEvent external doc
* Make sure to emit 'reconnecting' when actually reconnecting
* ffs
* Fix RESUME logic
* Add heartbeat ack debug messages, including latency data
* Dumb stuff for Gus
* thx eslint
* more dumb stuff
* more dumb crap smh gus i h8 u
* moar messages
* fix for using wrong status, causing certain events not to be fired (#1422 )
2017-04-28 16:13:06 +01:00
SpaceEEC
95bcac9d9b
Throwing 'Message not found' error when fetching from empty channel or without read history permission. ( #1394 )
2017-04-28 17:02:52 +02:00
Gus Caplan
1601ad14e3
i hate my life ( #1420 )
2017-04-27 00:21:03 +02:00
Gus Caplan
5ac22691d2
Add TextBasedChannel#nsfw (excluding User and GuildMember) ( #1419 )
2017-04-26 23:01:27 +01:00
bdistin
298ee4e79f
Throw an error if you try to initiate a new SnowflakeUtil class instance ( #1413 )
2017-04-25 23:29:30 +02:00
SpaceEEC
909b825c94
Fixed acknowledging of channels ( #1411 )
...
* Fixed acknowledging of channels
* using channel#lastMessageID and resolve when it's not present
2017-04-25 23:29:08 +02:00
Amish Shah
eb9c280d5f
CRLF to LF
2017-04-25 18:08:27 +01:00
Crawl
10138dfad2
Update voice docs page
2017-04-25 07:10:09 +02:00
Gus Caplan
c670209021
allow search('string here') ( #1408 )
2017-04-24 16:43:30 +02:00
Crawl
53eda09f72
Improve docs
2017-04-24 16:29:29 +02:00
SpaceEEC
401822a094
Made search argument optional, added useronly warning and fixed endpoint ( #1407 )
2017-04-24 14:31:39 +02:00
Crawl
aec0a095e3
Make sentence better (English is hard)
2017-04-24 08:45:29 +02:00
Crawl
4a18ac72ce
Add some more comments to the example
2017-04-24 08:35:51 +02:00
Crawl
bbb5d4c7a1
Update examples
2017-04-24 08:34:00 +02:00
Crawl
b15e012788
Fix silly typo cant -> can
2017-04-24 08:24:45 +02:00
Crawl
fb5b8f8548
Remove uws from package.json
2017-04-24 08:22:28 +02:00
Crawl
c538c076ff
Deprecate uws
2017-04-24 08:21:54 +02:00
Gus Caplan
59e733cef6
deprecate aliases ( #1397 )
...
* hype
* add doc dep tags
* fix that
* hopefully fix docs
* Update TextBasedChannel.js
2017-04-24 08:05:24 +02:00
Crawl
96041dbd3a
Fix doc string
2017-04-23 08:51:07 +02:00
Crawl
6abe014ac3
Change theme prop type
2017-04-23 07:04:44 +02:00
Crawl
c095610bb4
Change docstring
2017-04-23 06:50:43 +02:00
Crawl
98ee016b83
Add .npmignore to reduce module filesize
2017-04-23 06:07:53 +02:00
Crawl
c0c2fd1493
Remove yeoman generator link
2017-04-23 05:53:33 +02:00
Amish Shah
26069a44e2
nope i was right the first time
2017-04-22 21:23:20 +01:00
Amish Shah
3465a154d5
that should be 60 tbh
2017-04-22 21:20:50 +01:00
Amish Shah
eec79b5fd0
Increase WebSocket backoff time to alleviate reconnect issues
2017-04-22 21:16:58 +01:00
Crawl
64b378f7d4
Update sharder test
2017-04-22 19:47:22 +02:00
Crawl
7d5bfccd67
Update package.json
2017-04-22 18:15:26 +02:00
SpaceEEC
5b3e971c5c
Message.editedTimestamp should be a number ( #1402 )
2017-04-22 16:54:48 +02:00
Crawl
6c4f63ed72
Make @types/node a devDependency
2017-04-22 15:00:37 +02:00
Crawl
c3bc6d5234
Update to latest eslint
2017-04-22 14:56:10 +02:00
Will Nelson
794c0e131d
how2docs ( #1400 )
2017-04-22 01:56:23 +02:00
Amish Shah
5605dc04e1
Fix #1399 (Trying to unset games with values other than null doesn't end up displaying properly for mobile clients)
2017-04-21 11:42:19 +01:00
Will Nelson
94e2a85386
Docs fixes ( #1398 )
...
* fix collector docs
* fix message collector param type
2017-04-21 09:44:59 +02:00
Isabella
a652901d60
Throw Error for non role-resolvables ( #1322 )
...
* throw error for role names/integers being provided for role resolvables
* Update RESTMethods.js
* Update RESTMethods.js
im really bad
* Update RESTMethods.js
* removed new promise reject
ty gus
* Update RESTMethods.js
* move error to guildmember.addRole method
* Update GuildMember.js
2017-04-19 18:57:54 +02:00
Will Nelson
ca34c43ba0
Add message reaction collectors & abstract collectors ( #1335 )
...
* message reaction collectors
* docs cleanup
* abstraction
* remove pointless method
* rename reaction collector creator method
* docs and stuff
* fix docs & build
* backwards compatibility, fix docs
* fix docs
* remove deprecated comments
* betterer docs again
* Fix documentation
* Fix Alias to not break depreciated code
2017-04-19 18:52:40 +02:00
Skiptir Engu
8475a4abee
Use libsodium.js if available ( #1390 )
...
* Use libsodium.js if available
* Style consistency
* Added peer dep and update README
* Link should point to npmjs 🤔
2017-04-19 18:35:45 +02:00
Crawl
27114eebf9
Commit those in LF too
2017-04-19 18:17:23 +02:00
Crawl
1897b4f4d6
Commit those in LF
2017-04-19 18:14:37 +02:00
Crawl
b1e3309783
According to the spec just this should work
2017-04-19 17:55:00 +02:00
Crawl
fa5787cc8b
Fix arrow parens
2017-04-19 17:48:34 +02:00
Gus Caplan
47442eeba3
snekfetch v3 hype ( #1391 )
2017-04-19 16:40:07 +01:00
Schuyler Cebulskie
b7e16ad4b8
Revert "use LF instead of CRLF ( #1392 )"
...
This reverts commit 5e522e0a2e .
2017-04-18 22:41:08 -04:00
Gus Caplan
5e522e0a2e
use LF instead of CRLF ( #1392 )
2017-04-18 21:43:05 +01:00
Gus Caplan
0d83f80fc0
Fix endless reconnection bug ( #1389 )
2017-04-17 12:32:26 +01:00
Crawl
6bae7a135f
Update package.json to v11.1
...
This is to reflect version of the master branch
2017-04-16 02:22:18 +02:00
Gus Caplan
15723ece1f
Prepare examples for v12 ( #1382 )
2017-04-16 00:50:37 +01:00
Mr. Sakamoto
4aa82b4fdf
fix Guild setOwner example ( #1383 )
...
* fix Guild setOwner docs
* hello s and bye s
2017-04-15 22:13:20 +02:00
Amish Shah
bdf6f30990
Update package.json to depend on npm distribution of prism-media rather than the git repo
2017-04-15 19:46:36 +01:00
Crawl
930519c494
Update AudioPlayer.js
2017-04-13 03:17:00 +02:00
meew0
81619ac7be
Create a PR template
...
As discussed on Discord.
2017-04-13 00:57:39 +02:00
Amish Shah
8ddaa1b92c
Merge branch 'master' of https://github.com/hydrabolt/discord.js
2017-04-12 21:22:14 +01:00
Amish Shah
78895ace17
Fix reactions not being uncached once they hit a count of 0
2017-04-12 21:22:08 +01:00
SpaceEEC
d54ef0eea4
fix ( #1375 )
2017-04-12 22:06:05 +02:00
Amish Shah
dce8e83465
Add VoiceConnection#dispatcher
2017-04-12 20:36:03 +01:00
Amish Shah
36c03909dd
Clean up AudioPlayer internals, change currentDispatcher and currentTranscoder to just dispatcher and transcoder
2017-04-12 20:32:50 +01:00
Amish Shah
9eaf1456b2
Clean up AudioPlayer internals, remove the concept of multiple "temporary" streams
2017-04-12 20:12:51 +01:00
SpaceEEC
d0c2b84659
Fixed Util.arraysEqual, made it better and updated its docs ( #1374 )
...
* commit
* improved docs
2017-04-12 19:37:31 +02:00
SpaceEEC
81d7dbdc76
Fix resolveEmojiIdentifier ( #1373 )
2017-04-12 17:15:23 +01:00
Amish Shah
8b67660271
Fix contribution link
2017-04-12 15:39:26 +01:00
Lana Reeve
40c610987e
Improved EmojiIdentifierResolvable support ( #1361 )
...
* EmojiIdentifierResolvable now supports emoji IDs and pre-encoded unicode
* forgot to return the identifier and not the emoji itself
* using ? in JSDoc instead of |null
2017-04-12 06:32:18 +02:00
bdistin
c5e2ea7458
Break reconnect loop if you client.destroy in the disconnect event ( #1371 )
...
* Break reconnect loop if you client.destroy in the disconnect event
* fix lint/long line?
* God this is So UGLY, why...
* Update WebSocketManager.js
* Update WebSocketManager.js
2017-04-12 06:31:45 +02:00
aemino
39f7dc018a
Make FEC and PLP non-default ( #1372 )
...
I considered it might be useful to have something exposed that allows the end-user to set these if they want, but our current code doesn't allow for that. It'll remain an internal feature for the time being.
2017-04-12 06:30:48 +02:00
meew0
5dea21ba80
Move CONTRIBUTING.md to the new .github folder
...
There's no point in keeping it in the root directory given that it can also be in .github.
2017-04-12 01:19:16 +02:00
meew0
9b989c4fd7
Create an issue template
...
This has been created in discussion with various people on Discord.
Closes #1362 as that is obsolete now, sorry!
2017-04-12 01:16:12 +02:00
SpaceEEC
6187c17097
readded inviteLink endpoint ( #1369 )
2017-04-11 22:21:28 +02:00
xDdude
a49d4e6d43
getters for decibel and logarithmic volume ( #1355 )
...
* getters for decibel and logarithmic volume
I don't really understand where the conversion numbers come from but having this allows for an easy way to get the volume back based on what method you used to set it. I think the math is right, but yeah I've just used the conversion numbers from the other methods.
* fix trailing spaces
2017-04-11 18:21:00 +01:00
Drahcirius
84aab1021a
reaction remove fix ( #1366 )
2017-04-11 18:10:14 +01:00
Amish Shah
25e0048bbf
remove useless waiting reference
2017-04-11 17:59:27 +01:00
Gus Caplan
8dfc96d460
fix message acking ( #1368 )
2017-04-11 17:54:25 +01:00
Amish Shah
6495df50f9
Fix sequential rate limiting
2017-04-11 17:54:03 +01:00
bdistin
9365272baf
Fix embeds getting converted to collection on edgecase ( #1356 )
2017-04-10 14:30:06 -04:00
SpaceEEC
e60d2bd175
Fix MessageMentions properties always being null or empty ( #1357 )
2017-04-10 20:06:00 +02:00
Gus Caplan
0a56fa0aae
websocket cleanup ( #1346 )
...
* websocket cleanup
* resume event
* Update Resumed.js
* Update WebSocketManager.js
2017-04-10 20:02:17 +02:00
Gus Caplan
8436cbe8b1
Update User.js ( #1351 )
2017-04-10 16:20:07 +01:00
aemino
6d4fe89212
Volume stuff docs fixes ( #1354 )
...
* Volume stuff docs fixes
* 10/10 for spelling
2017-04-10 11:50:33 +01:00
Schuyler Cebulskie
3bc90dcbf1
Add export for MessageMentions
2017-04-10 03:21:14 -04:00
Schuyler Cebulskie
ebcf61ff9c
Remove MessageMentions constructor docs
2017-04-10 03:12:57 -04:00
Schuyler Cebulskie
4fa5ceed83
Fix some docstrings
2017-04-10 03:07:05 -04:00
Schuyler Cebulskie
fa016b6b41
Clean up Message#mentions and message updates
2017-04-10 03:01:50 -04:00
Crawl
878e5d7c76
Fix example typo
2017-04-10 00:39:07 +02:00
Gus Caplan
d7cf4a0919
switch snekfetch to npm dep because not everyone has git ( #1349 )
...
* Update package.json
* Update package.json
2017-04-09 15:55:35 +02:00
Gus Caplan
e5293647a3
(╯°□°)╯︵ ┻━┻ ( #1347 )
2017-04-07 12:13:13 +02:00
aemino
ab589fa5f2
VoiceConnection speaking bugfix ( #1343 )
...
Looks like I made a typo...
2017-04-06 16:20:34 +02:00
Crawl
d1d8179460
Revert "add auth session change handling" ( #1342 )
...
* Revert "User settings (#1337 )"
This reverts commit 801633b970 .
* Revert "add auth session change handling (#1339 )"
This reverts commit 5d85de0883 .
2017-04-06 13:50:31 +02:00
Gus Caplan
801633b970
User settings ( #1337 )
...
* user settings bruh
* remove development dump
* emit stuff
* i am so done
* Update ClientUserSettings.js
* modularize
* Update ClientUserSettings.js
* Update Constants.js
* Update ClientUserSettings.js
* Update RESTMethods.js
* Update ClientUserSettings.js
* <.<
2017-04-05 22:03:33 +02:00
Gus Caplan
5d85de0883
add auth session change handling ( #1339 )
...
* add auth session change handling
* eek
2017-04-05 21:52:55 +02:00
Crawl
4ebf4307e8
Update package.json
2017-04-05 21:40:38 +02:00
SpaceEEC
6ce24398ab
Fix messageReactionAdd internally & doc fix ( #1341 )
2017-04-05 21:34:14 +02:00
Amish Shah
970bfffc46
Fix emoji events ( fixes #1333 )
2017-04-05 17:05:27 +01:00
Amish Shah
140fd4ad4c
Update submodules
2017-04-05 16:08:03 +01:00
SpaceEEC
ecb8655dac
Document readonly and private properties ( #1338 )
2017-04-03 20:05:36 +02:00
Crawl
4be08406e6
Fix travis build error
2017-04-03 02:06:08 +02:00
Crawl
047cd2da5c
Fix fetchRecommendedShards
2017-04-03 01:51:15 +02:00
Crawl
6910585f69
Fix lowercase comments
2017-04-02 19:47:00 +02:00
Crawl
dde6eb003c
Force newest node-opus and opusscript
2017-04-02 19:45:10 +02:00
aemino
8716702b59
Add FEC and PLP support for Opus encoding ( #1264 )
...
* Add FEC and PLP support for Opus encoding
* Silently fail if the Opus engine doesn't support CTL
* Fixed inversed max/min functions
2017-04-02 19:43:46 +02:00
Crawl
2ff1f3dcde
Update sharder.js
2017-04-02 09:45:59 +02:00
Crawl
09489e2b9f
Fix indent on doc string
2017-04-01 21:19:39 +02:00
Isabella
d189b51da5
explicit content filter for guilds ( #1329 )
2017-04-01 21:16:30 +02:00
SpaceEEC
270bbc2731
to Endpoints.CND with you ( #1330 )
2017-04-01 21:16:15 +02:00
Crawl
7ffbbc7f07
Fix _sortedRoles in Role.js
2017-04-01 16:28:19 +02:00
Crawl
358131fb6f
Fix _sortedRoles in Guild.js
2017-04-01 16:27:55 +02:00
SpaceEEC
d2e3d6dc63
replaced 'del' with 'delete' ( #1328 )
2017-04-01 16:16:05 +02:00
Gus Caplan
cb3f6d9646
http rewrite (actually works this time!!1!) ( #1257 )
...
* rewrite http
* browser fun
* all the mimes dammit
* i need a newline
* whoops
* forgot about this
* use promises and HTTPRequest.method
* fluent
* move httpclient to external module
* branding
* middleware
* revert middleware
2017-04-01 09:04:01 +02:00
Gus Caplan
a4e0af2e45
make positions for channels and roles nicer ( #1211 )
...
* make role calculated position nicer
* make channels sortable in a nice way too
* stupid git web rebase editor
* Update Guild.js
* Update Guild.js
* Update Guild.js
* Update Guild.js
* Update RESTMethods.js
2017-04-01 08:28:54 +02:00
TimeForANinja
c4e5292516
resolve for not loggedin clients ( #1301 )
2017-04-01 08:05:46 +02:00
bdistin
bca101aac8
Fix for #1089 & Message Reactions ( #1236 )
...
* [requires more testing] Fix #1089
* Clean up unshift
* Remove <Message>.patch(data)
Nothing calls this method any longer. It is also a private method, so this shouldn't be a breaking change.
* Fix Message Reactions
Purposely reference previous reaction collections, so collection is consistant accross all message edits (no unnecisary data duplication). Makes #1221 extranious.
* Some Data Packets come Incomplete
And several properties can be falsy, so instead of || opted for hasOwnProperty().
* No reason MessageTypes should be an object...
* Use `prop in obj` isntead of hasOwnProp
per @Gawdl3y
2017-04-01 01:51:12 -04:00
SpaceEEC
07740955cf
Fixing stuff, borked by #1323 ( #1326 )
...
* several things
* see my comment
* Fixed missing stuff and returned undefined
2017-04-01 07:29:31 +02:00
Gus Caplan
305a7d14af
whoops ( #1325 )
2017-03-31 23:13:41 +02:00
Gus Caplan
e86ec7de6f
Update Constants.js ( #1324 )
2017-03-31 19:42:16 +02:00
Gus Caplan
1df3b84da6
rewrite endpoints for consistancy and modularity ( #1323 )
...
* rewrite endpoints for consistancy and modularity
* clean up a bit
* add missing endpoint
2017-03-31 18:36:09 +01:00
Amish Shah
1cb227d6d8
Update license
2017-03-31 18:18:29 +01:00
SpaceEEC
e08f2bad30
Add guild#createRole resolve permissions and RoleData optional ( #1321 )
...
* resolving permissions
* make RoleData optional
2017-03-31 12:55:23 +02:00
Crawl
f73e6a3e4d
Fix typo in MessageEmbed#video
2017-03-30 22:14:06 +02:00
Gus Caplan
dd3831fa1e
Remove type error from Collection#exists() ( #1320 )
2017-03-30 11:01:07 -04:00
1Computer1
5334682682
Add missing properties for MessageEmbed ( #1300 )
...
* Add missing properties
* Derp
2017-03-30 08:47:34 -04:00
Gus Caplan
104f3397af
Add defaultRole to guild ((╯°□°)╯︵ ┻━┻) ( #1311 )
...
* (╯°□°)╯︵ ┻━┻
* Update Guild.js
2017-03-30 08:44:08 -04:00
Vap0r1ze
61f5051dfd
Fix invite resolver ( #1318 )
...
Old version only worked with temporary links.
Now works with: vanity invites, and permanent invites.
2017-03-30 08:41:18 -04:00
SpaceEEC
55141b408b
Fix ( #1306 ) MessageRection#fetchUsers() return a collection istead of an array
2017-03-30 12:02:00 +02:00
Alexandre B
c86ebefecb
Updated uws package version. ( #1315 )
2017-03-29 21:51:30 +02:00
Schuyler Cebulskie
c73b9483f4
Clean up and add comments
2017-03-22 01:16:30 -04:00
Schuyler Cebulskie
cff7069275
Switch from for..of to forEach
2017-03-22 01:12:46 -04:00
Drahcirius
8444f19662
Added mentions.members ( #1271 )
...
* Added mentions.members
* made member.mentions undefined on when not on guild channel
* changed property to getter
* Update Message.js
2017-03-22 01:08:25 -04:00
SpaceEEC
beffcd31cd
fix guildWebhooks endpoint ( #1284 )
2017-03-21 16:31:02 +00:00
Gus Caplan
dd8907472c
nonce has to be a uint64 :< ( #1240 )
...
* nonce me daddy
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* (╯°□°)╯︵ ┻━┻
* Update RESTMethods.js
* Update RESTMethods.js
2017-03-21 03:17:20 -04:00
Gus Caplan
3e0c0f44a2
make useragent better because data is fun ( #1244 )
...
* Update UserAgentManager.js
* Update UserAgentManager.js
* gawdl3y is one of the most pants-on-head retarded people i have ever met
* Update UserAgentManager.js
* Update UserAgentManager.js
* Update UserAgentManager.js
* Update UserAgentManager.js
2017-03-21 03:12:20 -04:00
Schuyler Cebulskie
58068fdae9
Change check for array/number, and fix docs
2017-03-21 02:53:08 -04:00
Schuyler Cebulskie
245bd91101
Allow Permissions constructor to take array of perms
2017-03-21 02:45:11 -04:00
Schuyler Cebulskie
79278bccb4
Fix Permissions.resolve to return a combined bitfield for arrays
2017-03-21 02:16:18 -04:00
Programmix
633e3ca896
Fix addRole/removeRole when the user has/doesn't have the role ( #1288 )
2017-03-21 01:52:43 -04:00
Schuyler Cebulskie
2e54f6d90d
Was worth a shot
2017-03-21 01:49:12 -04:00
Pg Biel
64ce829ab2
Make FetchMessage work for non-bot users ( #1291 )
...
* [WIP] make fetchMessage work for normal users
wip
* Actual thing
* not WIP anymore
better docs
* oops
* better stuff
* Update TextBasedChannel.js
* Update TextBasedChannel.js
* Update TextBasedChannel.js
2017-03-21 01:42:39 -04:00
Schuyler Cebulskie
2349238f69
Fix #1287 (Role#serialize)
2017-03-21 01:24:53 -04:00
Schuyler Cebulskie
f5da1f2411
Add missing symbol correction to ESLint
2017-03-19 15:50:23 -04:00
Schuyler Cebulskie
bfb3f39e94
Remove unnecessary options for arrow-parens rule
2017-03-17 01:47:50 -04:00
Schuyler Cebulskie
e757f7c0d8
Add two more ESLint rules, and move arrow-parens
2017-03-17 01:44:42 -04:00
Schuyler Cebulskie
41c67766d8
Update ESLint dependency (forgot to include this)
2017-03-17 01:25:30 -04:00
Schuyler Cebulskie
136cab240d
Add new ESLint rules
2017-03-17 01:23:39 -04:00
Crawl
2237749d29
Fix richEmbed attachFile
2017-03-16 17:07:11 +01:00
SpaceEEC
6983798820
Fix optional args for sendFiles ( #1278 )
2017-03-16 16:20:37 +01:00
Gus Caplan
94062d19dd
Add message/channel/guild acknowledging ( #1239 )
...
* add acking
* 👀
* Update RESTMethods.js
* Update TextBasedChannel.js
* Update RESTMethods.js
* Update Guild.js
* Update TextBasedChannel.js
* Update Message.js
* super shitty names
* Update GroupDMChannel.js
* Update DMChannel.js
* Update TextChannel.js
2017-03-16 09:38:12 -04:00
Gus Caplan
fa609caee2
remove pako ( #1258 )
2017-03-16 09:15:48 -04:00
Crawl
1f2d8bfbc1
Add missing sendFiles doc and on channels
2017-03-16 00:47:05 +01:00
bdistin
8729ee6a1d
Fix #1253 : Permission Overwrites Resolution ( #1255 )
...
* Fix #1253
* apparently @ everyone role can be undefined
* Fix oops
* Fixes possible mutiple roles named '@everyone'
* Clean up order/logic
2017-03-15 15:29:34 +01:00
Gus Caplan
a82d9f1fbb
add multi-file support ( #1268 )
...
* add multi-file support
* (╯°□°)╯︵ ┻━┻
(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻
* stupid git web rebase editor - Gus2k17
* Update TextBasedChannel.js
* Update TextBasedChannel.js
2017-03-15 15:10:49 +01:00
SpaceEEC
6b26d28c06
Fix ( #1262 )
...
Not ignoring the filterOld boolean when a number is being passed instead of collection or array
2017-03-14 22:58:21 +01:00
Crawl
4ef0ec491c
Add arrow-parens eslint rule & fix inconsistencies
2017-03-13 15:56:00 +01:00
Motion
cee0d58fb8
Added docs warning for acceptInvite method ( #1267 )
...
Added docs warning for acceptInvite method (user account only iirc)
2017-03-13 07:04:31 +00:00
1Computer1
bbd89585c6
Add RichEmbed fields error handling ( #1243 )
...
* RichEmbed fields error handling
* Fix consistency
* Update RichEmbed.js
2017-03-09 20:58:46 -05:00
bdistin
14ae7cdf17
[Docs] Evaluated Permissions References ( #1250 )
...
* Docs / Permissions Overwrites Reference
* Docs / Evaluated Permissions Reference
* Clarify role.permissions is not evaluated
* Update Role.js
2017-03-09 18:32:44 -05:00
Gus Caplan
2897692cf1
fix created timestamp precision ( #1241 )
...
* fix created timestamp precision
* perf
* Update Snowflake.js
* gawdl3y was butthurt
* Update Snowflake.js
2017-03-09 18:31:31 -05:00
Schuyler Cebulskie
21babf8859
Update GuildMember#hasPermission(s) to match Role
2017-03-07 02:53:12 -05:00
Schuyler Cebulskie
3e5096f9fe
Update Role#hasPermission, and deprecate hasPermissions
2017-03-06 19:58:42 -05:00
Schuyler Cebulskie
df2333ac82
Fix Role#hasPermission
2017-03-06 19:38:58 -05:00
Schuyler Cebulskie
b926cd0dcd
Remove redundant Markdown
2017-03-06 12:22:53 -05:00
Schuyler Cebulskie
6211119928
Fix Permissions.ALL on Node 6
2017-03-06 12:21:42 -05:00
Schuyler Cebulskie
4f7e0c41ee
Doc fixes
2017-03-06 02:34:39 -05:00
Schuyler Cebulskie
30dd9be900
Pass the member into new Permissions instances
2017-03-06 02:29:35 -05:00
Schuyler Cebulskie
427eec8ccb
Fix ESLint failure
2017-03-06 02:27:04 -05:00
Schuyler Cebulskie
16fe48d405
Overhaul Permissions utilities (EvaluatedPermissions no more)
2017-03-06 02:22:42 -05:00
Programmix
055775de2f
Fix for #1219 (sodium methods) ( #1220 )
...
* Change node-opus methods
* Try using crypto_secretbox(_open)_easy
* Wrong open method name
2017-03-04 08:33:19 +00:00
Amish Shah
33de408a70
fix bulk delete endpoint
2017-03-04 00:35:54 +00:00
1Computer1
e7b0afbd1f
Add color role, hoist role getters to GuildMember ( #1188 )
2017-03-01 04:53:12 -05:00
Schuyler Cebulskie
a5740e83f4
Change burst mode warning
2017-03-01 04:51:46 -05:00
Schuyler Cebulskie
7473fd513e
Remove InviteOptions typedef, rephrase
2017-03-01 04:48:26 -05:00
SpaceEEC
fc42a46e5b
Invite options ( #1223 )
...
* test
* updated descripton
* Update GuildChannel.js
2017-03-01 04:45:05 -05:00
bdistin
25bb602d5a
Add Collection.clone() ( #1238 )
...
* Add Collection.clone()
* More efficient cloning, and concat update
* Update Collection.js
* Update Collection.js
2017-03-01 04:41:36 -05:00
Kelvin Wu
01d8d32ea9
Add typedef for GuildmemberEditData. ( #1230 )
...
* Add typedef for GuildmemberEditData.
* Farm commits
* Make terms consistent.
2017-03-01 04:36:17 -05:00
meew0
b6f74c45fe
Add a note about questions to the CONTRIBUTING.md
2017-02-27 20:45:26 +01:00
lipgloss
0e6b5e9193
Change update to create ( #1231 )
2017-02-27 07:03:24 +00:00
Amish Shah
dfb1a16e9e
One-line an if statement
2017-02-25 23:26:40 +00:00
Programmix
275c9953a0
Fixes disconnecting VoiceConnections before connected ( #1227 )
2017-02-25 23:17:39 +00:00
Schuyler Cebulskie
f3a7f59824
Several improvements
...
- Rename Guild#updateChannelPositions -> setChannelPositions
- Allow Guild#setChannelPositions to take ChannelResolvables
- Prioritise ClientDataResolver#resolveChannel's string case
- Minor cleanup
2017-02-25 15:29:32 -05:00
Amish Shah
18bcd2f7e2
Add AudioPlayer.currentDispatcher
2017-02-25 11:12:17 +00:00
Programmix
a029999b09
Doc fixes, mostly pertaining to Snowflakes ( #1218 )
...
GUS!!!! @GusCaplan
2017-02-24 15:33:51 -05:00
Programmix
76637ed10d
Fix VoiceDispatcher docs ( #1214 )
2017-02-23 21:42:41 -05:00
Amish Shah
53209fbe31
update typings
2017-02-23 20:20:49 +00:00
Amish Shah
70b35c85d6
Merge branch 'indev-prism'
2017-02-23 20:19:26 +00:00
Schuyler Cebulskie
af3d4782b9
Add a word
2017-02-22 19:31:04 -05:00
Schuyler Cebulskie
15240cfdc3
Fix contributing link on docs site, link node.js
2017-02-22 19:23:37 -05:00
Programmix
bf25caf3d3
Updated VoiceConnection to use new Util class ( #1210 )
...
pls @Gawdl3y pls
2017-02-22 22:10:26 +00:00
Amish Shah
b55e6927e9
merge fix
2017-02-22 20:39:21 +00:00
Amish Shah
8a2ec437e5
Merge branch 'master' into indev-prism
2017-02-22 20:37:59 +00:00
Gus Caplan
4c9d8d6cd7
add lots of group dm features ( #1208 )
...
* group dm stuff
* minor doc changes
2017-02-22 20:33:20 +00:00
Joschua Schneider
5c2086b351
Allow presence updating to allow null games ( #1186 )
...
* Adding resetGame functionallity
`setGame` method would allways result in an Object passed to `setPresence`.
Passing { game: null } (supported by discords WebSocket gateway to reset the current Game) to `setPresence` would still result in a Game Object sent to the endpoint.
Explicitly setting `game` to null should overwrite the `game` object provided by `localPresence` or `client.presence`.
This was neither supported by `setGame` or `setPresence`.
* Missing semicolons to resetGame and setPresence
* Fixing trailing spaces, commas and semicolons
* Moving resetGame functionality into setGame method
Minification of if statement in setPresence.
Removing resetGame method and adding a case for `game === null` to setGame method
* Adding missing space in setGame method
* Fix docs
2017-02-22 20:24:39 +00:00
lipgloss
f068010e96
Implement 'Modify Guild Channel Positions' ( #1198 )
...
* Adding shuffleArray method to utils
* Shuffle channels functionality on guild.
* Comment fix
* Removing shuffle functionality and replacing with a simple update
* Code review changes to method/variable names
* Update comment reference to channelId as well
* Updating jsdoc with typedef of ChannelPosition
2017-02-22 20:24:05 +00:00
Programmix
7fd94c29d8
VoiceConnection rework ( #1183 )
...
* VoiceConnection rework
- improves codebase
- removes concept of pending connections
- attempts to fix memory leaks by removing EventEmitter listeners
- makes voice connections keep track of its own channel when it is moved by another user
- allows voice connections to reconnect when Discord falls back to another voice server or a region change occurs
- adds events for some of the aforementioned events
* Removed unused code
* More clean up / bugfixes
* Added typedefs to Status and VoiceStatus constants
2017-02-22 20:13:52 +00:00
Gus Caplan
566135d25b
move permission stuff to the resolver ( #1185 )
2017-02-22 20:11:11 +00:00
Programmix
eb069d0249
Added volumeChange event to VoiceInterface ( #1207 )
...
VoiceBroadcast relies on this event to initialize a new Opus engine
2017-02-22 20:10:19 +00:00
Zack Campbell
f01b3f922d
Update typings submodule ( #1206 )
2017-02-22 20:09:49 +00:00
Gus Caplan
61e12c637b
Add support for more OAuth features ( #1203 )
2017-02-22 20:09:40 +00:00
Programmix
d09dfa4c37
Capitalize channel type constants ( #1209 )
2017-02-22 20:08:47 +00:00
Schuyler Cebulskie
b0338df7db
Add more required permissions to Guild#addMember
2017-02-21 15:09:46 -05:00
Schuyler Cebulskie
8d1bc30e40
Clean up dd6dd6f
2017-02-21 15:07:54 -05:00
Zack Campbell
db5259cdf1
Add RichEmbed#attachFile ( #1202 )
...
* Add RichEmbed#attachFile
Mostly for attaching local images that can be accessed within the embed image/author icon/footer icon via `attachment//filename.png` and the like.
* Update docstring to reflect valid param types
* Update TextBasedChannel.js
* Update RichEmbed.js
* Update RichEmbed.js
2017-02-21 14:29:37 -05:00
Gus Caplan
d4a84915e6
Add timeout/interval methods to WebhookClient ( fixes #1181 ), and clean up docs ( #1204 )
...
* fix up 1181
* Clean up documentation
* Update WebhookClient.js
2017-02-21 14:16:41 -05:00
Schuyler Cebulskie
f2a6c1d98c
Improve Client docs a bit more
2017-02-21 14:02:29 -05:00
Kelvin Wu
d870b27ece
Message#member should be a nullable. ( #1205 )
2017-02-21 13:49:20 -05:00
Jamelele
1273bb42ec
Doc fixes ( #1197 )
...
* Improve ban/unban examples
* Fix example comments
* Replace nondescript 'user' parameter with 'some user ID'
* Update Guild.js
* Update Guild.js
2017-02-19 16:06:18 -05:00
Jamelele
12136f8c54
Welcome example ( #1194 )
...
* Add user greeting example
* Add welcome.js to index.yml
* Reword greeting message
* Update welcome.js
* Rename welcome.js to greeting.js
* Update index.yml
2017-02-18 13:59:25 -05:00
Schuyler Cebulskie
05bba9b74a
Remove old comment part
2017-02-18 03:13:46 -05:00
Schuyler Cebulskie
7232531eb1
Move all util methods into class
...
Remove TransformMessageOptions altogether
2017-02-15 22:25:18 -05:00
Schuyler Cebulskie
63ffd8aa7c
Clarify bufferutil scenario a bit
2017-02-15 21:04:06 -05:00
Schuyler Cebulskie
8d620ac33f
Update typings
2017-02-15 20:32:39 -05:00
Schuyler Cebulskie
b91f8f27be
Fix resolveBuffer file failure behaviour
2017-02-15 16:37:31 -05:00
Gus Caplan
ec1ed15c88
Fix request handling ( #1180 )
...
* clean up ratelimiters, and disable burst until some big questions are handled
* burst mode is a work
* fix burst again
2017-02-11 12:04:24 +00:00
Mike
dd6dd6fb59
Added support for adding users to guild 2 ( #1179 )
...
* Added support for adding users to guild
added RESTMethods#AddGuildMemberOptions and Guild#addMember with typedef
AddGuildMemberOptions to be able to add user to guild as a member
through `PUT/guilds/{guild.id}/members/{user.id}`
https://discordapp.com/developers/docs/resources/guild#add-guild-member
* fixing lint errors
* Changes based on discussion
* Changes based on discussion 2
* Changes based on discussion 3
Yay! More changes.
2017-02-08 21:04:39 +00:00
Zack Campbell
2518a0f7e2
Fix for incorrect oldMember in guildMemberUpdate event after addRole ( #1129 )
...
* Fix for incorrect oldMember in guildMemberUpdate event after addRole
`addRole` would modify the cached GuildMember rather than letting it be handled internally when a guild member update packet is received from Discord, leading to the `oldMember` and `newMember` being identical following a call to `addRole`
This is currently how `addRoles` does it, and a correct oldMember is passed to the `guildMemberUpdate` event following a call to `addRoles`
* Return cloned member with added/removed role
So we can return a member object with the added/removed role without affecting the member object sent to `guildMemberUpdate`
* Wait for guildMemberUpdate and return updated GuildMember
* Fix linter errors
* Remove listeners after 10 seconds
2017-02-08 17:38:57 +00:00
Will Nelson
cdb911f2af
update setImage documentation ( #1177 )
2017-02-08 17:18:10 +00:00
Alexander
cc3e7b26b1
Add convenience function RichEmbed.addBlankField ( #1139 )
2017-02-08 17:17:13 +00:00
Gus Caplan
7c8f534a38
add random color ( #1175 )
...
* add random color
* Update ClientDataResolver.js
* Update ClientDataResolver.js
2017-02-07 01:19:43 -05:00
Alex
ab5e57d94b
Create Emoji requires a base64 data uri ( #1154 )
2017-02-06 14:19:03 -05:00
Schuyler Cebulskie
a90bd837af
Add sodium to optional packages list
2017-02-06 02:06:01 -05:00
Schuyler Cebulskie
0f6fceebb4
Update voice webpack exclusions
2017-02-06 01:57:08 -05:00
Schuyler Cebulskie
d6f17a9319
Merge branch 'master' into indev-prism
2017-02-06 01:54:31 -05:00
Schuyler Cebulskie
4dc70d8cef
Update dependencies and fix tweetnacl webpack exclusion
2017-02-06 01:27:04 -05:00
Jacob
49944747ae
Sodium ( #1172 )
...
* Use Native libsodium when available
* add newline
* fix typo of exports
* add to webpack ignore
* Update Secretbox.js
2017-02-06 01:24:54 -05:00
Schuyler Cebulskie
b859ba7639
Increase some documentation detail
2017-02-05 23:00:36 -05:00
Amish Shah
26becb570b
Fix #1168 (.hasPermission)
2017-02-04 20:58:39 +00:00
Gus Caplan
59ff1d99ba
fix types for snowflakes ( #1156 )
...
* fix types for snowflakes
* Update TextBasedChannel.js
2017-02-03 21:37:58 -05:00
Funnbot
0b5eeb08f3
clone topic in channel.clone() ( #1157 )
...
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
2017-02-03 21:37:32 -05:00
Gus Caplan
cee9e4839c
fix sending code when you aren't splitting the message ( #1162 )
...
* fasguhq4wbyghjehuibh
kjgewqhuilb
* Update RESTMethods.js
2017-02-02 16:21:26 +00:00
Gus Caplan
1e94a9e2a4
serious role position stuff ( #1159 )
...
* serious role position stuff
* kill meh
* Update Role.js
* Update Guild.js
* Update Role.js
2017-02-01 22:02:16 +00:00
Schuyler Cebulskie
02c23a8b53
Merge branch 'master' into indev-prism
2017-02-01 15:32:18 -05:00
bdistin
a2d6791cd8
Fix CodeBlock Splitting ( #1160 )
...
* Fix CodeBlock Splitting
* fix changes requested
2017-02-01 15:31:57 -05:00
Schuyler Cebulskie
e8ac18489e
Merge branch 'master' into indev-prism
2017-02-01 15:29:45 -05:00
Schuyler Cebulskie
187f43aebd
Make a letter lowercase
2017-02-01 02:06:24 -05:00
Schuyler Cebulskie
c40a511954
Change wording slightly
2017-02-01 02:03:42 -05:00
Schuyler Cebulskie
d51e45f3b9
Add bufferutil info, and uws warning
2017-02-01 02:01:36 -05:00
Schuyler Cebulskie
a5b901f4ef
Update ws and opusscript
2017-02-01 01:52:22 -05:00
Alex
ed42d7bd85
Fix backwards GuildEmojiCreate parameters ( #1153 )
2017-01-31 00:49:11 -05:00
Gus Caplan
8da915f6a1
expose createDM ( #1151 )
...
* expose createDM
* Update User.js
* in v12 we are removing these, kay?
* Update GuildMember.js
* Update User.js
2017-01-30 22:56:14 -05:00
Schuyler Cebulskie
f4724d61b2
Fix #1095
2017-01-30 22:54:37 -05:00
Gus Caplan
565c640bc6
Add role support to emoji creation ( #1141 )
...
* add role support to emojis
* specify types
2017-01-30 22:47:27 -05:00
Alex
18729b25c7
Add support to edit emojis ( #1142 )
...
* Add support to edit emojis
* Fixes for coding style.
* Add and use guildEmoji constants for updateEmoji
* Just use the Constant
* Fix typo in edit documentation
* Specify property types
* Fix ridiculous typo.
* Update Emoji.js
2017-01-30 22:47:05 -05:00
Schuyler Cebulskie
94483ae194
GOODER
2017-01-30 21:52:41 -05:00
Schuyler Cebulskie
f73fd4ec29
get grammer gooder
2017-01-30 21:27:28 -05:00
Schuyler Cebulskie
2e1310ae72
Add web build docs, many other minor doc changes
2017-01-30 21:23:06 -05:00
Schuyler Cebulskie
e9ab9c9f92
Improve scripts
2017-01-30 20:21:53 -05:00
Programmix
78dafb9480
Properly check whether an Opus engine exists ( #1150 )
...
* Properly check whether an Opus engine exists
I think I'm retarded
* Fix eslint error
* Update OpusEngineList.js
2017-01-30 16:38:47 -05:00
Gus Caplan
8ee0acf44c
make d.js great again ( #1149 )
...
get out, donald
* AGHHH
* FUHFUHFUHFUHUFHUHF
2017-01-29 19:10:25 +00:00
Programmix
7ed58f5f7f
Added Opus stream support, added volume interface ( #1102 )
...
* Added opus stream support, added volume interface
* Remove setImmediate
* Fix weird syntax error
* Most useless commit ever
You're welcome, @PgBiel
* Fix potential memory leak with OpusScript
Emscripten has the tendency to not free resources even when the Opus engine instance has been garbage collected. Thanks to @abalabahaha for pointing this out.
* Typo
* VoiceReceiver.destroy: destroy opus encoder
2017-01-29 19:07:33 +00:00
Programmix
5059c59a31
Message patching: clear mention collections ( #1138 )
...
* Message patching: clear mention collections
Fixes #1089
When discord sends an array of mentions, it is a full list of mentions -- therefore, we should clear the old mention collection. The same goes for when we re-analyze the message for channel mentions.
* Use Collection.clear() instead of new Collection
2017-01-29 19:02:54 +00:00
Fiddlekins
6fae17912e
Added try catch so that decode errors aren't fatal ( #1146 )
...
* Added try catch so that decode errors aren't fatal
* Tweaked the usage of the warn event and updated jsdocs
* Moved method into class for webpack scoping reasons
2017-01-29 18:59:00 +00:00
Digitroinc
448c93615b
fix splitting messages #1148 )
...
* fix for issue #1120
* build fix
2017-01-29 18:58:35 +00:00
Gus Caplan
2beb77ab5c
check if a guildchannel is deletable ( #1143 )
...
* Update GuildChannel.js
* eghhh
* Update GuildChannel.js
2017-01-28 10:07:53 +00:00
Pg Biel
c7f5b44e03
Add User.lastMessage, GuildMember.lastMessage and TextBasedChannel.lastMessage ( #1135 )
...
* Add User.lastMessage
* User.lastMessage and GuildMember.lastMessage
* User, GuildMember and TextBasedChannel lastMessage
* Update MessageCreate.js
2017-01-26 21:24:08 +00:00
Programmix
9a6cb6477d
VoiceReceiver: multiple streams fix ( #1132 )
...
* VoiceReceiver: multiple streams fix
silly hydar... you can't have one Opus engine instance for every stream
* Better creation of opus engine
2017-01-26 21:23:00 +00:00
Gus Caplan
87b600f78f
switch to os shim for safety ( #1136 )
...
* switch to os shim for safety
* Update Client.js
2017-01-26 21:21:43 +00:00
Programmix
ba11f76284
Fix patching message reactions ( fixes #1071 ) ( #1137 )
2017-01-26 21:20:40 +00:00
Alex
ba7c2db364
Fix createEmoji/deleteEmoji action name. ( #1110 )
2017-01-24 21:56:19 +00:00
Alexander
5173583e26
Fix empty search query parameters ( #1119 )
...
The search function was sending request to stuff like:
search?author_id=&content=&channel_id=135823828352838352
2017-01-24 21:55:59 +00:00
Programmix
c1a5bee61f
GuildMembersChunk packet handler hotfix ( #1125 )
...
* GuildMembersChunk packet handler hotfix
* Add limit, resolve properly if a query is used
* Document new GuildMemberChunk param
2017-01-24 21:55:36 +00:00
Gus Caplan
4b2053133d
more profile stuff ( #1131 )
2017-01-24 21:53:26 +00:00
Programmix
c73e501243
Fix RESTMethods.removeMessageReaction ( fixes #1114 ) ( #1126 )
2017-01-21 19:48:17 -05:00
Gus Caplan
306ea97f99
fix guild member fetching edge cases ( #1115 )
...
* thx4tipprogrammixluvubye
* consistancy
* make this loop for some reason
* so impatient
2017-01-21 16:37:28 +00:00
Schuyler Cebulskie
3545e731c0
Renamed webpack build script
2017-01-19 22:07:02 -05:00
Schuyler Cebulskie
f51ba3fb06
Update to Webpack 2.2 stable
2017-01-19 22:04:18 -05:00
Gus Caplan
0300601649
remove redundant editing ( #1116 )
...
* remove redundant editing
* update docs
2017-01-19 17:11:24 +00:00
Gus Caplan
1e6abe587b
no more ( #1117 )
2017-01-19 17:10:54 +00:00
Schuyler Cebulskie
b13fdcc8d3
Merged master into indev-prism
2017-01-18 19:23:18 -05:00
Gus Caplan
3f4cbd07dd
add voice region getting ( #1108 )
...
* add voice region getting
* clean up this mess
* add docstrings
* Update VoiceRegion.js
* Update RESTMethods.js
2017-01-18 19:14:44 -05:00
Gus Caplan
ff92905848
add warning about which class to use for embeds ( #1107 )
...
* Update MessageEmbed.js
* Update MessageEmbed.js
2017-01-18 10:55:06 -05:00
Peter Vu
93d8ec3e87
VoiceChannel#full fix on no limit channel for joinable ( #1106 )
...
* VoiceChannel#full fix on no limit channel for joinable
* Update VoiceChannel.js
2017-01-16 23:36:29 -05:00
Hackzzila
f8b9bf6884
Fix reaction events ( #1105 )
...
* Fix reaction events
* Made it better
* one line ftw
2017-01-16 22:52:25 +00:00
Amish Shah
ba465bc680
Merge branch 'master' into indev-prism
2017-01-15 14:20:32 +00:00
Gus Caplan
8c220e76ec
Fix GuildDelete typing stopping ( #1098 )
...
* whoops
* ugh
* Update GuildDelete.js
2017-01-14 23:33:26 -05:00
Programmix
d10ca8e7ba
Add VoiceChannel#full and improve joinable/join permission checks ( #1100 )
...
* Improve voice channel join permission checks
* Update ClientVoiceManager.js
2017-01-14 23:32:17 -05:00
Programmix
7cb5b22ebb
@Gawdl3y dun goofed ( #1099 )
2017-01-14 20:03:26 -05:00
Gus Caplan
48be401330
add clientuser acceptinvite ( #1081 )
...
* add clientuser acceptinvite
* Update RESTMethods.js
* Update ClientUser.js
* Update ClientUser.js
* Update RESTMethods.js
2017-01-14 21:25:12 +00:00
Gus Caplan
7f4846c826
Add option to filter old messages in TextBasedChannel#bulkDelete ( #1090 )
...
* add filtering for messages older than two weeks
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update TextBasedChannel.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update TextBasedChannel.js
2017-01-14 16:21:23 -05:00
Gus Caplan
78bf402e8e
allow users and members to not be cached ( #1097 )
2017-01-14 21:20:09 +00:00
Amish Shah
098ad195bd
Merge branch 'master' into indev-prism
2017-01-14 21:00:13 +00:00
Gus Caplan
e216fc7a81
stop spamming api, and kill typing when a guild isn't there anymore ( #1096 )
2017-01-14 17:31:52 +00:00
Schuyler Cebulskie
f647eb7a91
Clean up colour resolver
2017-01-13 22:55:10 -05:00
Schuyler Cebulskie
df02eee065
Fix Guild#large not being accurate for user accounts
2017-01-13 21:47:47 -05:00
Schuyler Cebulskie
ee1c343d78
Update dependencies
2017-01-13 21:26:25 -05:00
Schuyler Cebulskie
1e76f519dc
Add missing then
2017-01-13 21:13:54 -05:00
Schuyler Cebulskie
63c8b1b2f2
Add more info to build commit messages
2017-01-13 21:11:08 -05:00
Schuyler Cebulskie
af6c8fa4a4
Make Travis builds skip revert branches
2017-01-13 20:39:03 -05:00
Schuyler Cebulskie
fa85da19a8
Fix Travis builds continuing after failed lint
2017-01-13 20:23:49 -05:00
Amish Shah
7357fc2163
Update typings and increase performance when not listening for presence updates
2017-01-13 19:15:21 +00:00
Amish Shah
f7a4dee4e1
Merge branch 'master' into indev-prism
2017-01-13 18:58:37 +00:00
Gus Caplan
5ac410f352
Cleanup webhooks ( #1094 )
...
* clean up webhooks and fix sending messages with webhooks
* whoops
* fix up options
* Update Webhook.js
* Update Webhook.js
* Update Webhook.js
* fix docstring
2017-01-13 18:48:12 +00:00
Schuyler Cebulskie
74fd0421ba
Add missing descriptions
2017-01-13 00:18:00 -05:00
Gus Caplan
0d4eab8d24
add color resolvable, and color constants from the client ( #1080 )
...
* add color resolvable, and color constants from the client
* fix up docs
* Update ClientDataResolver.js
* add easter eggs
* Update ClientDataResolver.js
* Update RESTMethods.js
2017-01-12 18:43:22 +00:00
Gus Caplan
a3091f5262
Handle 4011 ws event code ( #1083 )
...
* 4011
* Update WebSocketManager.js
* smh gawdl3y
2017-01-11 22:59:09 +00:00
Schuyler Cebulskie
b2822c584a
Minor doc updates
2017-01-10 19:43:25 -05:00
Schuyler Cebulskie
5caa7df1d8
Add centralised reply option to message options
2017-01-10 19:25:05 -05:00
Schuyler Cebulskie
8b0e5aad38
Fix sendEmbed with array content
2017-01-10 19:22:03 -05:00
Gus Caplan
c37cd3fd91
clean up webhooks and fix sending messages with webhooks ( #1078 )
...
* clean up webhooks and fix sending messages with webhooks
* whoops
* fix up options
* Update Webhook.js
* Update Webhook.js
* Update Webhook.js
2017-01-10 16:52:12 -05:00
Amish Shah
b5026909a1
Remove DMChannel.bulkDelete and GroupDMChannel.bulkDelete
2017-01-09 18:20:05 +00:00
Enchanted13
47707d245d
Changed return type of Guild.defaultChannel ( #1079 )
...
The default channel for a Guild is always the first TextChannel in the Guild, it can't be a VoiceChannel.
2017-01-09 15:35:11 +00:00
Gus Caplan
5e7ae847de
switch to proper querystring parser because why not ( #1077 )
2017-01-08 14:49:56 -05:00
ooookai
4a7284b86e
move function getRoute(url) into class APIRequest ( #1065 )
...
this.route = getRoute(this.url);
>>>
this.route = this.getRoute(this.url);
2017-01-08 19:34:06 +00:00
Amish Shah
391b618b3f
Merge branch 'indev-prism' of https://github.com/hydrabolt/discord.js into indev-prism
2017-01-08 14:12:36 +00:00
Zack Campbell
b68283e57a
Make _array & _keyArray non-enumerable ( #1075 )
...
Because Map has no enumerable properties
2017-01-08 11:59:45 +00:00
Amish Shah
fde3a976aa
Revert "This expands the consistency of .find and .exists to include the id property" ( #1074 )
2017-01-08 10:17:10 +00:00
Jacob
2a668ac997
This expands the consistency of .find and .exists to include the id property ( #1072 )
...
* provide a more consistent api for .find
* remove random warning
* make code more concise
2017-01-08 09:02:44 +00:00
Programmix
adbd95adf0
Fix VoiceBroadcaster per-dispatcher volume ( #1073 )
2017-01-08 08:39:48 +00:00
Zack Campbell
4717c34ff6
Update typings submodule ( #1069 )
...
Added search stuff
2017-01-07 20:00:36 -05:00
Amish Shah
3b1264ad6d
Fix Buffer deprecation stuff
2017-01-07 22:30:20 +00:00
Amish Shah
9f8289e433
don't process empty sets
2017-01-07 22:09:51 +00:00
Amish Shah
de0ba9fb7c
change error to debug
2017-01-07 21:48:30 +00:00
Amish Shah
0df17b1634
Add broadcast.destroy();
2017-01-07 21:39:12 +00:00
Amish Shah
9d36be58ef
Fix typo in readme ( #1070 )
2017-01-07 21:19:37 +00:00
Amish Shah
dc640017cd
Fix some stream bugs
2017-01-07 21:10:46 +00:00
Amish Shah
fcd7cf1450
stop destructive ending of broadcasts
2017-01-07 19:44:42 +00:00
Amish Shah
bace8bcac2
make broadcast not suck as much
2017-01-07 19:38:05 +00:00
Schuyler Cebulskie
bac599b52e
Merge branch 'master' into indev-prism
2017-01-07 03:42:39 -05:00
Gus Caplan
42527ea969
fix message#isMemberMentioned ( #1061 )
...
* fix this
* e
* Update Message.js
2017-01-07 03:38:23 -05:00
Schuyler Cebulskie
e5e36d9111
Rename snowflake class to prevent naming conflicts
2017-01-07 03:37:16 -05:00
Zack Campbell
f76b47184a
Fix typo in MessageSearchOptions typedef ( #1068 )
2017-01-07 03:31:15 -05:00
Schuyler Cebulskie
add3c1a8ee
Clean up docs slightly
2017-01-07 03:29:52 -05:00
Schuyler Cebulskie
8cff77726a
Detardify snowflake docs/organisation
2017-01-07 03:22:55 -05:00
Gus Caplan
a66b2b7ec5
add more things to clientuser ( #1066 )
...
* add more things to clientuser
* add desc
2017-01-05 16:38:48 +00:00
HyperCoder
fdc8050188
Fix <Guild>.large ( #1062 )
...
* Fix <Guild>.large
Would either be true or undefined.
* Update Guild.js
* To make hydrabolt happy
* Update Guild.js
2017-01-05 15:43:57 +00:00
Gus Caplan
495264761c
Add snowflake utils ( #1064 )
...
* snowflakes
* use proper binary for snowflake example
* fix jsdoc errors
* remove dupe
2017-01-05 15:41:42 +00:00
Gus Caplan
d47f9d202b
update search to have more useful returns ( #1060 )
2017-01-03 23:49:19 +00:00
Gus Caplan
7cbe81e71a
fix editing with an array ( #1059 )
...
* fix editing with an array
* fix build
* put this back because reasons
* i'm having one of those nights
2017-01-03 06:59:34 +00:00
Schuyler Cebulskie
2c26d79f50
Replace custom ArrayBuffer converter with Buffer.from
2017-01-02 01:51:26 -05:00
Schuyler Cebulskie
f485ec22b2
Rename deploy key
2017-01-02 01:49:06 -05:00
Michael Huang
3b9b06227e
Fix _removeReaction's reaction lookup ( #1045 )
...
* Fix _removeReaction's `this.reactions` lookup
* Use emoji.identifier for reaction collection keys
2016-12-30 21:06:05 -05:00
Schuyler Cebulskie
054d4655c1
Rearrange identifier
2016-12-30 21:05:37 -05:00
Gus Caplan
2b25641270
add option for guilds per shard, and fix type ( #1053 )
2016-12-30 21:03:23 -05:00
Schuyler Cebulskie
2156ce1e15
Remove unnecessary branch specification
2016-12-30 18:06:08 -05:00
Schuyler Cebulskie
814c4e8617
Merge branch 'master' into indev-prism
2016-12-30 16:49:35 -05:00
Schuyler Cebulskie
8406e97e13
Add a little more info
2016-12-30 16:42:51 -05:00
Schuyler Cebulskie
90f8cbd09a
Add a header
2016-12-30 16:40:24 -05:00
Schuyler Cebulskie
f72817fff5
Rewrote v11 upgrade guide
2016-12-30 16:39:37 -05:00
Schuyler Cebulskie
4447e367f6
Fix other BufferResolvables with base64
2016-12-30 16:22:29 -05:00
Schuyler Cebulskie
2ea744c9d1
Reestablish the natural order and heirarchy of all things
2016-12-30 16:19:15 -05:00
Schuyler Cebulskie
eaf2091c2f
Rearrange some methods and improve search description
2016-12-30 16:17:31 -05:00
Schuyler Cebulskie
43283eeaec
Clean up search examples slightly
2016-12-30 16:15:51 -05:00
Amish Shah
8d8ac78e68
start voice topics
2016-12-30 21:12:13 +00:00
Amish Shah
91e0a81d6b
Add playArbitraryInput
2016-12-30 19:20:32 +00:00
Amish Shah
eacbfbd520
Add VoiceBroadcast#playArbitraryInput and VoiceConnection#playArbitraryInput
2016-12-30 19:13:25 +00:00
Amish Shah
ac62a58f47
Merge branch 'master' into indev-prism
2016-12-30 19:00:53 +00:00
Amish Shah
023ac0a7fe
Add search() stubs for docs
2016-12-30 18:59:34 +00:00
Amish Shah
4c8e4fde6f
Fix remove reaction endpoint
2016-12-30 18:31:48 +00:00
Amish Shah
e2753136a4
Reorganise VoiceBroadcast dispatchers and also add new events
2016-12-30 18:21:22 +00:00
Amish Shah
d13c48bafa
more tiny voice docs
2016-12-30 18:10:48 +00:00
Amish Shah
56e01291e2
Merge branch 'master' into indev-prism
2016-12-30 18:05:29 +00:00
Amish Shah
69ccc75590
more voice docs
2016-12-30 17:56:58 +00:00
Amish Shah
221e7f8b21
Voice Connection docs
2016-12-30 17:44:05 +00:00
Amish Shah
50dc9addf1
Fix ESlint error, remove 'long' module import
2016-12-30 17:28:23 +00:00
Amish Shah
f31a3725fe
StreamDispatcher documentation
2016-12-30 17:25:28 +00:00
Gus Caplan
bde6749d65
clean up search ( #1049 )
...
* add more search stuff
* clean up the options
* fix link hostname
* use some resolvers
* fix type
* move the trasform to a seperate file
* pass this param
* move typedef
2016-12-30 17:21:03 +00:00
Gus Caplan
da32c2ec3d
add more search stuff ( #1046 )
...
* add more search stuff
* clean up the options
* fix link hostname
* use some resolvers
* fix type
2016-12-30 17:14:31 +00:00
Gus Caplan
258e4b9085
fix setting avatar to buffer ( #1048 )
2016-12-30 17:00:16 +00:00
Amish Shah
3109accf87
improve broadcasting performance
2016-12-30 15:25:28 +00:00
Amish Shah
fb1d0a3e74
fix eslint
2016-12-30 15:00:56 +00:00
Amish Shah
0a6d71d7e5
try this fix idk
2016-12-30 14:45:43 +00:00
Amish Shah
90ca422485
undo that
2016-12-30 14:30:57 +00:00
Amish Shah
22a6ded341
Defer some creations
2016-12-30 14:27:59 +00:00
Amish Shah
91fc6ccb5c
VoiceBroadcasting much more efficient
2016-12-30 13:57:09 +00:00
Amish Shah
bf4010e89c
Simplify broadcast creation
2016-12-30 12:46:34 +00:00
Amish Shah
2f630a0dbb
AudioPlayer now destroys all dispatchers on closing, Broadcasts are also destroyed properly
2016-12-30 12:43:56 +00:00
Gus Caplan
beffb390e6
Add search ( #1043 )
...
* add search
* Update ClientDataResolver.js
2016-12-30 02:44:19 -05:00
Schuyler Cebulskie
f0adf8f122
Fix User#defaultAvatarURL in Node 6
2016-12-30 01:46:56 -05:00
Schuyler Cebulskie
1afb21c981
Tweak output some more
2016-12-30 01:01:16 -05:00
Schuyler Cebulskie
5fd10ef63e
Tweak Travis output
2016-12-30 00:53:53 -05:00
Schuyler Cebulskie
bcbd187223
Fix test-docs script
2016-12-30 00:07:24 -05:00
Schuyler Cebulskie
e44d571671
Add PR number output to Travis build
2016-12-30 00:06:24 -05:00
Schuyler Cebulskie
ed08c24784
Add Node 7 testing and prettify output
2016-12-30 00:05:43 -05:00
Schuyler Cebulskie
55ee566fb2
Improve Travis builds
2016-12-29 23:51:56 -05:00
Schuyler Cebulskie
b5f51d612a
Merge branch 'master' into indev-prism
2016-12-29 23:15:41 -05:00
Schuyler Cebulskie
be19a08575
Make Travis builds run for all but blacklisted branches
2016-12-29 23:12:44 -05:00
bdistin
9e70d6279f
Fix erroneous docs examples ( #1042 )
2016-12-29 22:01:18 -05:00
Schuyler Cebulskie
89cea574be
Add prism-media dependency
2016-12-29 20:06:48 -05:00
Schuyler Cebulskie
77548c194f
Add missing type
2016-12-29 20:01:30 -05:00
Schuyler Cebulskie
863e34db19
Change branch in contributing guide
2016-12-29 19:21:19 -05:00
Amish Shah
c6f17054fc
Remove unused fs import
2016-12-29 22:59:43 +00:00
Amish Shah
12605575fb
Add VoiceBroadcast.pause and VoiceBroadcast.resume
2016-12-29 21:59:36 +00:00
Amish Shah
ad18b05d66
Reset what is playing
2016-12-29 21:51:23 +00:00
Amish Shah
72a99f9582
start work with broadcast streams
2016-12-29 21:22:13 +00:00
Amish Shah
e9af3f0a1f
Merge branch 'indev' into indev-prism
2016-12-29 19:02:54 +00:00
Gus Caplan
22b1c425ac
add ClientUser.settings ( #1041 )
...
* add user settings
* Update Ready.js
2016-12-29 18:58:39 +00:00
Amish Shah
ebd2f0e73f
Update ws dependency to 1.1.1 for security
2016-12-29 17:31:49 +00:00
Amish Shah
f8440ad565
Merge branch 'indev' into indev-prism
2016-12-29 17:26:22 +00:00
Amish Shah
ab4b7ea19a
update docs
2016-12-29 17:11:10 +00:00
Amish Shah
c8f6b6b059
update typings
2016-12-29 16:41:39 +00:00
Amish Shah
f613cc3c50
Version bump package.json
2016-12-29 16:37:39 +00:00
Amish Shah
dc53b8de95
Merge branch 'indev'
2016-12-29 16:37:00 +00:00
Schuyler Cebulskie
6e51a44f92
Small doc updates
2016-12-29 11:19:30 -05:00
Amish Shah
4541b3e264
Simplify check in StreamDispatcher and add test voice bot
2016-12-29 16:10:51 +00:00
Zack Campbell
665ef21c85
Update DMChannel, GroupDMChannel for docs ( #1038 )
2016-12-29 11:04:41 -05:00
Schuyler Cebulskie
3e3de51545
Update message sending docs
2016-12-29 11:01:27 -05:00
Schuyler Cebulskie
ba77e69edf
Document boolean for code option
2016-12-29 10:51:05 -05:00
Schuyler Cebulskie
86ffc86324
Update updateMessage with the new code logic
2016-12-29 10:49:59 -05:00
Schuyler Cebulskie
650acbf662
Improve codeblock lang
2016-12-29 10:44:24 -05:00
Amish Shah
1452fa5014
Merge branch 'indev' into indev-prism
2016-12-29 14:19:39 +00:00
Amish Shah
75d45bd587
Fix sending codeblocks without a lang
2016-12-29 14:18:39 +00:00
Amish Shah
627a8870f5
change error emission logic
2016-12-29 14:14:27 +00:00
Amish Shah
e1d01ed6a2
Merge branch 'indev' into indev-prism
2016-12-29 14:04:05 +00:00
Amish Shah
6d7293e3c5
Fix sending an array of messages
2016-12-29 14:00:54 +00:00
Schuyler Cebulskie
95790dcf08
Update User#equals doc
2016-12-29 03:21:22 -05:00
Schuyler Cebulskie
1b76333b8b
Add missing @typedef line
2016-12-29 03:04:11 -05:00
Schuyler Cebulskie
fe7ed523b3
Improve ClientUser presence method docs
2016-12-29 03:01:34 -05:00
Gus Caplan
ed8fcf651a
Centralise message sending logic in one method, remove sendTTSMessage, add client shortcut in RESTMethods ( #1031 )
...
* start wip rewrite of sending/editing messages
* pass the build, modify the edit method to fit the new system
* simplify the applyToClass method
* change handling of file options
* add back message splitting
* i couldn't help myself
* add some smart message options
* clean up, add sexy options
* fix indentation
* fix up splitting
* add \b
* add back old methods for hydar happiness
* clean up more
* move code handling to the rest method
* clean up this.rest.client
* Update TextBasedChannel.js
* add docs back for the bad methods
* fix reply in group dms
* srsly gawdl3y
* make code better
* fix changes for gawdl3y
* fix checking
* remove getter
* make code handling more robust
* k
* fix up sendEmbed docs
* stupid
* fix up more docs because aaaaa
* no more pls
2016-12-28 23:58:30 -05:00
Schuyler Cebulskie
a014b59790
Update webpack
2016-12-28 21:35:19 -05:00
Schuyler Cebulskie
17a61731ef
Update typings (test)
2016-12-28 20:40:07 -05:00
Zack Campbell
dfa6740b89
Update gitmodules ( #1036 )
...
To reflect transfer of ownership of the typings repo, in case the source forwarding does not continue indefinitely going forward
2016-12-28 19:52:15 -05:00
Amish Shah
7ede44bc00
Add CloseEvent external
2016-12-29 00:27:40 +00:00
Amish Shah
18e04d69f1
Delete stream setups after they have ended or errored
2016-12-29 00:16:13 +00:00
Amish Shah
e64d9c6057
fix odd bug
2016-12-28 23:58:01 +00:00
bdistin
ea798eaaf3
Update Missing Permission Resolvables ( #1035 )
2016-12-28 18:27:02 -05:00
Amish Shah
e7824d6515
Fix weird audio playback bug between subsequent streams on an AudioPlayer
2016-12-28 23:21:34 +00:00
Schuyler Cebulskie
c1b9437f0d
Set up typings submodule
2016-12-28 18:20:38 -05:00
Zack Campbell
e4bae99747
Update GuildResolvable typedef ( #1034 )
...
To reflect the resolver supporting Guild ID strings
2016-12-28 16:50:32 -05:00
Amish Shah
00254f35b0
Make voice return streamdispatcher
2016-12-28 21:40:11 +00:00
Schuyler Cebulskie
bbeef44e66
Update ClientDataResolver.js
2016-12-28 16:32:14 -05:00
Schuyler Cebulskie
8e47058286
Update ClientDataResolver.js
2016-12-28 16:30:15 -05:00
Schuyler Cebulskie
289447e4c9
Update Client.js
2016-12-28 16:28:36 -05:00
Amish Shah
4294d267e7
Add playFile back to voice connection
2016-12-28 19:23:11 +00:00
Gus Caplan
3451367591
fix the everyone role mentioning ( #1032 )
2016-12-28 19:04:54 +00:00
Amish Shah
0a47d0e1d6
Remove old stuff
2016-12-28 18:16:26 +00:00
Amish Shah
8e75b47a7b
add back seek option
2016-12-28 17:37:56 +00:00
Amish Shah
8cf520d5af
update streamDispatcher
2016-12-28 17:28:14 +00:00
Amish Shah
be32bbc3a4
really really really messy implementation of prism
2016-12-28 17:04:18 +00:00
Gus Caplan
8d966932a9
funny ( #1030 )
2016-12-28 01:42:42 -05:00
bdistin
4d2153c7c6
Document ShardingManager#message ( #1024 )
...
* Document ShardingManager#message
* Update Shard.js
2016-12-27 22:44:17 -05:00
Zack Campbell
265021bfa5
Add sendEmbed to GuildMember for docs ( #1028 )
...
* Add sendEmbed to GuildMember for docs
* Update GuildMember.js
2016-12-27 22:35:11 -05:00
Schuyler Cebulskie
84991c767e
Improve some Gus shenanigans
2016-12-27 22:30:51 -05:00
meew0
14ba0373eb
Fix a small spelling mistake in a debug log
2016-12-27 23:16:30 +01:00
Gus Caplan
779681e88f
"knock knock. who's there? ack lol. GET OFF MY PORCH!" ( #1023 )
2016-12-27 17:31:23 +00:00
Gus Caplan
bac4ccead7
"knock, knock. who's there. discord, lol" ( #1021 )
2016-12-27 12:13:57 +00:00
Gus Caplan
b79533e373
correctly handle invalid session ( #1020 )
...
* correctly handle invalid session
* give discord some time, use it wisely
2016-12-27 00:04:09 +00:00
Amish Shah
b0c2f818a8
Remove cached events
2016-12-26 21:56:04 +00:00
Amish Shah
f510dc5a10
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-12-26 21:30:30 +00:00
Amish Shah
bf7767fe2c
Rename emoji events
2016-12-26 21:30:27 +00:00
Schuyler Cebulskie
758c801dd5
Change to function declaration
2016-12-26 15:40:34 -05:00
Alexander
b1473b1e4c
Change RichEmbed to take StringResolvables ( #1010 )
...
Changed RichEmbed to take StringResolvables for all title, name, value and
description arguments.
Also changed a few lines in setColor to make sure that the value
assigned to this.color is always a number.
2016-12-26 15:39:07 -05:00
Amish Shah
72c667b307
Fix potential ReferenceError with GuildMembersChunk
2016-12-26 20:20:58 +00:00
Amish Shah
cd657be8be
Add functionality for GuildEmoji events
2016-12-26 19:21:00 +00:00
Gus Caplan
2410fdf8d2
fix heartbeats once and for all ( #1016 )
2016-12-25 16:28:36 +00:00
Schuyler Cebulskie
fb6a8d1637
Update webpack and clean up deps
2016-12-24 20:25:29 -05:00
Schuyler Cebulskie
218920e4f1
Fix logo on GitHub
2016-12-24 20:02:36 -05:00
Schuyler Cebulskie
74c3bae506
Teensy weensy cleanup
2016-12-24 19:54:37 -05:00
Schuyler Cebulskie
ab30715028
Fix Hydar's lint errors
2016-12-24 19:49:24 -05:00
Amish Shah
544e456302
Add ClientOptions.restTimeOffset for better performance for bots with a good network connection
2016-12-24 12:13:42 +00:00
Gus Caplan
3eca3ba95e
add handler in case heartbeat is not acked ( #1013 )
...
* add handler in case heartbeat is not acked
* ffs
2016-12-24 11:04:27 +00:00
Gus Caplan
7c12fdcb56
add payload_json instead of the current iterator ( #1015 )
2016-12-24 02:04:18 -05:00
Schuyler Cebulskie
28ca83011c
Implement missing Collection#reduce functionality
2016-12-24 01:59:14 -05:00
Gus Caplan
265ac90234
Update Constants.js ( #1014 )
2016-12-23 18:41:04 +00:00
Amish Shah
2ab5bae69a
change let to const
2016-12-23 18:38:48 +00:00
Amish Shah
e63432c18e
Fix editing role positions ( fixes #864 )
2016-12-23 16:45:47 +00:00
Gus Caplan
e6a041241b
cleanup ws ratelimiting, and apirequest ( #957 )
...
* cleanup ws ratelimiting, and apirequest
* cleanup timestamps
* clean up timestamps
2016-12-23 14:37:43 +00:00
Amish Shah
74ef0b2e14
minor fixes
2016-12-23 14:37:35 +00:00
Amish Shah
b518437f52
Emit the close event on disconnect
2016-12-23 13:59:06 +00:00
Gus Caplan
2390e525ef
Fix User#avatarURL for Nitro animated avatars ( #1012 )
...
* fix avatar url
* switch to cdn
2016-12-23 00:57:49 -05:00
bdistin
f726db2152
Revert error emit on Slow Stream Gen ( #1011 )
2016-12-22 22:24:31 -05:00
Gus Caplan
cecb0aee02
Update User#setEmail/setPassword/setUsername ( #991 )
...
* fix some things with user updates and tokens and such
* fix stupid
* Update ClientUser.js
* Update ClientUser.js
2016-12-22 15:12:29 -05:00
Hackzzila
84954c8860
Add notice about disabling events ( #1008 )
...
* Add notice about disabling events
* fix english
* Update Constants.js
* Update Constants.js
* Update Constants.js
* Update Constants.js
2016-12-22 15:01:04 -05:00
Zack Campbell
4580f62a1f
Add RichEmbed to typings ( #1009 )
2016-12-22 14:50:28 -05:00
Gus Caplan
fa7d63a10a
add an invite generator ( #993 )
...
* add an invite generator
* `number |= null` is safe, so we can simplify this
* Update Client.js
* aaaaaa
2016-12-20 23:37:36 +00:00
Gus Caplan
9486609ef9
Create .tern-project ( #1003 )
2016-12-20 23:37:19 +00:00
Gus Caplan
c483dd8239
add some useful events ( #1004 )
2016-12-20 23:37:06 +00:00
Gus Caplan
84503c8877
add User#dmChannel ( #1005 )
...
* add User#DMChannel
* Update User.js
* Update User.js
2016-12-20 23:36:43 +00:00
Gus Caplan
e392107369
add ClientUser#fetchMentions ( #999 )
...
* add ClientUser#fetchMentions
Signed-off-by: Gus Caplan <gus@localhost.localdomain >
* ugh
* Update ClientUser.js
* Update ClientUser.js
* Update ClientUser.js
2016-12-19 02:16:27 -05:00
Gus Caplan
a0a3989e59
fix issue with uncached channels and adding members ( #1001 )
...
* fix this thing
* fix a silly
* Update Guild.js
2016-12-19 02:11:55 -05:00
Gus Caplan
b74c1b70b6
fix 992 ( #994 )
2016-12-18 16:06:42 -05:00
Will Nelson
736fa7c611
friendlier notification of an invalid token ( #997 )
...
* friendlier notification of an invalid token
* fixed
* even fixeder
* no token -> invalid token
* eslint
* Update RESTMethods.js
2016-12-17 13:22:39 -05:00
Gus Caplan
6c38b83923
fix runkit/tonicdev example ( #998 )
2016-12-17 17:44:25 +00:00
Schuyler Cebulskie
361547a588
Fix a bunch of capitalisation issues
2016-12-15 20:10:38 -05:00
bdistin
fbe1929bde
Pass Reason to the streamDispatcher end event ( #985 )
...
* Pass Reason to the streamDispatcher end event
* Update <dispatcher>.end() to bring inline with <collector>.stop()
Also changed "Stream is not generating quickly enough." from an end to an error, per Crawl...
* Fix docs Copy/Paste fail from collection end event
2016-12-15 16:32:37 +00:00
Gus Caplan
a20bac7258
update per issue 69 on the h&c github ( #963 )
...
* update per issue 69 on the h&c github
* clean up things that don't exist anymore
2016-12-15 16:32:19 +00:00
Gus Caplan
9c59b649ad
get rid of user agent errors ( #990 )
2016-12-15 16:32:06 +00:00
Schuyler Cebulskie
36be4c47f6
Change welcome logo to reference static one on site
2016-12-14 21:05:48 -05:00
Schuyler Cebulskie
33a4388121
Switch to SVG logo
2016-12-14 20:42:51 -05:00
Gus Caplan
2e7472bb1a
just webpack things ( #988 )
2016-12-14 19:40:47 -05:00
Alexander
264ee8e7f1
Equals updates ( #987 )
...
* Docs update
Changed the param names and param descriptions to be consistent.
* Added === comparison
Changed Presence.equals and Game.equals to first compare using ===
* Collection.equals fix
Now returns false when collection is undefined, instead of crashing
💯
2016-12-14 17:10:34 -05:00
Alexander
906bb3c5f3
Utilise Collection#equals for structures' equals ( #986 )
...
Utilizing Collection.equals in GuildChannel.equals
Utilizing Collection.equals in GroupDMChannel.equals
2016-12-14 15:35:40 -05:00
Schuyler Cebulskie
bef0523ebf
Capitalise ID in Guild#applicationId
2016-12-14 13:04:40 -05:00
Schuyler Cebulskie
f1c4ef659e
Fix a Hydar thing
2016-12-14 12:40:02 -05:00
Schuyler Cebulskie
4e76251aa2
Fix some Gus stuff
2016-12-14 12:37:23 -05:00
Gus Caplan
8139bef4e2
add some missing properties ( #978 )
...
* add premium to profile
* add other missing stuff
2016-12-14 17:23:22 +00:00
Pio
1c61b46660
Fix setBitrate typo in VoiceChannel.js ( #984 )
...
Fixed simple typo that prevented setBitrate method from working.
2016-12-14 09:45:09 -05:00
Zack Campbell
8596eadb25
Bring in latest typings fix ( #982 )
2016-12-13 20:43:49 -05:00
Perry Berman
78026df1df
fix defaultAvatarURL ( #983 )
...
looks like someone forgot how to caps
2016-12-13 20:43:28 -05:00
Cole
586d652c16
Quality of life changes ( #968 )
...
* + Added function to get a user's default avatar
+ Added HOST constant to Constants
+ Added assets endpoint
+ Added quality of life function to get a user's avatar or default avatar
+ Added quality of life function to get member's nickname or username
* * Fixed invocation of a getter.
* Fixed lint issue
* Made the API constant use the HOST constant for DRY-ness
Changed DOC comment to be more descriptive
* Update GuildMember.js
2016-12-12 22:34:19 -05:00
bdistin
3193df792e
Added Missing Author URL Option ( #979 )
2016-12-12 22:29:39 -05:00
Hackzzila
52a83b9218
Add ffmpeg-binaries as a possible source of ffmpeg ( #975 )
...
* Add ffmpeg-binaries as a possible source of ffmpeg
* Add note in faq
2016-12-11 19:02:00 +00:00
Gus Caplan
d766e727a1
add GuildChannel#clone ( #973 )
...
* add GuildChannel#clone
* e
2016-12-11 09:07:52 +00:00
bdistin
710d3db94f
RichEmbed Tweaks/Improvements ( #964 )
...
* RichEmbed Tweaks/Improvements
Changed .addTimestamp() to .setTimestamp() to bring it inline with all other single value settings.
Changed Field value to StringResolveable from String to bring it inline with typical sendMessage functionality.
* Lint Fix
* Remove Default, Add check for undefined
2016-12-09 22:10:50 -05:00
Slamakans
b79a91b3a9
new errors for richembed yay ( #966 )
...
* Update faq.md (#949 )
* fix docs
* Revert "fixed typo in documentation" (#950 )
* new errors for richembed yay
Simplified the parsing for color arrays.
Throwing some errors on values that would result in Bad Requests.
Changed setAuthor and setFooter's icon parameter to icon_url to match
the embed object's property name.
Changed the docs for setFooter to reflect that icon_url is optional.
* changed docs instead of arg names
* capitalization
2016-12-09 22:09:55 -05:00
Gus Caplan
c5f93eb44e
Add more MessageEmbed stuff ( #970 )
...
* this is why wrapping data 1:1 is a bad idea
* ffs
* whoever wrote role.hexColor is a bad, bad person
* Update MessageEmbed.js
* Update MessageEmbed.js
2016-12-09 22:07:34 -05:00
Gus Caplan
e51fed968d
hydarplz ( #962 )
2016-12-09 20:47:56 +00:00
Amish Shah
a54a62787d
simplify README
2016-12-09 17:37:48 +00:00
Will Nelson
275d9d3ce0
fix remove reactions return ( #961 )
2016-12-07 10:12:00 -05:00
Schuyler Cebulskie
a0de75f290
Improve ShardClientUtil warnings/errors
2016-12-07 00:30:36 -05:00
Gus Caplan
b177aefdd6
add user/member lastMessageID ( #959 )
...
* add user.lastMessageID
* stupid
* add member.lastMessageID
2016-12-06 23:46:32 -05:00
Gus Caplan
050d3f9303
fix serialize for webpack ( #960 )
...
* fix serialize for webpack
* Update WebSocketManager.js
* Update WebSocketManager.js
2016-12-06 23:45:31 -05:00
Évelyne Lachance
f9bf0ed5e6
Quick fix for error in guildMemberRole
...
Because Gus is a massive derp.
2016-12-06 18:35:33 -05:00
Gus Caplan
d67ecdd2af
fix authenticating role updates ( #956 )
...
* Update RESTMethods.js
* Update RESTMethods.js
2016-12-06 17:23:40 +00:00
Zack Campbell
37bfdd154c
Fix embed footer text length error ( #955 )
2016-12-05 20:50:25 -05:00
Zack Campbell
daa79b7f97
Add more errors for RichEmbed builder char limits ( #954 )
...
* Add more errors for RichEmbed builder char limits
Might as well if we're erroring on number of fields when that's the one limit that doesn't actually throw a bad request.
* Fix name.length check in previous commit
* Update RichEmbed.js
* Update number of fields error message
2016-12-05 20:33:58 -05:00
bdistin
8eff36b744
Fix reconnect when using WS ( #952 )
...
* Fix reconnect when using WS
* Add disconnect status (fix reconnect with WS)
2016-12-05 21:06:49 +00:00
Schuyler Cebulskie
977e29ceba
👏 @Programmix
2016-12-04 20:25:24 -05:00
Amish Shah
8f8e0b1e52
fix that
2016-12-04 13:08:50 +00:00
Amish Shah
d6218050ba
export constants
2016-12-04 13:08:22 +00:00
Schuyler Cebulskie
bd00bc404c
Make Collection#set/delete return the result of the super call, and clean up equals docs
2016-12-03 21:38:27 -05:00
Slamakans
a0b245bfe1
equals function added ( #948 )
...
Adds an equals function that checks for differing size and differing
key-value pairs, and takes into account the edge case for when there's
an entry for the key, but the value is undefined.
2016-12-03 21:34:26 -05:00
Amish Shah
a53dcd52e7
link discord-rpc
2016-12-03 23:23:36 +00:00
Amish Shah
4bb2afe7cb
Revert "fixed typo in documentation" ( #950 )
2016-12-03 20:16:17 +00:00
Amish Shah
eb253eef45
fix docs
2016-12-03 19:50:14 +00:00
Benjamin Leuckefeld
1d9d246870
Update faq.md ( #949 )
2016-12-03 18:49:43 +00:00
Schuyler Cebulskie
d3687cb20d
Fix typo
2016-12-03 01:11:37 -05:00
Gus Caplan
638e51a18c
support new guild member role endpoints for cleaner role updates ( #901 )
...
* support new roles endpoints
* use promise chaining
* properties man
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
2016-12-02 23:46:55 -05:00
Programmix
8b7ef0c850
Add Message.fetchWebhook ( #947 )
...
* Add Message.fetchWebhook
* Update Message.js
2016-12-02 22:59:44 -05:00
Schuyler Cebulskie
c0aa6bd30f
Work around Node's module loading
2016-12-02 22:55:37 -05:00
Schuyler Cebulskie
6adc8a9d0d
Move a getter around
2016-12-02 22:47:12 -05:00
Programmix
676a895da7
Add Message - webhookID, isMemberMentioned ( #946 )
...
* Add Message - webhookID, isMemberMentioned
* Update Message.js
* Update Message.js
* Update Message.js
* Update Message.js
2016-12-02 22:35:01 -05:00
Gus Caplan
6cfbf76406
add more embed stuff ( #939 )
...
* add fun embed stuff
* add more docstrings
* fix gawdl3y
* Update RichEmbed.js
2016-12-02 21:59:38 -05:00
Schuyler Cebulskie
e141deb7ef
Update installation info
2016-12-02 21:42:49 -05:00
Gus Caplan
1e5afc1608
Add etf encoding support with erlpack ( #943 )
...
* the performance from this is astounding
* help uws
* save 15 bytes in webpacks
* update readme
* why is markdown like this
* optimizations
* Update WebSocketManager.js
2016-12-02 21:35:59 -05:00
Schuyler Cebulskie
58c7c2e7b8
Add client ping stuff
2016-12-02 20:58:19 -05:00
Schuyler Cebulskie
2488e1a00f
Improved the definition of structures' client properties
2016-12-02 19:52:27 -05:00
Gus Caplan
edfb27f428
switch to cdn endpoints, add guild splash url ( #932 )
2016-12-01 19:33:15 -05:00
Amish Shah
6043a1f83a
Fix #937 (guild member presence before READY)
2016-11-30 20:31:07 +00:00
Schuyler Cebulskie
ac68e9f077
Switch Travis to Ubuntu 14.04
2016-11-28 23:35:25 -05:00
Amish Shah
1933451d2f
fix reconnecting
2016-11-28 16:14:34 +00:00
Amish Shah
b335824570
potentially fix #910 , guild sync no longer assumes unknown users are new to the guild
2016-11-28 15:41:57 +00:00
Schuyler Cebulskie
57af84bc95
Clean up Guild#setRolePosition slightly
2016-11-27 20:09:41 -05:00
Schuyler Cebulskie
6dc93a0184
Simplify Role#setPosition
2016-11-27 20:03:44 -05:00
Schuyler Cebulskie
769ea5b50f
Add more detail to error message
2016-11-27 19:39:10 -05:00
Schuyler Cebulskie
8e7cb7fc4e
Revert "Escape the backslash ( #931 )"
...
This reverts commit 5fb4e257c8 .
2016-11-27 18:31:27 -05:00
Vap0r1ze
5fb4e257c8
Escape the backslash ( #931 )
2016-11-27 22:38:42 +00:00
Hackzzila
d9400ba289
fix readme spacing bug ( #930 )
2016-11-27 22:10:57 +00:00
Schuyler Cebulskie
cc9e484276
Fix a thing Gus noticed
2016-11-27 16:23:17 -05:00
Hackzzila
1aed3de647
Add note about uws in readme ( #929 )
2016-11-27 20:22:09 +00:00
Hackzzila
6afd80cf53
Make uws a peer dep, and readd ws ( #928 )
...
* Make uws a peer dep, and readd ws
* if -> else if
2016-11-27 19:59:50 +00:00
acdenisSK
b85a589a01
Add typings ( #925 )
2016-11-27 15:28:46 +00:00
Amish Shah
9323882a8d
fix disabledEvents
2016-11-27 12:01:51 +00:00
Schuyler Cebulskie
dc6c1140bc
Improve some JSDocs
2016-11-27 01:08:08 -05:00
Amish Shah
0d574a0678
Address #919 , add WSEventType typedef
2016-11-26 23:01:47 +00:00
Amish Shah
e2932c05f2
whoops fix derp
2016-11-26 22:43:41 +00:00
Amish Shah
27e77d3839
Fix Role.setPosition not returning Role (addresses #902 )
2016-11-26 22:42:33 +00:00
Will Nelson
4ae1f63a97
fix message.edits ( #924 )
2016-11-26 21:59:18 +00:00
Schuyler Cebulskie
85a7eab5bb
Update examples URL
2016-11-26 00:47:16 -05:00
Schuyler Cebulskie
c683790de7
Remove old uws-specific code (0.11.1 has the good stuff)
2016-11-25 19:40:53 -05:00
Will Nelson
eedc097f3f
fix playConvertedStream ( #923 )
2016-11-24 17:08:55 -05:00
Schuyler Cebulskie
ac64f8bd23
Improve rest args docs
2016-11-24 11:22:13 -05:00
Gus Caplan
945a2e370a
fix voice ws ( #922 )
2016-11-24 02:39:01 -05:00
Gus Caplan
0008a18deb
Fantastic PR #368 by Gus ( #921 )
2016-11-23 22:16:19 -05:00
Schuyler Cebulskie
91a69fb761
Update docgen dependency
2016-11-23 20:07:37 -05:00
Gus Caplan
c91ee7a3e7
Replace ws with uws ( #918 )
...
* change to uws (waiting for the next release tho)
* clean up, fix reconnections (maybe)
* change voice to use uws
* so messy
2016-11-23 19:30:00 -05:00
Schuyler Cebulskie
32879419e2
Fix dispatcher doc
2016-11-23 02:51:10 -05:00
Schuyler Cebulskie
c4b2077666
Rename Avatars.js to avatars.js
2016-11-22 19:54:24 -05:00
Schuyler Cebulskie
338aa58386
Set up new-new custom docs mechanism
2016-11-22 19:50:05 -05:00
Schuyler Cebulskie
c3d14636ab
Missing files
2016-11-22 18:40:49 -05:00
Schuyler Cebulskie
77353e5220
Fix names of custom docs
2016-11-22 18:40:18 -05:00
Schuyler Cebulskie
a8bb20204b
Fix paths
2016-11-22 18:34:08 -05:00
Schuyler Cebulskie
7c97244854
Move to new docgen
2016-11-22 18:24:29 -05:00
Schuyler Cebulskie
c8858de71e
Change to zlibjs release
2016-11-22 01:05:53 -05:00
meew0
c2b5eb291a
Ignore commit failures due to no changes being made ( #912 )
2016-11-21 12:09:49 -05:00
Schuyler Cebulskie
a4193553e2
Optimise websocket events
2016-11-20 23:39:40 -05:00
Schuyler Cebulskie
0d754d1fbb
Change the way modules are excluded from webpack
2016-11-20 23:19:53 -05:00
Schuyler Cebulskie
ee4a8bb3b6
Made Client.browser a getter
2016-11-20 22:45:59 -05:00
Schuyler Cebulskie
f6a60581c4
Remove even more stuff from web dists
2016-11-20 22:40:06 -05:00
Schuyler Cebulskie
7e69475d11
Just to please Gus
2016-11-20 22:06:38 -05:00
Schuyler Cebulskie
f38944c8f6
Add ShardingManager web dist info
2016-11-20 21:50:36 -05:00
Schuyler Cebulskie
66845e2f68
Ensure ws doesn't get built
2016-11-20 21:46:35 -05:00
Schuyler Cebulskie
697fa15278
Add web dist info to readme
2016-11-20 21:42:39 -05:00
Schuyler Cebulskie
18dc95e1bd
Ensure opusscript and node-opus don't get built
2016-11-20 21:17:07 -05:00
Schuyler Cebulskie
049ab42eb4
Do stuff slightly better
2016-11-20 20:54:40 -05:00
Schuyler Cebulskie
3ef16f97c4
Remove dynamic requires
2016-11-20 20:52:39 -05:00
Schuyler Cebulskie
411c9bd32c
Update to Webpack 2.1 beta 27
2016-11-20 20:19:43 -05:00
Schuyler Cebulskie
6383d42eb5
Update to superagent 3
2016-11-20 20:08:59 -05:00
meew0
176859e7da
Add webpack building, ESLint on PRs, and tag building to Travis ( #911 )
...
* Make Travis run ESLint before deploying
* Fix Travis never building docs for tags
* Update deploy.sh to also build the webpack
* Update deploy.sh
2016-11-20 19:57:24 -05:00
Gus Caplan
2440a4a2c8
Add webpack building ( #907 )
...
* friggin webpack tho
* probably important
* add all the stuff to the package.json
* add minify builds and a nice package.json script to run it all
* clean up
* use uglify harmony branch so we can actually run minify builds that work
* update build system
* make test better
* clean up
* fix issues with compression
*
* c++ requirements in a node lib? whaaaaat?
* fix travis yml?
* put railings on voice connections
* 🖕🏻
* aaaaaa
* handle arraybuffers in the unlikely event one is sent
* support arraybuffers in resolvebuffer
* this needs to be fixed at some point
* this was fixed
* disable filename versioning if env VERSIONED is set to false
* Update ClientDataResolver.js
* Update ClientVoiceManager.js
* Update WebSocketManager.js
* Update ConvertArrayBuffer.js
* Update webpack.html
* enable compression for browser and fix ws error handler
* Update WebSocketManager.js
* everything will be okay gawdl3y
* compression is slower in browser, so rip the last three hours of my life
* Update Constants.js
* Update .gitignore
2016-11-20 19:38:16 -05:00
Schuyler Cebulskie
b3e795d0b0
Add newlines around logo
2016-11-20 18:21:23 -05:00
Schuyler Cebulskie
686cf297d2
Clean up various script things
2016-11-20 18:19:58 -05:00
Schuyler Cebulskie
2bb5aa1fda
Change Collection description
2016-11-20 18:05:01 -05:00
Schuyler Cebulskie
a80a64f8ce
Update Collection docs some more
2016-11-20 17:59:54 -05:00
Schuyler Cebulskie
74ab72fdea
Update Collection docs
2016-11-20 17:39:55 -05:00
Schuyler Cebulskie
c29eb7ab20
Update links
2016-11-20 00:19:41 -05:00
Schuyler Cebulskie
34548e3ecc
Fix webhook example
2016-11-19 21:23:16 -05:00
Schuyler Cebulskie
213c45323f
Switch to a non-absurdly-sized logo
2016-11-19 21:21:49 -05:00
Crawl
3fd3588ef2
Fix reaction event names ( #906 )
2016-11-17 03:03:51 -05:00
Schuyler Cebulskie
93948328b4
Fix some Gus code
2016-11-17 02:51:46 -05:00
Schuyler Cebulskie
49fdc331a7
Fix formatting
2016-11-17 02:49:24 -05:00
Gus Caplan
b2bc844ed7
Add new MessageEmbed stuff ( #898 )
...
* fix
* Update MessageEmbed.js
* man
* Update MessageCreate.js
* Update MessageEmbed.js
* Update MessageEmbed.js
* clean up, add class
* my dreams are slowly becoming memes
* aghhh
* safety
* Update MessageEmbed.js
* Update MessageEmbed.js
* Update MessageEmbed.js
* dammit
2016-11-17 02:42:50 -05:00
York
1833a83664
Documented reaction events ( #905 )
2016-11-17 02:18:03 -05:00
Programmix
5ed8098af8
Clean up reactions, add remove all reactions ( #890 )
...
* Clean up reactions, add remove all reactions
* Reorganize reactions
* Re-add Gawdl3y's precious little inline
* Update Message.js
2016-11-13 02:29:26 -05:00
Steffen
a359f344d8
UnhandledPromiseRejectionWarning caused by resolveBuffer on empty resource body ( #886 )
...
* Fix for UnhandledPromiseRejectionWarning in resolveBuffer
* code simplification
* reject with TypeError if body is not a Buffer
2016-11-13 02:07:51 -05:00
Gus Caplan
c041b1bc23
fix these things ( #895 )
...
* fix these things
* fix enormous stupid
2016-11-13 02:05:55 -05:00
Schuyler Cebulskie
bb3b709d6e
Nothing to see here 👀
2016-11-13 01:13:13 -05:00
Schuyler Cebulskie
da9d1a3daf
Don't mind me
2016-11-13 01:07:48 -05:00
Gus Caplan
27270a3bad
add embed support! ( #894 )
...
* add embed support!
* document message embeds
* make gawdl3y happy
* make edit great again
* make docs better
* Update Message.js
* Update TextBasedChannel.js
* Update TextBasedChannel.js
2016-11-13 01:05:13 -05:00
Schuyler Cebulskie
ee3a03f707
Make Collection.find/exists error when using with IDs
2016-11-13 00:27:56 -05:00
Schuyler Cebulskie
af5e07fb33
Change sentence structure slightly
2016-11-12 23:58:20 -05:00
Schuyler Cebulskie
5d3123d405
Add branch info to contributing guide
2016-11-12 23:50:06 -05:00
Schuyler Cebulskie
9d0fcb3936
Fix Message.reply example
2016-11-12 22:15:47 -05:00
Schuyler Cebulskie
c50de74310
Rename Message.addReaction -> Message.react
2016-11-12 22:12:26 -05:00
Schuyler Cebulskie
2c76f5437b
Inline a line, woohoo
2016-11-12 22:08:43 -05:00
Schuyler Cebulskie
99b8d8f031
Clean up docgen code and some reaction stuff
2016-11-12 22:07:17 -05:00
Schuyler Cebulskie
acdf2d14c2
Undo that dummy commit
2016-11-12 21:50:17 -05:00
Schuyler Cebulskie
2b7c7bfd8f
Dummy commit to force a travis build
2016-11-12 21:50:05 -05:00
Schuyler Cebulskie
8482abed7b
Document generator v14
2016-11-12 21:45:05 -05:00
Schuyler Cebulskie
962cb8f8d0
Add default value support to docgen
2016-11-12 21:44:57 -05:00
Schuyler Cebulskie
7b26e70a2e
Possibly change default return type for function docs
2016-11-12 21:14:36 -05:00
Schuyler Cebulskie
c65d7a10ec
Fix another JSDoc type issue
2016-11-12 21:10:28 -05:00
Schuyler Cebulskie
b07a31d44e
Change case of "function"
2016-11-12 21:07:22 -05:00
Schuyler Cebulskie
90304aa7d6
Fix loads of JSDoc type issues
2016-11-12 20:52:37 -05:00
Schuyler Cebulskie
318bb52c36
Clean up presence constructor
2016-11-12 17:46:11 -05:00
Schuyler Cebulskie
305070dded
Remove experimental warning on sharding manager
2016-11-12 17:30:07 -05:00
Schuyler Cebulskie
3230d90a58
Remove fs-extra dependency
2016-11-12 17:23:54 -05:00
Schuyler Cebulskie
ce132d5f54
Make bot/user account warnings MOAR CONSISTENT!!one!
2016-11-12 17:15:17 -05:00
Schuyler Cebulskie
1e8392d90b
Merge branch 'master' into indev
2016-11-12 00:30:25 -05:00
Marko Kajzer
c02eb2f171
Fixed unset field of VoiceConnection ( #879 )
...
* Fixed unset field of VoiceConnection
Fixed a typo
* Update VoiceConnection.js
2016-11-07 12:35:49 -05:00
Amish Shah
544540fb02
Change Role.manageable to Role.editable
2016-11-06 16:49:14 +00:00
HyperCoder
7d02e73a26
Add <Role>.manageable ( #878 )
2016-11-06 16:43:39 +00:00
Slamakans
5dc30d6812
Nullable permission overwrites ( #869 )
...
Made it possible to pass null to GuildChannel.overwritePermissions's
PermissionOverwriteOptions to blank the permission out.
2016-11-06 10:43:31 +00:00
Programmix
fe3914658a
Grammar cleanup ( #875 )
...
This commit:
* fixes inconsistencies (primarily regarding capitalization)
* fixes non-proper nouns that were improperly capitalized
* fixes reminents from not-so-meticulous copy+paste jobs
2016-11-05 23:57:34 +00:00
Schuyler Cebulskie
93e6c69bd1
Update sync option docs
2016-11-01 02:28:23 -04:00
Schuyler Cebulskie
b91590d3a8
Fix mispositioned line in ClientOptions doc
2016-11-01 02:24:42 -04:00
Programmix
9a61de1493
Document GuildChannel.edit, add VoiceChannel.setUserLimit, fix typo ( #866 )
2016-11-01 01:42:05 -04:00
Schuyler Cebulskie
2a50dad852
Update docs for ezmode node-opus Windows building
2016-11-01 01:39:57 -04:00
Programmix
6dc95cd084
Add support for notes ( #860 )
...
* Add support for notes
* Ensure consistency with notes from ready payload
* Add getter method for users
* Minor tweaks
* Update warning messages
* More minor fixes
2016-10-30 23:06:09 -04:00
Schuyler Cebulskie
a673a97441
Rephrase Collection.find/exists slightly
2016-10-30 22:28:06 -04:00
Schuyler Cebulskie
d7e1e1c0c9
Add warnings for Collection.find/exists
2016-10-30 22:22:16 -04:00
Schuyler Cebulskie
73261646fc
Fix ESLint warnings
2016-10-30 17:23:39 -04:00
Schuyler Cebulskie
d6f55adf52
Add missing exports for reaction stuff
2016-10-30 17:05:18 -04:00
Schuyler Cebulskie
f2496070d3
Document client timeout/interval stuff
2016-10-30 17:02:06 -04:00
Schuyler Cebulskie
85330769a7
Refactor OAuth application stuff
2016-10-30 16:55:08 -04:00
Schuyler Cebulskie
589c44327a
Make bot/user account notices consistent
2016-10-30 16:41:39 -04:00
Schuyler Cebulskie
5fa9e3548b
Rename ClientDataResolver.resolveFile -> resolveBuffer
2016-10-30 16:29:56 -04:00
Schuyler Cebulskie
60e0d507f0
Clean up nearly all promises to utilise chaining, other small fixes
2016-10-30 16:27:28 -04:00
Schuyler Cebulskie
8306d50bd8
Clean up a bunch of promise stuff
2016-10-30 12:47:17 -04:00
Programmix
c42e7a15aa
Update documentation (add missing typedefs) ( #861 )
2016-10-30 00:08:32 -04:00
Amish Shah
c334bf4535
Merge branch 'master' into indev
2016-10-28 18:47:49 +01:00
Pascal Luttgens
cdf66f8011
Fixed resolveChannel when using a string ( #857 )
2016-10-28 14:09:40 +01:00
Schuyler Cebulskie
cf04b44454
Clean up some more
2016-10-27 21:38:48 -04:00
Schuyler Cebulskie
4e6b632d23
Fix VoiceConnection.speaking not emitting
2016-10-27 20:51:19 -04:00
Schuyler Cebulskie
83bef4ca77
Teensy weensy cleanup
2016-10-27 20:45:09 -04:00
Schuyler Cebulskie
071e287fec
Merge remote-tracking branch 'refs/remotes/origin/master' into indev
2016-10-27 20:26:16 -04:00
Schuyler Cebulskie
c1926b6221
Prepare 10.0.1 release
2016-10-27 19:52:54 -04:00
Schuyler Cebulskie
1841122a8f
Cherry pick commits from indev
2016-10-27 19:48:34 -04:00
Schuyler Cebulskie
3f5e7451a7
Fix linked whitespace 👀
2016-10-27 19:15:08 -04:00
isonmad
4bd19c94ba
fix Client.destroy ( #853 )
...
_timeouts and _intervals were changed to Set objects in
commit 6ede7a32fd a month ago.
Like #844 , this fix was reverted in 7d04863b66 (#839 )
without explanation and was never included in the followup rewrite in
commit 5e2ee2398e .
2016-10-27 17:38:34 -04:00
Hackzzila
e80f06a059
3 PRs in one day! ( #851 )
2016-10-27 22:19:32 +01:00
Hackzzila
30105536a6
ESLint warnings ( #852 )
2016-10-27 22:19:20 +01:00
Hackzzila
c9dbf1f7f0
OAuth info stuff ( #849 )
...
* OAuth info stuff
* fix docs
* oops
2016-10-27 21:50:04 +01:00
Hackzzila
986b05442d
Make errors great again ( #850 )
2016-10-27 21:49:09 +01:00
Amish Shah
b15896e0a4
Add limit param to reaction.fetchUsers
2016-10-27 21:28:03 +01:00
Amish Shah
5dd76069f8
Simplify voice channel joining
2016-10-27 19:04:24 +01:00
Amish Shah
c4da8d1009
rename file fix
2016-10-27 18:52:49 +01:00
Amish Shah
dfeafbf5fa
Add the ADD_REACTIONS permission
2016-10-27 17:32:23 +01:00
Amish Shah
cd9b391e2a
Hide SecretKey in documentation
2016-10-27 17:25:17 +01:00
Amish Shah
756d7fc2c1
Fix example
2016-10-27 17:22:11 +01:00
Amish Shah
21b00e1e29
Merge branch 'master' into indev
2016-10-27 17:18:27 +01:00
Amish Shah
9cba1bc6d0
remove users from message reactions
2016-10-27 17:16:40 +01:00
Amish Shah
dd9c291508
Add reaction fetching of users
2016-10-27 16:58:06 +01:00
Amish Shah
8e505ed349
Add Message Reaction me
2016-10-27 16:30:02 +01:00
Amish Shah
d129457624
Improve emoji support
2016-10-27 16:12:02 +01:00
Amish Shah
81059885a2
Start work on adding reaction support
2016-10-27 15:22:42 +01:00
Gus Caplan
96e46cbf37
Update README.md ( #846 )
2016-10-27 14:51:01 +01:00
Gus Caplan
2fa1e12fd5
Update welcome.md ( #847 )
2016-10-27 14:50:47 +01:00
isonmad
dd31ee0c5f
propagate errors in ClientManager.destroy ( #844 )
...
If the promise returned by logout() rejects, previously
it would be completely uncaught, and just return an
eternally pending promise that never resolved.
Related to pull requests #828 and #839 .
2016-10-27 11:33:51 +01:00
Schuyler Cebulskie
b8c11f0bed
Update docs URLs to new domain
2016-10-27 04:27:28 -04:00
Schuyler Cebulskie
b54adf3869
Remove docs.jsos (whoops)
2016-10-26 23:45:20 -04:00
Schuyler Cebulskie
0863be8520
Tweak another output
2016-10-26 23:42:35 -04:00
Schuyler Cebulskie
93cc1fcb24
Tweak single output
2016-10-26 23:42:03 -04:00
Schuyler Cebulskie
4b60a6f47d
Remove unused file
2016-10-26 23:33:29 -04:00
Schuyler Cebulskie
b8946d5904
Give the docgen a facelift
2016-10-26 23:30:37 -04:00
Schuyler Cebulskie
4543422e37
Remove a lot of irrelevant stuff in .gitignore
2016-10-26 23:30:08 -04:00
Schuyler Cebulskie
4e693e2e39
Fix a small VoiceReceiver doc issue
2016-10-26 21:43:28 -04:00
Schuyler Cebulskie
ab6750d06d
Make docs catches use console.error
2016-10-26 21:37:19 -04:00
Schuyler Cebulskie
d6f4a4e1a0
Merge remote-tracking branch 'refs/remotes/origin/indev'
2016-10-26 21:14:21 -04:00
Schuyler Cebulskie
3727f3520e
Merge remote-tracking branch 'refs/remotes/origin/master' into indev
2016-10-26 21:13:19 -04:00
Schuyler Cebulskie
4d1eb34dd6
Remove extra <br />
2016-10-26 21:12:41 -04:00
Schuyler Cebulskie
fc20008d6d
Merge remote-tracking branch 'refs/remotes/origin/indev'
2016-10-26 21:10:59 -04:00
Schuyler Cebulskie
99cea11e6d
Change a word
2016-10-26 21:04:41 -04:00
Schuyler Cebulskie
e8eac4990e
Add more general info about discord.js
2016-10-26 21:03:44 -04:00
Schuyler Cebulskie
c4ee802c3b
Fix formatting for GitHub
2016-10-26 20:51:34 -04:00
Schuyler Cebulskie
6dfb904e6b
Center the shields and NPM banner
2016-10-26 20:45:48 -04:00
Schuyler Cebulskie
801588b2d4
Add v10 details to docs
2016-10-26 20:39:11 -04:00
Amish Shah
4929aecb32
Fix logo
2016-10-26 23:01:45 +01:00
Amish Shah
1fc9676ba5
Fix presences, damn it hydra
2016-10-26 22:09:11 +01:00
Amish Shah
62cfa10ac5
v10 prep
2016-10-26 20:58:34 +01:00
Schuyler Cebulskie
ecee07655f
Simplify Shard.env
2016-10-26 15:31:05 -04:00
Amish Shah
1a3ea65abd
fix some shard stuff on linux
2016-10-26 20:15:56 +01:00
Amish Shah
00fe45f6b3
simplify client destruction
2016-10-26 19:52:41 +01:00
Amish Shah
5e2ee2398e
Fix some destroy stuff ( #828 )
2016-10-26 19:42:21 +01:00
Amish Shah
a2f125e416
case sensitive
2016-10-26 19:27:52 +01:00
Amish Shah
ad90705c93
fix bug
2016-10-26 19:21:45 +01:00
Amish Shah
4e37e47e64
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-26 19:18:19 +01:00
Amish Shah
996c9b45e2
Update README for new logo
2016-10-26 19:18:16 +01:00
Amish Shah
7d04863b66
Revert "fix Client.destroy bugs" ( #839 )
2016-10-26 17:30:18 +01:00
Amish Shah
18e9850e1e
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-26 17:29:26 +01:00
Amish Shah
4a5cef0ccf
Rename getRecommendedShards to fetchRecommendedShards
2016-10-26 17:29:23 +01:00
Gus Caplan
c6bcf69dc3
added User#fetchProfile ( #835 )
...
* add User#fetchProfile
* fix merge conflicts?
2016-10-26 16:23:39 +01:00
Amish Shah
d231adc489
add notice to docs folder
2016-10-26 16:14:37 +01:00
Amish Shah
e12c7bf2d4
Whoops remove something
2016-10-26 16:10:02 +01:00
Amish Shah
597c3ebcbe
Remove unnecessary docs.json file
2016-10-26 16:09:17 +01:00
Amish Shah
50f73bf430
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-26 16:06:58 +01:00
Amish Shah
0f1e121b81
hide some voice stuff in docs
2016-10-26 16:06:56 +01:00
meew0
e85fd4482f
Fix the secret Travis details
...
Apparently the environment variables weren't correctly stored last
time, so they had to be regenerated.
2016-10-26 17:02:01 +02:00
Gus Caplan
60a911e4a0
add clientUser#createGuild ( #832 )
...
* add clientUser#createGuild merge docs
* almost caused a memory leak!
* muh triggers
2016-10-26 15:59:15 +01:00
Amish Shah
cf45d1905e
Reduce doc log size
2016-10-26 15:57:45 +01:00
meew0
0296a71793
Improve the docs building process ( #834 )
...
* Add a script to automatically build and push docs
This script will checkout the repo in the `docs` branch, then build the
docs locally, copy it to that repo, commit and push. It is designed to
be used in conjunction with Travis.
* Add unencrypted deploy keys to the gitignore
* Make Travis automatically execute the deploy script
* Add the encrypted deploy key
* Update the .travis.yml with the necessary information
2016-10-26 15:54:53 +01:00
Amish Shah
35ac80024a
Rename some events (mainly guild events)
2016-10-26 15:52:40 +01:00
Amish Shah
45632b2eae
fix joining voice channels without perms
2016-10-26 15:23:54 +01:00
Amish Shah
650e21e907
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-26 15:14:30 +01:00
Amish Shah
e7e8a802b8
Fix docs
2016-10-26 15:14:28 +01:00
isonmad
e9fa8a438c
fix Client.destroy bugs ( #828 )
...
* add test for Client.destroy()
* propagate errors in ClientManager.destroy
If the promise returned by logout() rejects, previously
it would be completely uncaught, and just return an
eternally pending promise that never resolved.
* fix RESTMethods.logout
Without a data argument, the POST that superagent sends causes
the discord server to reply with a HTTP 400 error:
text: '{"Content-Type": "Expected Content-Type to be one of set([\'application/json\'])."}',
* fix Client.destroy
_timeouts and _intervals were changed to Set objects in
commit 6ede7a32fd a month ago.
Changing them to arrays causes failures if you try to reuse
the client object again.
* always close websocket in ClientManager.destroy
Invoking logout does not implicitly cause the server to close
the websocket for you, so cleanup everything.
Otherwise the websocket being open keeps node alive and hanging
mysteriously until the connection hits a timeout.
* fix indentation for eslint
2016-10-26 14:49:45 +01:00
Amish Shah
26de908cfd
some voice docs
2016-10-26 14:44:19 +01:00
Amish Shah
968883ec35
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-26 14:19:39 +01:00
Amish Shah
0c4a4023ce
Fix setting guild role positions ( #751 )
2016-10-26 14:19:36 +01:00
Schuyler Cebulskie
05f73c3edf
Clean up voice channel join permissions check
2016-10-25 20:41:23 -04:00
Schuyler Cebulskie
b2a4545c16
Clean up more voice stuff
2016-10-25 20:34:57 -04:00
Schuyler Cebulskie
d1e9d15a1c
Clean up a bunch of new voice stuff
2016-10-25 20:26:57 -04:00
Schuyler Cebulskie
a04094f0ff
Rename VoiceConnection.disconnected event -> disconnect
2016-10-25 19:59:22 -04:00
Schuyler Cebulskie
c96d5ad30e
Optimise everyone/here replacing
2016-10-25 19:01:56 -04:00
Schuyler Cebulskie
526430b51a
Revert "Fix #837 "
...
This reverts commit add52ce62d .
2016-10-25 18:49:12 -04:00
Amish Shah
add52ce62d
Fix #837
2016-10-25 22:03:04 +01:00
Amish Shah
ff16c9f01f
change currentDispatcher to just dispatcher
2016-10-25 21:55:38 +01:00
Amish Shah
0f8e8dddff
fix presence updating
2016-10-25 21:40:53 +01:00
Amish Shah
2ee6da8d79
redo docs again
2016-10-25 19:52:10 +01:00
Amish Shah
5bd18e6051
add some documentation
2016-10-25 19:47:17 +01:00
Amish Shah
f77af72d71
Add voice receiving again \o/
2016-10-25 19:41:54 +01:00
Amish Shah
b50bec8a44
whoops broke travis again
2016-10-25 15:02:16 +01:00
Amish Shah
2b2bbb565d
don't require longjohn
2016-10-25 14:46:50 +01:00
Amish Shah
5844bbb54c
Fix travis builds
2016-10-25 14:38:56 +01:00
Amish Shah
91ba59c43d
Added voice disconnect
2016-10-25 14:18:20 +01:00
Amish Shah
b0921ae0ef
fix econnreset! \o/ #694
2016-10-25 12:52:07 +01:00
Amish Shah
823a339c25
oh no wait i was right the first time
2016-10-24 22:27:23 +01:00
Amish Shah
8a68fea9af
damn it hydar
2016-10-24 22:27:03 +01:00
Amish Shah
d73d6a7340
make some stuffs
2016-10-24 22:26:34 +01:00
Amish Shah
f96c185d92
add the functions to voice connection
2016-10-24 21:39:32 +01:00
Amish Shah
1a5ce878a1
fix some stuff
2016-10-24 20:13:44 +01:00
Amish Shah
5749eb6bb0
actually log the damn reason
2016-10-24 18:56:02 +01:00
Amish Shah
7818d37042
catch cleanup reasons
2016-10-24 18:36:52 +01:00
Amish Shah
17586f0e20
maybe fix again
2016-10-24 17:41:37 +01:00
Amish Shah
c6d0c31c84
hydra have you actually fixed voice whatttt
2016-10-24 17:10:17 +01:00
Amish Shah
b24e0b347e
Merge remote-tracking branch 'origin/indev' into indev-voice
2016-10-24 16:26:41 +01:00
Amish Shah
6093dac554
Fix #776 (guildMemberAdd firing for existing members)
2016-10-24 15:57:07 +01:00
Amish Shah
d42ac98339
Fix #775 (permission overwrites not taking into account previous values)
2016-10-24 15:47:31 +01:00
Amish Shah
9d0dd665de
fix something
2016-10-24 14:49:01 +01:00
Amish Shah
8dd2005ab9
stop logging
2016-10-24 14:37:08 +01:00
Amish Shah
e13e2447d4
get voice sort of working
2016-10-24 14:26:24 +01:00
Amish Shah
9b3dd540ef
Merge remote-tracking branch 'origin/indev' into indev-voice
2016-10-24 12:50:40 +01:00
Schuyler Cebulskie
c5c9d0265c
Evie 😒
2016-10-24 01:10:52 -04:00
Gus Caplan
44bae385c2
update clientUser#setAvatar ( #819 )
...
* WHO DID THIS
* e
* some people have base64 fetishes i guess
Signed-off-by: Gus Caplan <fluffyrobotcheese@gmail.com >
2016-10-24 01:09:38 -04:00
Évelyne Lachance
478377ac52
Merge pull request #830 from eslachance/indev
...
Version bump for indev+troubleshooting
2016-10-24 01:05:07 -04:00
Evelyne Lachance
a7d16e66b7
Version bump for indev+troubleshooting
2016-10-24 00:50:15 -04:00
Amish Shah
c86ff6ad1a
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-10-23 20:51:07 +01:00
Amish Shah
21533eec5b
fix banning probably hopefully
2016-10-23 20:51:04 +01:00
Amish Shah
b2eb796cfc
remove console.log and fix endless loop connecting
2016-10-23 19:59:19 +01:00
Schuyler Cebulskie
c9c6e8a357
Added note about bot accounts to fetchMessage
2016-10-23 14:59:04 -04:00
Gus Caplan
3e1425af04
allow TextBasedChannel#bulkDelete to take a number ( #821 )
...
* useful
* update docs
* Update TextBasedChannel.js
* update docs
* fix docs
* Update TextBasedChannel.js
2016-10-23 14:51:54 -04:00
Amish Shah
38ff53c3a1
woah is hydra actually working on voice?!
2016-10-23 19:51:44 +01:00
Amish Shah
f3439dcf6d
Merge remote-tracking branch 'origin/indev' into indev-voice
2016-10-23 14:46:41 +01:00
Gus Caplan
b020fae258
fix emoji updates ( #826 )
2016-10-22 23:43:07 -04:00
Gus Caplan
422b90c711
add way more friend shit ( #815 )
2016-10-22 16:25:55 -04:00
Schuyler Cebulskie
c7c5e5e8b4
Build docs
2016-10-22 15:12:15 -04:00
Schuyler Cebulskie
562b62a5b6
Revert "Cache array and keyArray in Collection ( #771 )"
...
This reverts commit 53f5c2cb52 .
2016-10-22 15:11:42 -04:00
Schuyler Cebulskie
8308493618
Bump version for NPM readme fix
2016-10-22 15:07:47 -04:00
Gus Caplan
9f7c630796
lel ( #824 )
2016-10-22 14:51:21 -04:00
Schuyler Cebulskie
aa4cb97a1c
Removed production flag from installs
2016-10-22 14:48:07 -04:00
Schuyler Cebulskie
caec3648c0
Added onlyInlineCode to escapeMarkdown
2016-10-21 02:35:36 -04:00
Schuyler Cebulskie
d0463926c4
Add maxMatches CollectorOption
2016-10-18 21:23:39 -04:00
Gus Caplan
9c8eb2dfc3
lets all be friendly! ( #809 )
...
* lets all be friendly!
* fix doc
* Update ClientUser.js
* Update ClientUser.js
2016-10-18 01:36:25 -04:00
Évelyne Lachance
2f2188fe60
Merge pull request #810 from GusCaplan/message#type
...
add message#type
GUS promises that this was thoroughly tested. I wanna believe him. Hydra don't kill me for merging.
2016-10-17 22:32:46 -04:00
Gus Caplan
bd5540314b
add message@#type
2016-10-17 21:24:16 -05:00
Schuyler Cebulskie
62b93659e6
Clean up and simplify some code
2016-10-17 00:02:54 -04:00
Gus Caplan
e04dbbdb82
add clientuser#friends ( #807 )
...
* add client#friends
* Update Ready.js
* Update Client.js
* move friends to client.user
* Update ClientUser.js
* Update ClientUser.js
2016-10-16 21:28:17 -04:00
Schuyler Cebulskie
fc307fab8a
Remove unnecessary array conversions
2016-10-16 21:14:59 -04:00
Schuyler Cebulskie
13aae621b8
Fix Hyper's error and make it more useful
2016-10-16 20:58:03 -04:00
Schuyler Cebulskie
0b5ef296cb
Fix split messages resolving with multiple of the same message
2016-10-15 20:23:32 -04:00
Schuyler Cebulskie
7e0f98ec68
MOAR SIMPLIFICATION
2016-10-15 01:45:13 -04:00
Schuyler Cebulskie
f2555132fe
Simplify sendCode lang
2016-10-15 01:29:46 -04:00
Schuyler Cebulskie
6baf43dc24
Add Collection.filterArray
2016-10-15 01:20:31 -04:00
Schuyler Cebulskie
fe2192d544
Thanks for overriding the MessageOptions typedef, Gus 😒
2016-10-15 00:12:37 -04:00
Gus Caplan
50a1d1cbef
Add VoiceChannel.joinable/speakable ( #802 )
...
* add some getters to voice channels
* Update VoiceChannel.js
* Update VoiceChannel.js
* Update VoiceChannel.js
2016-10-14 18:58:48 -04:00
Schuyler Cebulskie
8f0e2e0c56
Make token "Bot" removal more lenient
...
In case of heavy user error. :)
2016-10-14 02:14:00 -04:00
Schuyler Cebulskie
e4636243b2
Improve token "Bot" removal
2016-10-14 02:11:31 -04:00
Schuyler Cebulskie
6e76df2656
Update legacy docs link
2016-10-14 01:45:02 -04:00
Schuyler Cebulskie
a6ca05b379
Change a word in help
2016-10-14 01:27:54 -04:00
Schuyler Cebulskie
84bca168b6
Update docs
2016-10-14 01:26:54 -04:00
Schuyler Cebulskie
ca4e9549a0
Add link to Yeoman generator
2016-10-14 01:13:50 -04:00
Schuyler Cebulskie
1ef00d0fe7
Change node-opus and opusscript to peer deps
2016-10-14 00:52:25 -04:00
Schuyler Cebulskie
485ffd267e
Remove auto shard spawn interval (Discord doesn't support such a great idea 👀 )
2016-10-14 00:21:08 -04:00
Schuyler Cebulskie
915a4cbe37
Rename spawnArgs -> shardArgs
2016-10-14 00:00:15 -04:00
Schuyler Cebulskie
3293f9a8de
Add automatic shard spawning, and document options
2016-10-13 23:58:32 -04:00
Schuyler Cebulskie
aad06c1116
Teensy cleanup
2016-10-13 23:32:52 -04:00
Gus Caplan
853a3dfa04
Add getRecommendedShards and automatic shard count in ShardingManager ( #796 )
...
* draft stuff
fix docstring for Client#token
Reorganise resolver
make env better for shards, clean up docs
Fix Gus' log messages
7
meh just gateway/bot not v7 :(
final changes, ready for mergin!
build docs
make default totalShards 'auto', fix docs for totalShards type
clean up docs more
run docs
* make consistancy real
* Update and rename getRecommendedShards.js to GetRecommendedShards.js
* Update GetRecommendedShards.js
* Update index.js
* Update RESTMethods.js
* Update Shard.js
* Update GetRecommendedShards.js
* Update ShardingManager.js
* run docs
2016-10-13 23:26:10 -04:00
Schuyler Cebulskie
492f706035
Fix Gus' log messages
2016-10-13 20:05:07 -04:00
Schuyler Cebulskie
26804f3673
Reorganise resolver
2016-10-12 02:26:56 -04:00
Gus Caplan
299484ff68
allow overwritePermissions to take a role id ( #792 )
...
* allow overwritePermissions to take a role id
* Fix typo
2016-10-11 20:29:29 -04:00
Gus Caplan
0de3d1bfc4
make sharding manager constructor better ( #794 )
...
* add color stuff to support popular color libraries
* make this better
* fix docs
2016-10-11 20:20:59 -04:00
Gus Caplan
96355a4968
add constants, some debug stuff ( #791 )
...
* add constants, some debug stuff
* i can't believe i did this
2016-10-10 20:53:54 +01:00
Gus Caplan
32eeb8ad5e
Fix feature/login ( #790 )
...
* eeeeeeee
* too tired
* ok gawdl3y
Signed-off-by: Gus Caplan <fluffyrobotcheese@gmail.com >
2016-10-10 02:55:09 -04:00
Gus Caplan
5ddefc3682
fix webhook#edit ( #789 )
...
* fix webhook#edit
* hehe
2016-10-10 02:54:46 -04:00
Gus Caplan
e48d7d52f1
add webhook#sendSlackMessage ( #788 )
2016-10-10 01:56:18 -04:00
Schuyler Cebulskie
9230b8866b
Merge branch 'master' into indev
2016-10-10 02:45:10 -04:00
comp500
f292e7002f
fix proxyURL ( #783 )
2016-10-09 22:44:38 -04:00
Schuyler Cebulskie
29b33bffaa
Rearrange and clean up more webhook stuff
2016-10-09 15:50:50 -04:00
Schuyler Cebulskie
e7745a0af5
Clean up some webhook stuff
2016-10-09 15:30:46 -04:00
Schuyler Cebulskie
bd7ff36b66
Allow infinite messageCacheMaxSize
2016-10-09 15:22:14 -04:00
Schuyler Cebulskie
7a53f70978
Rename maxMessageCache -> messageCacheMaxSize
2016-10-09 15:16:54 -04:00
Schuyler Cebulskie
a717b60417
Add validation for all non-ws client options
2016-10-09 15:11:15 -04:00
Schuyler Cebulskie
e3b2f1f3da
Fix require path
2016-10-09 15:08:21 -04:00
Schuyler Cebulskie
dabe51fc8d
Reorganise disabledEvents stuff
2016-10-09 14:41:57 -04:00
Schuyler Cebulskie
7b571f9729
Add escapeMarkdown util function
2016-10-09 14:32:48 -04:00
Programmix
3e2d6ccc48
Convert disabledEvents Array to Object ( #786 )
...
* Convert disabledEvents Array to Object
Increased performance
* Commit to please Lord Gawdl3y
* Nitpick with chopsticks
2016-10-09 14:22:52 -04:00
Programmix
4653f88555
Add disabledEvents option to Client ( #784 )
2016-10-09 18:27:31 +01:00
Schuyler Cebulskie
da5183a5d5
Expose splitMessage
2016-10-08 00:12:03 -04:00
Gus Caplan
1c4ed4547f
adds new WebhookClient and allows you to fetch channel webhooks and such without being "over the top" ( #768 )
...
* start blocking out client
* proto webhookclient
* wee working webhooks
* it's all working
* run docs
* fix jsdoc issues
* add example for webhookClient
* add example in the examples place
* fix docs
2016-10-07 19:09:41 +01:00
Schuyler Cebulskie
f9b7f9c27e
Add readonly
2016-10-06 21:49:08 -04:00
Schuyler Cebulskie
79b0d3f2a5
Client.readyTime -> readyAt (consistency)
2016-10-06 21:48:25 -04:00
Schuyler Cebulskie
93425c3979
Expand collection array caching
2016-10-04 19:10:29 -04:00
Schuyler Cebulskie
2c3c91fe41
Merge branch 'master' into indev
2016-10-04 19:02:09 -04:00
Slamakans
53f5c2cb52
Cache array and keyArray in Collection ( #771 )
...
* Cache array and keyArray in Collection
Cache array and keyArray in the Collection class to improve consecutive
calls of collection.random() by around 400,000%, I think lel.
The speed decrease (I assume) compared to the previous version when
calling after it has changed is most likely negligible.
* Fix for ESLint
I think this fixes it.
2016-10-04 18:53:26 -04:00
Schuyler Cebulskie
8d777db1d1
Clean up status type error
2016-10-03 20:27:41 -04:00
Schuyler Cebulskie
e24c9c271e
Quite possibly fix annoying bug Evie was complaining about
2016-10-03 20:25:39 -04:00
Programmix
c4e1e4f50f
Add InviteResolvable ( #766 )
...
* Add InviteResolvable
Add InviteResolvable
* Return data as fallback instead
* Rename resolver method
2016-10-02 19:21:08 -04:00
Amish Shah
57a418399b
start some stuff on UDP
2016-10-02 17:28:48 +01:00
Amish Shah
c75782781b
finish up voice websocket for now
2016-10-02 16:51:40 +01:00
Schuyler Cebulskie
77e37b62ef
Fix sendMessage with no content and split/disableEveryone
2016-10-02 11:14:32 -04:00
Amish Shah
2bb6ecdc28
documentation
2016-10-02 15:16:54 +01:00
Amish Shah
ed8b79aa46
Add session description and speaking listeners
2016-10-02 15:12:43 +01:00
Amish Shah
e201e9080f
start rewriting voice websocket
2016-10-02 14:59:05 +01:00
Schuyler Cebulskie
51f30d6e4c
Add nickname mention format to GuildMember.toString
2016-10-02 01:51:14 -04:00
Programmix
d35372d3e9
Fix MessageCollector.next edge case ( #765 )
2016-10-02 00:23:35 -04:00
Amish Shah
c286c1443f
voice rewrite part 1
2016-10-01 22:23:00 +01:00
Programmix
1fcc618532
Fix removeListener call ( #762 )
2016-10-01 16:22:32 -04:00
Programmix
34168eb832
Create MessageCollector.next ( #761 )
...
Allows using await with message collectors (ES7)
Hydrabolt approved™
2016-10-01 20:29:15 +01:00
Amish Shah
530035e14b
Fix stacked heartbeats on reconnect and fix documentation
2016-10-01 20:21:38 +01:00
Amish Shah
7c26603773
Fix presences probably ¯\_(ツ)_/¯
2016-10-01 15:27:56 +01:00
Amish Shah
ab15c45d96
fixed role stuff
2016-10-01 11:21:35 +01:00
Schuyler Cebulskie
9063aa8abf
Merge master
2016-10-01 03:44:43 -04:00
Schuyler Cebulskie
2acfb16cb8
Fix Guild.emojis doc
2016-10-01 03:41:49 -04:00
Schuyler Cebulskie
66beeb9535
Add role position comparison methods
2016-10-01 03:32:08 -04:00
Schuyler Cebulskie
93cf34a814
I found some more.
2016-10-01 02:58:32 -04:00
Schuyler Cebulskie
d1e07674b8
Make GuildMember.kickable/bannable take role IDs into account
2016-10-01 02:54:25 -04:00
Schuyler Cebulskie
db815d4d9f
I'm gonna need more derps to fix.
2016-10-01 02:47:17 -04:00
Schuyler Cebulskie
d246982a61
Fix another derp wooo
2016-10-01 01:42:13 -04:00
Schuyler Cebulskie
a441aaf546
Fix derp in GuildMember.kickable/bannable
2016-10-01 01:27:11 -04:00
Schuyler Cebulskie
8945344a3b
Improve role position updating (allows for <=0)
2016-09-30 22:51:37 -04:00
Schuyler Cebulskie
c2c477834f
Add Role.setMentionable
2016-09-30 22:48:25 -04:00
bdistin
428ee2f718
Added .missingPermissions() ( #756 )
...
* Added .missingPermissions()
* Added .missingPermissions()
* Fixed docs for .missingPermissions()
* Fixed Travis CI trailing spaces?
* Fixed Travis CI trailing spaces?
2016-09-30 22:08:19 +01:00
Schuyler Cebulskie
b1322cbc69
Initialise and document StreamDispatcher.paused
2016-09-30 03:12:01 -04:00
Schuyler Cebulskie
f157bcf5e8
Rearrange StreamDispatcher code
2016-09-30 03:09:08 -04:00
Schuyler Cebulskie
4934874613
Inline a line
2016-09-30 03:05:37 -04:00
Schuyler Cebulskie
b396d15b37
Remove usage of path.join for version export
2016-09-30 02:58:18 -04:00
Schuyler Cebulskie
5997aecc22
Rearrange events some more
2016-09-30 02:53:57 -04:00
Schuyler Cebulskie
1473f8c462
Rearrange event constants
2016-09-30 02:50:20 -04:00
Schuyler Cebulskie
543e814f8e
Move protocol version to a constant, and reorganise constants a bit
2016-09-30 02:45:16 -04:00
Amish Shah
cda31dd224
Fix a potential bug some people have in retrieving endpoints
2016-09-28 18:03:30 +01:00
Schuyler Cebulskie
155b4383d2
No, Hydra! Bad!
2016-09-27 22:13:04 -04:00
Schuyler Cebulskie
f0741f2288
Add ShardClientUtil export
2016-09-27 21:18:22 -04:00
Schuyler Cebulskie
0bcca7bb55
Add Collection.concat
2016-09-27 20:47:12 -04:00
Gus Caplan
aed75e1f9a
Add full guild emoji functionality ( #749 )
...
* all the emoji stuff
* fix things for hydra 😘
* feck i need to stop committing on github
* update docs again
* Butts
2016-09-27 20:44:09 -04:00
Schuyler Cebulskie
682e33cad9
Whoopsies
2016-09-27 20:21:52 -04:00
Schuyler Cebulskie
b8e659d544
Make Client.emojis suck less
2016-09-27 20:11:22 -04:00
Schuyler Cebulskie
973dbe8266
Add more @readonly and clean up some stuff
2016-09-27 20:07:33 -04:00
Schuyler Cebulskie
1a3f5ca6a9
Add Invite.expiresAt/expiresTimestamp
2016-09-27 19:50:03 -04:00
Schuyler Cebulskie
1e57c968dd
Made date/timestamps consistent and less shitty
2016-09-27 19:46:53 -04:00
Schuyler Cebulskie
b6c26cc2ae
Replace console.log in catches with console.error
2016-09-27 18:50:01 -04:00
Schuyler Cebulskie
8d18ed42f6
Update tests
2016-09-27 18:48:54 -04:00
Schuyler Cebulskie
ba8dd3467a
Switch config back to camelCase
2016-09-27 18:42:32 -04:00
Schuyler Cebulskie
4fceae02d6
Fix ShardClientUtil.fetchClientValues example
2016-09-27 17:25:17 -04:00
Schuyler Cebulskie
49d905a7b1
Reorganise some shard logic
2016-09-27 17:23:03 -04:00
Amish Shah
0ee3d6bb8a
fix sequences not being reset on new ws sessions
2016-09-27 20:10:42 +01:00
Amish Shah
045153584a
redo the client user presence stuff
2016-09-27 17:57:47 +01:00
Schuyler Cebulskie
38366f627d
Fix transmitting errors through IPC
2016-09-27 02:40:29 -04:00
Schuyler Cebulskie
9d3b7b49dd
Cleanup and reorganise some shard stuff
2016-09-27 02:25:38 -04:00
Schuyler Cebulskie
e5a987e0ef
Add client shard eval/client property fetching, and improve existing shard stuff
2016-09-27 02:19:53 -04:00
Schuyler Cebulskie
c26fc49caf
Fix property fetching
2016-09-26 23:34:47 -04:00
Schuyler Cebulskie
4fe30aa4d3
Rip out client sharding logic into its own class
2016-09-26 23:23:56 -04:00
Schuyler Cebulskie
d240fe4182
Improve prepend/append descriptions
2016-09-26 23:21:44 -04:00
Schuyler Cebulskie
36f4df2931
Capitalise two letters
2016-09-26 23:18:39 -04:00
Schuyler Cebulskie
ecbc591c95
Update setStatus docs for DND, other docs - setStatus code needs updating
2016-09-26 23:16:29 -04:00
Schuyler Cebulskie
9ebe5e64b7
Fix Hydra's disregard of the alphabet
2016-09-26 22:58:23 -04:00
Schuyler Cebulskie
ef63f0ee8b
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-09-26 22:56:11 -04:00
Schuyler Cebulskie
e5f4823bd4
Document do not disturb
2016-09-26 22:56:07 -04:00
Schuyler Cebulskie
0c0c1da0d5
Fix Presence/Game.equals with null/undefined
2016-09-26 22:53:35 -04:00
Schuyler Cebulskie
909af2084f
Clean up Presence
2016-09-26 22:53:08 -04:00
Schuyler Cebulskie
f2cd48d94b
Reorganise Presence
2016-09-26 22:50:26 -04:00
Gus Caplan
3e9253827f
add manage emojis constant ( #744 )
...
* add manage emojis constant
* this is why you don't commit on github i guess
2016-09-26 21:07:16 -04:00
Gus Caplan
c8761d72de
add guild emoji methods ( #742 )
...
* add guild emoji methods
* run docs
* crawl pointed out some things about the docs, so i fixed
* actually run the docs on the changes 🤦
2016-09-26 21:39:07 +01:00
Gus Caplan
b4f3575335
i am facepalming so hard right now ( #740 )
2016-09-26 03:55:54 -07:00
Amish Shah
f1cb39a319
Expose Presence and Game structures
2016-09-25 20:17:35 +01:00
Amish Shah
534d7af8c3
Fix resuming sessions ( fixes #699 )
2016-09-25 15:03:54 +01:00
Amish Shah
761b8cfb8d
fix docs
2016-09-25 14:28:51 +01:00
Amish Shah
03651fd6e3
Change how presences are handled
2016-09-25 14:16:03 +01:00
Amish Shah
0e8f1bef97
Stop comparing for equality on update events and just emit for performance
2016-09-25 11:24:02 +01:00
Gus Caplan
c8636fd277
fix heartbeat ( #737 )
2016-09-24 23:56:18 -07:00
Amish Shah
124965425a
Version bump to 9.3.0 \o/
2016-09-24 19:54:29 +01:00
Amish Shah
656bb52d15
Merge branch 'hkwu-bugfix/docs' into indev
2016-09-24 19:53:34 +01:00
Amish Shah
725da8d8a5
Merge branch 'bugfix/docs' of https://github.com/hkwu/discord.js into hkwu-bugfix/docs
2016-09-24 19:53:23 +01:00
Amish Shah
14b8360453
fix doc issue with role
2016-09-24 19:47:50 +01:00
Kelvin Wu
a38f34899d
Merge remote-tracking branch 'upstream/indev' into bugfix/docs
2016-09-24 14:10:04 -04:00
Amish Shah
aef0b83c34
comply to the latest rate limit stuff ( hammerandchisel/discord-api-docs#108 )
2016-09-24 18:19:18 +01:00
Gus Caplan
bd1449bc5a
make login sane ( #735 )
2016-09-24 17:55:31 +01:00
Kelvin Wu
bd465108a7
Fix return type in docs.
2016-09-24 11:58:51 -04:00
Schuyler Cebulskie
116e6bb4c8
Clean up totalShards default
2016-09-24 02:46:55 -04:00
Schuyler Cebulskie
d9bc5cea1e
Small cleanups
2016-09-24 02:43:27 -04:00
Schuyler Cebulskie
13e2b923e8
Return existing promise instead of failing, mark 2
2016-09-24 02:29:15 -04:00
Schuyler Cebulskie
f1bfd55233
Fix Guild.createChannel example
2016-09-24 02:21:06 -04:00
Schuyler Cebulskie
d62551bea2
Remove old code
2016-09-24 02:20:48 -04:00
Schuyler Cebulskie
1008f601f4
Add shard client prop fetching, remove guild count fetching, improve eval
2016-09-24 02:12:45 -04:00
Schuyler Cebulskie
e4f416ae6c
Add shard eval, broadcastEval, and fix fetchGuildCount response
2016-09-24 01:21:41 -04:00
Schuyler Cebulskie
65b93532ce
Add additional shard count checks
2016-09-24 00:51:31 -04:00
Schuyler Cebulskie
5ea62e63ab
Improve sharding some more
2016-09-24 00:44:47 -04:00
Kelvin Wu
fa18b0c6c9
Handle DM messages in cleanContent getter. ( #726 )
...
* Handle DM messages in cleanContent getter. Closes #725 .
* Fix build error, improve handling for user IDs.
* Update docblock to be more specific about behaviour.
* Handle group DMs in cleanContent.
* Regen docs.
2016-09-24 00:23:12 -04:00
Gus Caplan
063be5cee2
smarter sharding™ ( #732 )
2016-09-23 21:43:16 +01:00
Gus Caplan
fc9d049cc1
make shardmanager better ( #731 )
...
* add respawn thing for shards, and make it easier to recieve messages from shards
* run docs
2016-09-23 18:36:14 +01:00
Schuyler Cebulskie
4bf6ad30f3
Remove a line
2016-09-22 23:10:00 -04:00
Schuyler Cebulskie
90f05a34cb
Return the existing promise instead of erroring
2016-09-22 23:01:37 -04:00
Schuyler Cebulskie
7f652f7df8
Add delay param to ShardingManager.spawn
2016-09-22 22:51:58 -04:00
Schuyler Cebulskie
3fa4ff13e3
Add ShardingManager.fetchGuildCount
2016-09-22 22:48:21 -04:00
Schuyler Cebulskie
9d94fbfbcb
Document and change launch event params
2016-09-22 22:06:56 -04:00
Schuyler Cebulskie
b795ed8109
Overhaul sharding broadcast/send
2016-09-22 22:03:10 -04:00
Schuyler Cebulskie
737ad8e92b
Slightly improve some Collection docs
2016-09-22 21:36:06 -04:00
Gus Caplan
edd174a5eb
Add ShardingManager#send and ShardingManager#broadcast ( #730 )
...
* add ShardingManager#send and ShardingManager#broadcast
* make gawdl3y happy
* Fix a thing
2016-09-22 21:35:08 -04:00
Gus Caplan
e86b93b34f
fix docs because gawdl3y forgot >:( ( #724 )
2016-09-22 02:25:08 -07:00
Schuyler Cebulskie
8af96810dd
Rename Guild.prune to pruneMembers
2016-09-21 16:05:33 -04:00
Schuyler Cebulskie
6ba0dd26a6
Reorganise Guild methods
2016-09-21 16:04:33 -04:00
Schuyler Cebulskie
e9a7a06d52
Improve docs for voiceConnection/connection
2016-09-21 16:03:05 -04:00
Schuyler Cebulskie
a27f6c96bb
Fix & clean up Guild.voiceConnection and VoiceChannel.connection
2016-09-21 16:01:08 -04:00
Gus Caplan
15d7f8e2fe
Add Guild#prune ( #723 )
...
* make all changes neat
* run docs build
2016-09-21 15:57:14 -04:00
Schuyler Cebulskie
529d7207da
Add Role.mentionable
2016-09-21 15:15:47 -04:00
Jacob
126865384e
Compensate for API's stupid-ass positions in highestRole ( #721 )
...
* fix edge cases of highestRole not returning the highest role
* fix line length
* move space
* Fix formatting
2016-09-21 01:31:33 -04:00
Schuyler Cebulskie
46c28c0d05
Add Role.members
2016-09-20 23:27:56 -04:00
Schuyler Cebulskie
aa9fdf2e26
Small cleanups
2016-09-20 23:09:02 -04:00
Schuyler Cebulskie
468077ce96
Merge branch 'master' into indev
2016-09-20 23:02:56 -04:00
Matteo Rizzo
f383c78414
Fix VoiceConnection.playConvertedStream not playing anything ( #708 )
2016-09-20 23:01:02 -04:00
Schuyler Cebulskie
e5bac1339d
Improve Client.sweepMessages
2016-09-20 10:57:39 -04:00
Schuyler Cebulskie
6075ec0e19
Add more detail to debug message
2016-09-20 01:25:19 -04:00
Schuyler Cebulskie
8f1bc5edab
Add swept messages counter and debug message
2016-09-20 01:14:15 -04:00
Schuyler Cebulskie
5a9753e461
Double-fix my double-derp
2016-09-19 20:07:30 -04:00
Schuyler Cebulskie
0559aaf00b
Fix my derp
2016-09-19 20:01:20 -04:00
Schuyler Cebulskie
718f61a732
Fix various Guild properties getting unset
2016-09-19 19:36:14 -04:00
Schuyler Cebulskie
c72d350b30
More FAQ work
2016-09-19 18:58:18 -04:00
Schuyler Cebulskie
f3d4755b6b
Small FAQ format changes
2016-09-19 18:44:32 -04:00
Schuyler Cebulskie
45a74e790f
Add FAQ
2016-09-19 18:42:48 -04:00
Schuyler Cebulskie
9ad4e27ce5
Add note about bot accounts to bulkDelete
2016-09-19 18:12:21 -04:00
Schuyler Cebulskie
9503990a86
Rename max_message_lifetime to message_cache_lifetime
2016-09-19 17:52:11 -04:00
Schuyler Cebulskie
6362c94f11
Build docs
2016-09-19 17:07:14 -04:00
Schuyler Cebulskie
a2778d4a96
Fix resolveFile on nonexistent paths ( #717 )
2016-09-19 16:58:15 -04:00
Schuyler Cebulskie
afc8e5bee0
Add message sweeping
2016-09-19 16:52:46 -04:00
Schuyler Cebulskie
46d7dedc85
Add Message.editCode
2016-09-19 15:14:51 -04:00
Gus Caplan
e0b614c3b2
weee add clyde because we all love clyde ( #716 )
...
* update to work with clyde's avatar image ;)
* add clyde to user cache on ready
* Update Ready.js
* Update Ready.js
2016-09-19 14:56:52 -04:00
Schuyler Cebulskie
7957bc82cd
Fix member nicknames being unset ( #703 )
2016-09-19 14:45:30 -04:00
Schuyler Cebulskie
3441e2384f
Fix tiny-ass typo
2016-09-19 14:42:22 -04:00
Schuyler Cebulskie
3e114b9af7
Normalise some GuildMember values
2016-09-19 14:41:36 -04:00
Schuyler Cebulskie
f3bab30cce
Add missing MessageCollector export
2016-09-19 13:52:59 -04:00
Schuyler Cebulskie
c5982b0b90
Made MessageEmbedThumbnail/Provider/Author accessible
2016-09-19 13:46:37 -04:00
Schuyler Cebulskie
cb80d69649
Move MessageCollector into its own file
2016-09-19 13:41:17 -04:00
Schuyler Cebulskie
221fc7a103
Exposed all structures
2016-09-19 13:31:44 -04:00
Schuyler Cebulskie
47d873a8ca
Move and improve debug/warn docs
2016-09-19 05:11:35 -04:00
Schuyler Cebulskie
6a94658dd7
Clean up some stuff
2016-09-19 04:32:24 -04:00
Schuyler Cebulskie
6ede7a32fd
Switch timeouts/intervals to Sets
2016-09-19 04:16:32 -04:00
Schuyler Cebulskie
7d8667694d
Fix massive timeout/interval memory leaks
2016-09-19 03:49:42 -04:00
Schuyler Cebulskie
6f7deba4b3
Fix VoiceConnection client#voiceStateUpdate leak
2016-09-19 02:49:30 -04:00
Schuyler Cebulskie
039315a9a3
Replace local usages of GuildMember.id with user.id
2016-09-19 01:44:46 -04:00
Schuyler Cebulskie
9288cd8563
Replace usages of owner.id with ownerID, and fix GroupDMChannel.equals
2016-09-19 01:43:24 -04:00
Schuyler Cebulskie
77e171e599
Document Guild.ownerID
2016-09-19 01:38:18 -04:00
Schuyler Cebulskie
3fcc5183dc
Made GroupDMChannel.owner a getter and add ownerID
2016-09-19 01:36:01 -04:00
Schuyler Cebulskie
b8e3094b14
Add GuildMember.highestRole/kickable/bannable
2016-09-19 01:31:53 -04:00
Schuyler Cebulskie
d8542b3365
Made Message.guild a getter
2016-09-19 00:47:42 -04:00
Schuyler Cebulskie
8603759b5e
Add Message.editable/deletable/pinnable
2016-09-19 00:42:58 -04:00
Schuyler Cebulskie
5f9204f57c
Improve resolvePermission failure check
2016-09-19 00:19:15 -04:00
Schuyler Cebulskie
336366d653
Bad Hydra.
2016-09-18 23:46:59 -04:00
Schuyler Cebulskie
6c6da43da3
Fix ban/unban with IDs
2016-09-18 23:07:30 -04:00
Schuyler Cebulskie
bbddfef7f6
Add resolveUserID and improve other resolutions
2016-09-18 22:59:38 -04:00
Schuyler Cebulskie
ab7682f921
Tiny text changes
2016-09-17 23:22:15 -04:00
meew0
74b9e5d643
Update default permissions ( #706 )
...
During the nickname update the default value was changed from
36953089 to 104324097 to include some of the new nickname permissions.
2016-09-15 17:09:57 -07:00
Amish Shah
420f2ecdd4
Add Guild.voiceConnection and VoiceChannel.connection
2016-09-15 15:38:32 +01:00
Schuyler Cebulskie
0405b1a59f
Make TextBasedChannel.sendCode escape codeblocks
2016-09-14 21:20:58 -04:00
Amish Shah
9308d2ead3
Address #700
2016-09-14 16:35:38 +01:00
Amish Shah
69f947dfcb
Fix #701
2016-09-14 16:24:18 +01:00
Gus Caplan
7cb2e8eef7
add disconnect event, document warn and debug events ( #702 )
...
* add documentation for events, and add a disconnect event, because i know people use that
* generate docs, and fix a hastily copied docstring
* fix permissions freak out
2016-09-14 00:12:10 -04:00
Schuyler Cebulskie
25531170ec
Fix catch in _sendMessageRequest
2016-09-13 21:29:45 -04:00
Schuyler Cebulskie
bb0ca11776
De-stupify RESTMethods.getExistingDM
2016-09-13 20:50:18 -04:00
Amish Shah
b0adc881f3
Maybe fix #694 ?
2016-09-13 20:30:44 +01:00
Amish Shah
fbcea236c5
Fix avatars not being set on selfbots - fixes #697
2016-09-13 20:21:12 +01:00
Amish Shah
f7e89f61e6
Fix channelCreate being emitted twice - fixes #698
2016-09-13 20:00:00 +01:00
Schuyler Cebulskie
cdf3136cde
Make version a regular property instead of getter
2016-09-13 01:34:45 -04:00
Schuyler Cebulskie
ec6453a191
Add version export, and cleanup
2016-09-13 01:32:54 -04:00
Schuyler Cebulskie
136cf66eb0
Fix split prefix with undefined/null lang
2016-09-13 01:18:51 -04:00
Schuyler Cebulskie
862ec6a5be
Allow null/undefined TextBasedChannel.sendCode lang
2016-09-13 01:01:11 -04:00
Schuyler Cebulskie
9cd249342b
Teensy reorganisation
2016-09-12 21:40:15 -04:00
Schuyler Cebulskie
ac85ffce4b
Add Collection.keyArray/firstKey/lastKey/randomKey
2016-09-12 21:39:41 -04:00
Schuyler Cebulskie
84b33f9b66
Add Collection.reduce
2016-09-12 21:33:29 -04:00
Schuyler Cebulskie
0bd00b12b7
Add Invite.url and toString
2016-09-12 21:07:05 -04:00
Schuyler Cebulskie
8bcb670920
Spit-polishing ClientOptions docs
2016-09-12 17:50:24 -04:00
Schuyler Cebulskie
6aa9bfd7f9
More ClientOptions docs cleanup
2016-09-12 17:17:16 -04:00
Schuyler Cebulskie
168ecdf8a9
Reorganise client options and use typedef properties
2016-09-12 17:04:19 -04:00
Schuyler Cebulskie
5464ee7e64
Clean up MessageOptions JSDoc
2016-09-12 16:23:15 -04:00
Amish Shah
92775abb49
Version bump to 9.2.0
2016-09-12 18:35:47 +01:00
Amish Shah
02b257e1fc
Fix audio playing stupidly fast - fixes #689
2016-09-12 18:23:38 +01:00
Schuyler Cebulskie
5dd25ac1f1
Rename User typing methods
2016-09-12 13:08:11 -04:00
Schuyler Cebulskie
6fb0691a2b
Add label for permission strings docs
2016-09-12 13:06:11 -04:00
Schuyler Cebulskie
961346dcaa
Inline a line
2016-09-12 13:04:09 -04:00
Schuyler Cebulskie
8984bf332c
Capitalised some letters
2016-09-12 13:02:56 -04:00
Amish Shah
ac2ad0dd23
Document PermissionResolvables
2016-09-12 17:58:57 +01:00
Amish Shah
ea55b0efbd
Fix receiver.recreate()
2016-09-12 17:43:45 +01:00
Amish Shah
36435934c7
documentation v13
2016-09-12 17:36:38 +01:00
Amish Shah
75b01e0a4a
add /play to test file
2016-09-12 17:08:56 +01:00
Amish Shah
95369b0a89
Add VoiceReceiver.destroy()/recreate(), addresses #693
2016-09-12 17:01:15 +01:00
Amish Shah
b39d959cdf
Maybe fix voice and #650 ?
2016-09-12 16:39:18 +01:00
Schuyler Cebulskie
fba3508079
Add a little more detail about value
2016-09-12 02:52:32 -04:00
Schuyler Cebulskie
2aae20085b
Key -> Property
2016-09-12 02:20:53 -04:00
Schuyler Cebulskie
516e6556a0
Update main docs page server links
2016-09-12 02:07:57 -04:00
Schuyler Cebulskie
e24c1e55a0
Remove wholly unnecessary example
2016-09-12 00:33:24 -04:00
Schuyler Cebulskie
7457985e60
Fix Collection.findKey doc link
2016-09-12 00:28:27 -04:00
Schuyler Cebulskie
95605863c7
Add Collection.findKey
2016-09-12 00:26:02 -04:00
Schuyler Cebulskie
ac1f5f32e2
Add Collection.find with function
2016-09-12 00:18:21 -04:00
Schuyler Cebulskie
774b4d4694
Fix GuildMember.hasPermission(s) explicit for owner
2016-09-12 00:08:12 -04:00
Schuyler Cebulskie
38c85dc076
Add Role.hasPermissions
2016-09-12 00:06:21 -04:00
Schuyler Cebulskie
46b7628d59
Made hasPermission(s) docs a bit more consistent
2016-09-12 00:04:07 -04:00
Schuyler Cebulskie
ebaaa65741
Make GuildMember.hasPermissions check owner
2016-09-11 23:58:01 -04:00
Schuyler Cebulskie
b88498271c
Fix Message.isMentioned(null/undefined)
2016-09-11 23:56:31 -04:00
Schuyler Cebulskie
95de09f389
Reorganised a bunch of methods
2016-09-11 23:55:50 -04:00
Schuyler Cebulskie
ce6cb626dc
Add Message.toString
2016-09-11 23:36:24 -04:00
Schuyler Cebulskie
d7bcf9564f
Clean up recent User changes a bit
2016-09-11 23:34:09 -04:00
Gus Caplan
032d6613f7
add a message, because WHY THE HELL DID NO ONE EVER DO THIS ( #690 )
...
* add a message, because WHY THE HELL DID NO ONE EVER DO THIS
!!!
* make message better
* make linter happy
* disable max-len rule for line 37
* make gawdl3y be happy
* gawdl3y triggers me
* Update FfmpegConverterEngine.js
2016-09-11 21:28:17 -04:00
Amish Shah
9059eb13a2
Add passes to streaming voice
2016-09-11 18:49:18 +01:00
Amish Shah
d365eb95e2
document game data #687
2016-09-11 18:23:58 +01:00
Amish Shah
3dab19a3bc
Add Client.fetchInvite
2016-09-11 18:19:55 +01:00
Amish Shah
07f4a20f77
Add link to Discord API in README
2016-09-11 17:53:49 +01:00
Amish Shah
b476473a2c
Make npm test harder to pass (includes jsdoc now)
2016-09-11 17:50:28 +01:00
Amish Shah
8f1216d9a5
Add StreamDispatcher#start event
2016-09-11 17:39:07 +01:00
Amish Shah
aa5df43c50
Force user.bot to be a boolean
2016-09-11 17:25:16 +01:00
Amish Shah
f0a9a1353f
prevent further user inaccuracies
2016-09-11 16:57:09 +01:00
Amish Shah
77e83fb85a
Fix voice 😄
2016-09-11 16:41:05 +01:00
Schuyler Cebulskie
a52beaa78d
Improve GuildMember.permissionsIn failure
2016-09-11 11:08:54 -04:00
Schuyler Cebulskie
21ad5668ba
Build docs
2016-09-11 11:01:28 -04:00
Schuyler Cebulskie
e7eee3410a
This is unnecessary.
2016-09-11 10:59:34 -04:00
Schuyler Cebulskie
7ff9ac2bcc
Add TextBasedChannel.sendCode and make User/GuildMember partial implementations
2016-09-11 10:55:41 -04:00
Amish Shah
9e05caec0d
Add GuildMember.hasPermissions
2016-09-11 12:58:56 +01:00
Amish Shah
3fba72107b
Add GuildMember.permissionsIn and make ChannelResolvables more lenient
2016-09-11 12:51:32 +01:00
Amish Shah
7933d755be
Fix docs generator and add EvaluatedPermissions.hasPermissions()
2016-09-11 12:44:31 +01:00
Amish Shah
af33b2b5bb
fix #684
2016-09-11 12:38:57 +01:00
Amish Shah
5b8f882a0f
fix avatars being set to undefined
2016-09-11 11:50:19 +01:00
Schuyler Cebulskie
272555d9ae
Better.
2016-09-11 02:18:22 -04:00
Schuyler Cebulskie
350c893ead
Add GuildMember.toString
2016-09-11 02:13:49 -04:00
Schuyler Cebulskie
47d71d32f3
Make grammer gooder
2016-09-11 01:40:37 -04:00
Schuyler Cebulskie
0833500d60
Made most object typedefs specify their properties
2016-09-11 01:21:49 -04:00
Schuyler Cebulskie
7da00cf0fe
Add long message splitting
2016-09-11 01:01:36 -04:00
Schuyler Cebulskie
68879777d8
Rename EvaluatedPermissions.permission to .raw
2016-09-10 22:37:38 -04:00
Amish Shah
e75dd2638c
Add Burst requests - addresses #656
2016-09-10 22:12:10 +01:00
Amish Shah
48f84c6178
Fix nicknames not changing
2016-09-10 21:39:09 +01:00
Amish Shah
de6042a4d7
Merge branch 'master' into indev
2016-09-10 19:30:47 +01:00
Schuyler Cebulskie
3e39861534
Fix #677
2016-09-10 14:22:09 -04:00
Yannick Linke
6a53255ed5
Fixes typo in GuildRoleUpdate's documentation ( #679 )
...
See https://github.com/hydrabolt/discord.js/blob/7fe032c785/src/util/Constants.js#L156
2016-09-10 14:20:43 -04:00
Amish Shah
8f645267a9
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-09-10 18:05:21 +01:00
Amish Shah
00627ecde4
Change maximum age of images on README
2016-09-10 17:46:49 +01:00
Schuyler Cebulskie
537b372b42
Fix another ESLint failure
2016-09-10 12:46:22 -04:00
Schuyler Cebulskie
a5a269b940
Fix Hydra's ESLint failure
2016-09-10 12:42:04 -04:00
Schuyler Cebulskie
91a7d4f80e
Move channel type to constructors
2016-09-10 12:39:28 -04:00
Amish Shah
3f52ba27c9
DMChannel now uses data manager to instantiate users
2016-09-10 17:31:56 +01:00
Amish Shah
78673139ca
Move _typing to constructor
2016-09-10 17:30:20 +01:00
Amish Shah
fd564176ff
Have block in place for rare weird typing in voice channel bug
2016-09-10 17:28:51 +01:00
Amish Shah
d7bf40cab0
Simplify APIRequest endpoint
2016-09-10 17:21:15 +01:00
Amish Shah
894115758c
Stricter rate-limiting to avoid unlikely 429s
2016-09-10 17:21:04 +01:00
Amish Shah
c6aa16277a
Add TextChannel.members
2016-09-10 17:06:10 +01:00
Amish Shah
8c0685fa9a
Add StreamDispatcher.time and totalStreamTime, addresses #674
2016-09-10 14:44:52 +01:00
Amish Shah
9d1d7c5162
Version bump to 9.1.1
2016-09-10 14:27:29 +01:00
Amish Shah
0d417b6432
Fix voice speed issues, fixes #672
2016-09-10 14:22:14 +01:00
Amish Shah
4255dcd3ca
Fix multipart for requests, fixes #675
2016-09-10 12:40:51 +01:00
Amish Shah
84fe65ec78
Fix members being recreated after leaving - fixes #667
2016-09-10 11:38:48 +01:00
Amish Shah
cd404fc7d3
Merge branch 'master' into indev
2016-09-10 11:35:36 +01:00
bdistin
9b45294814
Update Guild.js ( #673 )
2016-09-10 07:31:37 +01:00
Schuyler Cebulskie
c405d67e09
Add User typing methods
2016-09-09 14:11:30 -04:00
Amish Shah
4278a37e3c
maybe fix voice idk
2016-09-09 18:45:33 +01:00
Amish Shah
b7204f33b9
some voice fixes
2016-09-09 18:35:27 +01:00
Amish Shah
f192d16b5b
Fix delays inbetween audio streams ( #632 )
2016-09-09 18:28:21 +01:00
Amish Shah
e57fe71387
version bump to 9.1.0
2016-09-09 17:34:27 +01:00
Amish Shah
dd623891e2
websocket should silently error if there are no listeners for error
2016-09-09 17:05:38 +01:00
Amish Shah
e44853ee6d
Fix weird bot bug #612
2016-09-09 16:41:57 +01:00
Schuyler Cebulskie
8f9923976f
Fix stuff
2016-09-09 11:35:59 -04:00
Amish Shah
dbaaa8dc93
Fix null game objects being defaulted to current game - fixes #666
2016-09-09 16:28:40 +01:00
Amish Shah
85fae72b7b
Fix #657
2016-09-09 16:23:07 +01:00
Schuyler Cebulskie
8d3018e190
Nice.
2016-09-09 01:08:17 -04:00
Schuyler Cebulskie
01d032abee
Merge remote-tracking branch 'refs/remotes/origin/master' into indev
...
# Conflicts:
# src/structures/Guild.js
2016-09-09 00:45:35 -04:00
Schuyler Cebulskie
9682adb9fe
Clean up PR a bit
2016-09-08 22:59:10 -04:00
Perry Berman
f7a542f12b
Add optional streamOptions to playStream() functions ( #663 )
...
* Adding playStream options
Added optional volume and seek properties
* fixed code formatting
Edited my code styling to match with the rest of d.js
* Added Default Variable
* Added Documentation
Added documentation for the streamOptions parameter
Added a default value for seek in FFmpegConverterEngine
Removed redundantcy
* Fixed docs for voiceConnection
* Change _updateMember's notSame check from && to || (#665 )
* Fixed git merge fail
* Built Docs. Again.........
* Hopefully finally fixed
2016-09-08 22:49:52 -04:00
Schuyler Cebulskie
4be7a1bfd1
My ESLint is broken
2016-09-08 22:30:27 -04:00
Schuyler Cebulskie
d42b589528
Rename emailOrToken -> tokenOrEmail
2016-09-08 22:27:38 -04:00
Schuyler Cebulskie
9309b702eb
Remove unnecessary default in docs
2016-09-08 22:06:53 -04:00
Schuyler Cebulskie
bbc9df0b0d
Improve cleanContent code
2016-09-08 22:05:30 -04:00
Tim Hwang
8f04fae4c0
Change _updateMember's notSame check from && to || ( #665 )
2016-09-08 21:55:50 -04:00
Kelvin Wu
9888cef486
Add content parameter to sendFile() ( #664 )
...
* Add content arg to sendFile(). Closes #658 .
* Shorten this a bit.
2016-09-08 21:55:18 -04:00
Brian Tanner
47a164bd36
fix epipe when skipping songs, probably fixes econnreset ( #662 )
2016-09-08 21:53:49 -04:00
Schuyler Cebulskie
a5dfa08777
Revert "Hopefully fix type showing in GuildChannel docs"
...
This reverts commit 5563af0da5 .
2016-09-08 19:56:21 -04:00
Schuyler Cebulskie
5563af0da5
Hopefully fix type showing in GuildChannel docs
2016-09-08 19:54:55 -04:00
LewisHogan
9bef99c75c
Added cleanContent getter ( #644 )
...
* Added cleanContent getter which replaces mentions with the equivalent
text.
(Majority of code implemented by Gus).
* Fixed bug where invalid mentions would cause crash
* Fixed not cleaning @everyone and @here
* Fixed only detecting first @here or @everyone, resolved to test software (and learn regular expressions) in the future
2016-09-08 16:38:17 -04:00
Schuyler Cebulskie
7fe032c785
Make default max_message_cache match docs
2016-09-08 03:01:49 -04:00
Schuyler Cebulskie
a6ae66e184
Build docs
2016-09-08 02:35:46 -04:00
Schuyler Cebulskie
57acd4f41a
Add GuildMember.permissions/hasPermission
2016-09-08 02:29:51 -04:00
Schuyler Cebulskie
594836b1bf
Rewrite Collection.map/filter, and add some/every
2016-09-08 02:26:28 -04:00
Schuyler Cebulskie
978cf9d87f
Fix permission overwrites for @everyone
2016-09-07 23:42:14 -04:00
Schuyler Cebulskie
465ff074e1
Prevent Guild.fetchMember from messing with fetchMembers
2016-09-07 23:12:36 -04:00
Kelvin Wu
9bdf670a14
Add Guild.defaultChannel. ( #646 )
...
* Add Guild.defaultChannel. Closes #643 .
* Change defaultChannel to a getter.
2016-09-07 15:58:18 -04:00
Schuyler Cebulskie
31bdc4fb1e
Probably fix GitHub's lacklustre rendering
2016-09-07 02:37:43 -04:00
Schuyler Cebulskie
580550e5e2
Add basic contributor's guide
2016-09-07 02:30:57 -04:00
Schuyler Cebulskie
bc09da9a35
Update documentation
2016-09-07 02:24:25 -04:00
Schuyler Cebulskie
818649b94f
Organise structure methods
2016-09-07 02:07:39 -04:00
Schuyler Cebulskie
73cb34ed37
Move _typing to text-based channels
2016-09-07 01:34:46 -04:00
Schuyler Cebulskie
f185d892c7
Fix two more lines to use new typing map
...
And a tiny text fix
2016-09-07 00:58:19 -04:00
Gus Caplan
b9caa2ee5d
when fetch_all_members is enabled, new guilds should also do that ( #623 )
...
* when fetch_all_members is enabled, new guilds should also do that
* Fix Gus' derp (#1 )
* Fix my derp (#2 )
* Fix another of Gus' derps (#3 )
2016-09-07 00:43:06 -04:00
Programmix
ab4707f9b4
Fix crash on role update ( #648 )
2016-09-07 00:26:34 -04:00
Schuyler Cebulskie
b7f582b7f0
Clean up a bunch of stuff
...
- Channel typing data is now a Map
- Client properties on structures are now non-enumerable and
non-configurable
2016-09-07 00:24:45 -04:00
Schuyler Cebulskie
3a790e74f4
Build docs
2016-09-06 20:39:39 -04:00
Schuyler Cebulskie
c7b4cf3d3f
Add Guild.fetchMember
2016-09-06 20:36:58 -04:00
Kelvin Wu
f3286402fb
Make Message.edit() accept arrays. ( #630 )
...
* Make Message.edit() accept arrays. Update corresponding parameters in docs (#624 ).
* Tweak parameter types in docs.
* Update docs.
2016-09-06 20:32:24 -04:00
Programmix
17bee8084e
Add Message.edits ( #636 )
...
* Add Message.edits
* Make travis happy
* Change @type for consistency
2016-09-06 19:20:35 -04:00
Schuyler Cebulskie
e4cac2d575
Rebuild docs
2016-09-06 18:09:33 -04:00
Schuyler Cebulskie
752e12116e
Move topic to TextChannel ( Fixes #642 )
2016-09-06 18:05:14 -04:00
Schuyler Cebulskie
9d694d2b67
Add ability to ban non-members from guilds ( #638 )
2016-09-06 16:55:42 -04:00
Schuyler Cebulskie
e1bda864f7
Add createRole with data ( #637 )
2016-09-06 16:54:06 -04:00
Kelvin Wu
bfc9de438a
Fix typo in readme. ( #631 )
2016-09-06 16:53:00 -04:00
Schuyler Cebulskie
7fea0a3937
Rename createdAt -> creationDate ( #628 )
...
* Rename createdAt -> creationDate
Also make it return a Date like it says, and small cleanup
* Build docs
2016-09-06 16:52:10 -04:00
Schuyler Cebulskie
6bfad00229
Small docs changes for consistency ( #617 )
2016-09-06 16:45:29 -04:00
Schuyler Cebulskie
910f47240d
Move and document GuildChannel.guild ( #613 )
2016-09-06 16:45:09 -04:00
HyperCoder
943767dc83
Add <User/Guild/Role/Channel>.createdAt ( #620 )
...
* Add Role.createdAt
* Add Channel.createdAt
* Add Guild.createdAt
* Add User.createdAt
* Change createdAt to Unix Timestamp
* Add createdAt to Emojis
* Change createdAt to Unix Timestamp
2016-09-05 15:59:27 +01:00
Tyler
6dfe160c52
Add get status() for Client ( #622 )
...
* Add get status() for Client
* Fix trailing space
2016-09-05 07:52:15 +01:00
Snazzah
bd113eef06
MessageEmbedAuthor ( #619 )
2016-09-05 07:22:51 +01:00
Schuyler Cebulskie
dc7b07022c
Add GuildMember.addRole/addRoles ( #615 )
...
* Add GuildMember.addRole/addRoles
* Add GuildMember.removeRole/removeRoles
2016-09-05 07:18:51 +01:00
Schuyler Cebulskie
e87c9bb9a0
Update readme and docs welcome ( #616 )
2016-09-05 07:18:10 +01:00
Schuyler Cebulskie
799054df00
Add more exports ( #610 )
2016-09-05 07:16:31 +01:00
Schuyler Cebulskie
7a8c8f7453
Fix example ( #609 )
...
* Fix example
* Build docs
2016-09-04 22:12:31 +01:00
Schuyler Cebulskie
2c6b804fc9
Improve sharding stuff ( #608 )
...
* Improve sharding stuff
* Build docs
2016-09-04 22:02:52 +01:00
Amish Shah
7b870d13de
Fix collection.find/findAll docs
2016-09-04 21:41:19 +01:00
Schuyler Cebulskie
28169c0f55
Clean up sentence structure, add more details, etc ( #606 )
...
* Clean up sentence structure, add more details, etc
* Build docs
2016-09-04 21:33:44 +01:00
Schuyler Cebulskie
5bd258a557
Allow sendMessage disableEveryone to override client option ( #605 )
2016-09-04 21:05:38 +01:00
Hackzzila
3b7d5e869b
Added disable_everyone ( #603 )
...
* Added disable_everyone
* Fixed docs
2016-09-04 19:03:59 +01:00
Manuel Kraus
48e7fad1c9
Expose TextBasedChannel#fetchMessage() ( #602 )
2016-09-04 18:46:29 +01:00
Amish Shah
4a252380d9
Remove redundant .jscsrc file
2016-09-04 18:04:42 +01:00
Amish Shah
bcab8805af
Add client.emojis and fix eslint
2016-09-04 17:54:31 +01:00
Amish Shah
db9d5b8110
Make setStatus take a streaming URL param
2016-09-04 17:48:02 +01:00
Amish Shah
bf3c283998
Add Message.isMentioned
2016-09-04 17:21:50 +01:00
Amish Shah
9f0db9d0d8
join arrays with new lines when sending as messages
2016-09-04 17:16:01 +01:00
Amish Shah
600541b476
Add guides
2016-09-04 17:10:17 +01:00
Amish Shah
bc8924b255
Add badges to the documentation README
2016-09-04 16:15:16 +01:00
Amish Shah
7db345942f
Build docs for PR
2016-09-04 16:13:55 +01:00
Tyler
027f95b7b2
Update installation command in welcome ( #597 )
2016-09-04 16:12:42 +01:00
Amish Shah
0741be6a95
Fix invalid link to README
2016-09-04 15:55:24 +01:00
Amish Shah
cb22f8efea
Update dependencies
2016-09-04 14:59:52 +01:00
Amish Shah
69900f3652
Add legacy docs
2016-09-04 14:22:26 +01:00
Amish Shah
302b1da9df
fix updating docs
2016-09-04 14:12:25 +01:00
Évelyne Lachance
4022c8167f
initial "more information" about updating ( #596 )
...
Still some work to be done.
2016-09-04 14:09:49 +01:00
Amish Shah
ab6c99f155
9.0.2
2016-09-04 13:48:39 +01:00
Amish Shah
cda16105f3
fix README
2016-09-04 13:47:49 +01:00
Amish Shah
9ce3b93827
9.0.1
2016-09-04 13:41:08 +01:00
Amish Shah
2762c1d439
Merge branch 'indev'
2016-09-04 13:27:23 +01:00
Amish Shah
28c9f94e11
Update README
2016-09-04 13:25:43 +01:00
Amish Shah
4598f90183
bump to 8.0.0
2016-09-04 12:46:02 +01:00
Amish Shah
e666c4edf7
Merge branch 'indev-rewrite' into indev
2016-09-04 12:42:31 +01:00
Amish Shah
3f7244da8d
reset indev
2016-09-04 12:42:09 +01:00
Amish Shah
0454674ceb
document shard
2016-09-04 12:37:42 +01:00
Amish Shah
7475f734ac
Add debug stuff
2016-09-04 12:31:16 +01:00
Amish Shah
f23c07a08e
document sharding stuff
2016-09-04 12:27:06 +01:00
Amish Shah
b1a25bd176
Add sharding manager
2016-09-04 12:21:07 +01:00
Amish Shah
906672e538
Merge branch 'indev-rewrite-sharding' into indev-rewrite
2016-09-04 12:17:42 +01:00
Amish Shah
89145b121d
add info to Guild
2016-09-04 12:15:39 +01:00
Amish Shah
1155c482f1
make client.readyTime a date
2016-09-04 11:55:23 +01:00
Amish Shah
9c915d1e0a
Fix constants errors not giving a stacktrace
2016-09-04 11:53:48 +01:00
Amish Shah
4d2bb891a9
Fix doc gen
2016-09-04 11:39:40 +01:00
Amish Shah
0c32e590a8
fix constants reference
2016-09-04 11:35:21 +01:00
Schuyler Cebulskie
0b908f5bce
Cleanup Part 2: Electric Boogaloo (Reloaded) ( #594 )
...
* Cleanup Part 2: Electric Boogaloo (Reloaded)
* Moar cleanup
* Tweak NOT_A_PERMISSION error
2016-09-04 10:08:09 +01:00
Amish Shah
5a9c42061f
Fix permissionsFor
2016-09-03 23:46:39 +01:00
Amish Shah
16fbbde35c
Make syncGuilds off limits to bot accounts
2016-09-03 23:25:26 +01:00
Schuyler Cebulskie
5af09d335c
Switch to maps for action deleted + more cleaning ( #592 )
2016-09-03 23:21:31 +01:00
Amish Shah
a3b9b0f1b4
Fix VC docs
2016-09-03 23:11:55 +01:00
Amish Shah
efd1d0c738
rewrite some docs and refactor some names
2016-09-03 23:06:58 +01:00
Amish Shah
7f9ea762ed
Add Collection.map();
2016-09-03 23:00:14 +01:00
Amish Shah
fced6983d9
GuildMember.roles is now a collection instead of an array
2016-09-03 22:56:33 +01:00
Schuyler Cebulskie
59a5862f2d
Clean up Actions code ( #591 )
2016-09-03 22:48:51 +01:00
Amish Shah
432c5ccc82
Add volume modification to dispatcher
2016-09-03 22:27:43 +01:00
Amish Shah
b6abe7dbab
actually register avatar example
2016-09-03 21:51:24 +01:00
Amish Shah
5d067d505c
Add avatar example
2016-09-03 21:51:05 +01:00
Schuyler Cebulskie
64d89b3748
Replace a few rejections with throw ( #590 )
2016-09-03 21:36:54 +01:00
Amish Shah
44b34154e8
guarantee promise resolution for voice connections
2016-09-03 21:32:11 +01:00
Amish Shah
1be0270796
Fix documentation generator
2016-09-03 21:26:02 +01:00
Amish Shah
7ff2568cfc
Fix collectors and make guild sync add previously unknown members
2016-09-03 21:21:15 +01:00
Amish Shah
09dee3d46a
Fix ready never firing for truly unavailable guilds
2016-09-03 21:10:10 +01:00
Schuyler Cebulskie
68acf37fd4
Add stricter/better ESLint config ( #589 )
...
* Add stricter/better ESLint config
* Remove more unnecessary @returns
2016-09-03 20:45:23 +01:00
Schuyler Cebulskie
2682c07bd8
Add dev dependencies and cleanup ESLint file ( #588 )
2016-09-03 19:32:04 +01:00
Amish Shah
a172fffd76
Actually add GUILD_SYNC
2016-09-03 17:59:16 +01:00
Amish Shah
513fdabd19
Add GUILD_SYNC support (user accounts are fixed now)
2016-09-03 17:58:59 +01:00
Schuyler Cebulskie
02324fbecb
Add string guild resolving ( #587 )
2016-09-03 17:01:50 +01:00
Schuyler Cebulskie
d97ce2e181
Remove all string object references ( #586 )
2016-09-03 16:58:28 +01:00
FrankenMan
ec0a5cdfbc
Reworded third sentence to be more grammatically correct ( #584 )
2016-09-03 14:00:01 +01:00
Schuyler Cebulskie
27652b94af
Make JSDocs follow general conventions ( #582 )
...
* Make JSDocs follow usual conventions
* Fix StringResolvable name
* Make function lowercase
2016-09-03 09:57:25 +01:00
Schuyler Cebulskie
44efcf3f52
Lower Node version requirement to 6.0.0 ( #583 )
2016-09-03 09:56:33 +01:00
Amish Shah
1cbd1bda46
fix the bug in a better way
2016-09-02 16:57:14 +01:00
Amish Shah
7d27667afc
Fix weird guild ug
2016-09-02 16:56:13 +01:00
Amish Shah
ae17a89191
Reduce memory usage by dynamically creating Dates
2016-09-02 13:18:27 +01:00
Schuyler Cebulskie
b8a5669fda
Overhaul channel typing system ( #576 )
...
* Overhaul channel typing system
* Fix ESLint error
* Add channel.isTyping()
* Add count argument to startTyping
* Add range checking to startTyping count
* Better range checking for count
* Add channel.getTypingCount()
* Change getTypingCount() to typingCount getter
* Switch isTyping() to typing getter
* Fix new methods and switch to Map
* Fix applyProp so getters/setters will work
* Add default value to force
2016-09-02 13:00:33 +01:00
Hyper-Coder
168256469e
Re add <Client>.uptime ( #579 )
2016-09-02 00:03:33 +01:00
Amish Shah
43f1c952c3
do more docs
2016-09-01 17:18:05 +01:00
Amish Shah
df9cab3864
whoops fix docs
2016-09-01 15:55:14 +01:00
Amish Shah
8d9a778320
fix guild owner
2016-09-01 15:54:58 +01:00
Amish Shah
552d603782
Try and fix author bug?
2016-09-01 14:50:45 +01:00
Amish Shah
aee547d28e
fix docs
2016-09-01 13:10:51 +01:00
Amish Shah
a725147f17
Document EvaluatedPermissions
2016-09-01 13:08:55 +01:00
Amish Shah
28ad224207
Add GuildMember as user resolvable
2016-09-01 12:05:29 +01:00
Amish Shah
1298fefa2f
Fix message docs
2016-09-01 10:08:46 +01:00
Amish Shah
5f5ee18543
Move message.mentionEveryone to message.mentions.everyone
2016-08-31 21:42:14 +01:00
Amish Shah
e8c1c228d0
Refactor getMessages to fetchMessages
2016-08-31 21:34:49 +01:00
Amish Shah
ff3148ddd4
Add awaitMessages
2016-08-31 21:13:38 +01:00
Amish Shah
91b1fa8359
Add CollectorOptions.max
2016-08-31 20:48:51 +01:00
Amish Shah
a638b6369a
Stop multiple end events
2016-08-31 20:44:35 +01:00
Amish Shah
e42f6b1024
Fix documentation
2016-08-31 20:40:13 +01:00
Amish Shah
1da8ec7ddd
Create TextBasedChannel MessageCollector
2016-08-31 20:39:02 +01:00
Amish Shah
892e162229
fix setTyping and many other timeout/interval based methods
2016-08-31 19:28:00 +01:00
Amish Shah
7f09da5d35
more shard stuff
2016-08-31 14:04:25 +01:00
Amish Shah
631626a3f9
Merge remote-tracking branch 'origin/indev-rewrite' into indev-rewrite-sharding
2016-08-31 13:43:18 +01:00
Amish Shah
b18aaa8711
Fix channel permission overwrites not being accounted for ( #574 )
2016-08-31 13:41:13 +01:00
Amish Shah
8c3ae2fd90
work on sharding
2016-08-31 13:36:05 +01:00
Schuyler Cebulskie
dbda589088
Massively improve performance of message caching ( #573 )
2016-08-31 10:05:15 +01:00
Tain101
0adfc0fe95
Fixed manageRoles bug in lib. Fixes #507 ( #570 )
...
* ChannelPermissions changed manageRoles to administrator. fixes #507
* fixed manageRoles bug inside lib/ChannelPermissions. fixes #507
fixed related comments inside Role.
2016-08-30 16:40:29 -07:00
Schuyler Cebulskie
f02cc27735
Fix ClientDataManager.killUser ( #572 )
2016-08-30 19:31:14 +01:00
Amish Shah
cde3bcb3bd
Tidy up shards a bit
2016-08-30 19:07:13 +01:00
Schuyler Cebulskie
bce3cd2b8b
Add key/value validation to Collection.find/findAll ( #569 )
...
* Add key/value validation to Collection.find/findAll
* Fix ESLint errors
2016-08-30 18:20:20 +01:00
Amish Shah
c70dfa83fb
Add ShardManager
2016-08-30 17:26:32 +01:00
Amish Shah
4df7968630
Add updating file
2016-08-30 15:06:24 +01:00
Amish Shah
39f969c777
Update docs
2016-08-30 14:56:39 +01:00
Amish Shah
4f41a86dd3
Clear timeout IDs from array after execution
2016-08-30 14:20:33 +01:00
Amish Shah
680ac48e3d
Emit error instead of console.log
2016-08-30 14:06:16 +01:00
Amish Shah
49d525109f
Fix ESLint
2016-08-30 13:55:55 +01:00
Amish Shah
907c1ed9f9
Add message.system
2016-08-30 13:47:52 +01:00
Amish Shah
0860d5210b
Add message.member if available
2016-08-30 13:40:44 +01:00
Amish Shah
d249aa10cc
Add client.destroy();
2016-08-30 13:05:57 +01:00
Schuyler Cebulskie
56352220af
Make Collection.find and findAll use .values() ( #567 )
...
* Make Collection.find and findAll use .values()
* Make Collection.deleteAll use .values()
2016-08-30 09:47:11 +01:00
Schuyler Cebulskie
60a1ba3088
Fix Collection.exists ( #566 )
2016-08-30 09:46:40 +01:00
Hyper-Coder
4f130a1a58
Fixed sendFile ( #565 )
...
https://images.typicalbot.com/i/57c4dcc5d74b7.png
2016-08-30 09:43:03 +01:00
Tain101
ee64253f0b
ChannelPermissions changed manageRoles to administrator. fixes #507 ( #561 )
2016-08-29 20:39:05 -07:00
Programmix
6d7e989e3b
Users are not servers ( #556 )
2016-08-29 20:38:23 -07:00
Amish Shah
c6688b94e6
add guildmember.nickname to docs
2016-08-29 22:55:01 +01:00
Amish Shah
090234cef2
Fix guild.owner doc
2016-08-29 22:53:52 +01:00
Manuel Kraus
817bea5a70
Add timeout to Message#delete() ( #563 )
2016-08-29 20:15:41 +01:00
Amish Shah
52adb3d8b2
undo fix whoops ¯\_(ツ)_/¯
2016-08-29 19:13:47 +01:00
Amish Shah
1e2e940b98
File resolving can use http too now
2016-08-29 19:10:05 +01:00
Amish Shah
78e0d88f55
Make file resolving non-blocking for local paths
2016-08-29 19:08:36 +01:00
Amish Shah
897cbfec77
Fix leaving guilds if you are the owner
2016-08-29 19:03:50 +01:00
Manuel Kraus
d9ae732bfd
Add sendFile function ( #562 )
...
* sendFile
* Add default value to filename
* eslint
* (╯°□°)╯︵ ┻━┻
2016-08-29 19:01:05 +01:00
Amish Shah
df934eccaf
Fix voice losing count
2016-08-29 16:41:33 +01:00
Amish Shah
3541b0a88f
Add MessageEmbed and subclasses
2016-08-29 15:53:57 +01:00
Amish Shah
f6c95de85d
Create MessageAttachment class
2016-08-29 15:35:44 +01:00
Amish Shah
5d06be6333
Add Emoji class
2016-08-29 15:18:41 +01:00
Amish Shah
144638e746
Experimental ClientOptions.fetch_all_members
2016-08-29 13:54:35 +01:00
Amish Shah
001460acc0
Add guild.fetchMembers() 🎉 🎉
2016-08-29 13:20:06 +01:00
Amish Shah
727f3de45b
Merge branch 'indev-rewrite' of https://github.com/hydrabolt/discord.js into indev-rewrite
2016-08-29 12:44:37 +01:00
Amish Shah
fe58105d04
Fix memberCount inaccuracy
2016-08-29 12:44:29 +01:00
Schuyler Cebulskie
0b4f4a559c
Make existence checks use .has(id) ( #559 )
2016-08-28 22:54:10 -07:00
Amish Shah
b44a3770d9
Added guild.fetchInvites()
2016-08-28 21:00:01 +01:00
Amish Shah
1dba048d2e
Add invite.delete()
2016-08-28 20:51:27 +01:00
Amish Shah
ba3d104619
Added guildChannel.createInvite();
2016-08-28 20:32:37 +01:00
Amish Shah
9f1475f358
Add TextBasedChanel.fetchPinnedMessages()
2016-08-28 19:42:40 +01:00
Amish Shah
a57d6b723a
Add message.pin() and .unpin();
2016-08-28 19:03:08 +01:00
Amish Shah
6ea2a523d6
Update node engine requirements
2016-08-28 18:56:12 +01:00
Amish Shah
3462bbc8d4
Remove opusscript from optionals whoops
2016-08-28 18:55:46 +01:00
Amish Shah
93771ce6d0
Make opusscript a dependency
2016-08-28 18:55:26 +01:00
Amish Shah
a91fcd5cab
Add ChannelPinsUpdate event
2016-08-28 18:50:55 +01:00
Amish Shah
309bc5da1f
document guildMemberAdd
2016-08-28 18:12:52 +01:00
Amish Shah
6bc7220ded
Merge branch 'indev-rewrite' of https://github.com/hydrabolt/discord.js into indev-rewrite
2016-08-28 17:41:19 +01:00
Amish Shah
ae862c38ff
Remove guild.kick for consistency
2016-08-28 17:40:45 +01:00
abal
ac7e1a052c
Add opusscript as a possible opus encoder ( #558 )
...
* Add opusscript as a possible opus encoder
* Make weird eslint rule happy
2016-08-28 17:35:59 +01:00
Amish Shah
a959cd339c
Fix inaccuracy in VoiceReceiver docs
2016-08-27 23:15:21 +01:00
Hackzzila
83b33c5046
Added MessageOptions to the docs and added an options param to sendTTSMessage ( #555 )
...
* Added MessageOptions to the docs and added an options param to sendTTSMessage
* Docs
2016-08-27 23:06:14 +01:00
Amish Shah
948a18dfe2
Fix docs.json
2016-08-27 22:52:21 +01:00
Amish Shah
ef0f38930f
Added Guild.fetchBans()
2016-08-27 22:48:48 +01:00
Amish Shah
22062f1f86
Added guild.unban
2016-08-27 22:31:21 +01:00
Hackzzila
2c056b6418
Added nonce support to sendMessage ( #553 )
2016-08-27 22:01:51 +01:00
Amish Shah
4d6c604322
Added GuildMember.ban()
2016-08-27 21:59:35 +01:00
Amish Shah
6a1a36813f
Add TextBasedChannel.setTyping(bool)
2016-08-27 21:44:08 +01:00
Schuyler Cebulskie
6faa409e96
Add note about requiring bot accounts ( #552 )
2016-08-27 20:22:08 +01:00
Amish Shah
b356ccf1e5
Merge branch 'indev-rewrite' of https://github.com/hydrabolt/discord.js into indev-rewrite
2016-08-27 19:40:18 +01:00
Amish Shah
9ea9623de0
Add Permission Overwrites deletion
2016-08-27 19:40:14 +01:00
Schuyler Cebulskie
7ae12ab325
Rename client.cacheUser to client.fetchUser ( #551 )
2016-08-27 19:28:18 +01:00
Amish Shah
135ab02104
fix eslint
2016-08-27 18:55:20 +01:00
Amish Shah
6293f28ad9
Add guild member nickname setting n stuff
2016-08-27 18:55:08 +01:00
Amish Shah
8a1bfe559d
Add guildmember nickname tracking
2016-08-27 17:54:58 +01:00
Amish Shah
50c6fa3433
Role hex stuff
2016-08-27 17:46:13 +01:00
Amish Shah
f2708dd26f
Add playPCMStream
2016-08-27 15:48:10 +01:00
Amish Shah
3718841c7c
Merge branch 'indev-rewrite' of https://github.com/hydrabolt/discord.js into indev-rewrite
2016-08-27 15:41:42 +01:00
Amish Shah
19d976748c
VoiceReadable stream now ends when a member leaves a VoiceChannel
2016-08-27 15:35:55 +01:00
Schuyler Cebulskie
f944dce5c7
Add client.cacheUser method ( #548 )
...
* Add client.cacheUser method
* Fixed ESLint issues
* Added existence check first
2016-08-27 15:22:07 +01:00
Amish Shah
e47f3dda94
Merge branch 'indev-rewrite' of https://github.com/hydrabolt/discord.js into indev-rewrite
2016-08-26 23:27:43 +01:00
Amish Shah
947f61e436
Actually fix message.mentions.channels
2016-08-26 23:27:37 +01:00
Schuyler Cebulskie
b1772089d1
Made GuildChannel.toString return a mention ( #543 )
2016-08-26 22:57:08 +01:00
Amish Shah
642d768cdc
Add textBasedChannel.bulkDelete()
2016-08-26 22:13:27 +01:00
Amish Shah
b22bda74b8
Fix ESLint
2016-08-26 21:17:37 +01:00
Amish Shah
e5057a5b6a
Add iconURL/avatarURL and fix object.values reference
2016-08-26 19:00:55 +01:00
Amish Shah
0988b47fcd
fix the derp
2016-08-26 18:49:19 +01:00
Amish Shah
ee6ccc5e17
Fix fs-extra dependencies
2016-08-26 18:05:36 +01:00
Amish Shah
870f3590fe
Merge branch 'indev-rewrite-voice' into indev-rewrite
2016-08-26 17:35:10 +01:00
Amish Shah
6ddc7a813c
Add VoiceReceiver streams
2016-08-26 17:34:28 +01:00
Gus Caplan
3a031c65e7
fix issues with line length being greater than 120 ( #544 )
2016-08-26 16:17:04 +01:00
Hackzzila
d215e283e6
Fixed fs-extra again, hydrapls ( #547 )
2016-08-26 16:16:39 +01:00
Hackzzila
8507e34995
Added fs-extra to the NON devDependencies (cmon hydra) ( #545 )
2016-08-26 01:43:15 +01:00
Schuyler Cebulskie
0a005cbd16
Fix other .equals(null) ( #541 )
2016-08-26 00:14:19 +01:00
Amish Shah
48762c642c
Make voice receiving better
2016-08-25 23:12:03 +01:00
Amish Shah
2d6068010b
Create basic voice receiving
2016-08-25 22:40:22 +01:00
Schuyler Cebulskie
8038903c3e
Fixed user.equals(null) ( #540 )
...
This fixes `user.equals` when passing `null` or `undefined`.
2016-08-25 22:06:32 +01:00
Amish Shah
7ba37a3511
fix eslint for opus
2016-08-25 22:02:41 +01:00
Amish Shah
ccf513a2fc
Fix DMs breaking
2016-08-25 21:38:50 +01:00
Amish Shah
8d094cdfb1
Add channel.type
2016-08-25 19:41:27 +01:00
Amish Shah
64b0e6bc84
guildMemberSpeaking docs
2016-08-25 19:13:38 +01:00
Amish Shah
fe3fdb7d6a
document voice
2016-08-25 19:12:23 +01:00
Amish Shah
6d7e649bb1
fix some voice stuff
2016-08-25 14:49:18 +01:00
Amish Shah
7b2d76429f
remove console.log
2016-08-25 14:28:27 +01:00
Amish Shah
baff7a094c
Merge remote-tracking branch 'origin/indev-rewrite' into indev-rewrite-voice
2016-08-25 14:26:38 +01:00
Amish Shah
d6f5df39fc
voice stuff
2016-08-25 14:24:19 +01:00
LewisHogan
cdb74a75f2
Indev rewrite - Changed GuildChannel type ( #536 )
...
* Altered GuildChannel.type to return a string containing either "text",
"voice" or the id of the channel type.
* Fixed typo
* Altered code to pass ESLint test (Functionality Unchanged).
* Third times the charm.
2016-08-24 23:38:07 +01:00
Amish Shah
253789f398
PLS WORK
2016-08-24 22:26:32 +01:00
Katherine McAuliffe
5500b87968
Fix two typos ( #535 )
2016-08-24 14:08:20 -07:00
Amish Shah
8683f45816
errory voice
2016-08-24 21:38:52 +01:00
Hyper-Coder
7892e62604
Added Client.uptime ( #533 )
...
* Added Client.uptime
* Added Client.uptime
* Update Client.js
2016-08-24 17:16:22 +01:00
Amish Shah
48444a5444
Fix voice channel members
2016-08-23 22:34:51 +01:00
Amish Shah
328f3c4ae8
Add VoiceConnection.disconnect([reason]);
2016-08-23 21:47:41 +01:00
Amish Shah
f9a553a7f0
Documentation
2016-08-23 21:16:52 +01:00
Amish Shah
d0a76f3f38
Promisify
2016-08-23 21:04:19 +01:00
Amish Shah
e370ccf806
Complete voice connection
2016-08-23 20:59:08 +01:00
Amish Shah
f713f52841
Add voice websocket handling
2016-08-23 19:13:23 +01:00
Amish Shah
d8b1ef47cd
voice setup waits for all data
2016-08-23 18:29:53 +01:00
Amish Shah
fa085c18cd
Handle Voice Server Update events
2016-08-23 17:52:40 +01:00
Amish Shah
dfbe44143a
merge
2016-08-23 17:12:37 +01:00
Amish Shah
d029227a8e
rebuild docs
2016-08-23 17:08:04 +01:00
Amish Shah
b065bf799c
Fix getMessages bug
2016-08-23 17:03:49 +01:00
Amish Shah
0edf838474
more voice stuff
2016-08-23 16:59:38 +01:00
Amish Shah
f38aff7523
start work on voice manager
2016-08-23 15:49:04 +01:00
Amish Shah
c8be80abd7
Add support to recognise 4004 codes and throw an error
2016-08-23 15:09:03 +01:00
Amish Shah
84a4755f53
Fix typo in docs
2016-08-23 14:44:22 +01:00
Amish Shah
2ed4ff7a55
Add caching to travis build script
2016-08-23 14:25:15 +01:00
Amish Shah
1ff7bce01d
Fix travis build script
2016-08-23 14:24:10 +01:00
Amish Shah
ebfe3e2e62
Add travis yml
2016-08-23 14:17:03 +01:00
Amish Shah
355dd462d3
Update .travis.yml
2016-08-23 14:09:04 +01:00
Amish Shah
0916cd71a5
Change test script to ESLint
2016-08-23 14:06:10 +01:00
Amish Shah
576a7f2488
Add TextBasedChannel{full}.getMessages()
2016-08-23 13:52:01 +01:00
Amish Shah
d710713c09
Add GroupDMChannel support
2016-08-23 13:27:25 +01:00
Hyper-Coder
3a16f5147d
Added message.reply ( #529 )
2016-08-23 02:12:46 +01:00
Amish Shah
50dcececfb
Create example docs
2016-08-23 00:34:46 +01:00
Amish Shah
51a399d558
fix docs
2016-08-23 00:18:43 +01:00
Amish Shah
1deefbd8cd
change maps to Collections
2016-08-23 00:17:44 +01:00
Amish Shah
725e0a8cfe
Rebuild docs
2016-08-22 23:37:41 +01:00
Amish Shah
ce0d9a7272
Add message.mentions.channels
2016-08-22 23:37:17 +01:00
Amish Shah
2a1799f20f
Move around mentions and stuff
2016-08-22 23:09:45 +01:00
Amish Shah
ddd3ea9727
Fixed Guild Role Delete Handling
2016-08-22 22:45:02 +01:00
Amish Shah
c96ecec24c
Fix recipient resolution
2016-08-22 22:31:22 +01:00
Amish Shah
c308a2a01c
Update docs for Client
2016-08-22 21:44:01 +01:00
Amish Shah
3fded1d7af
Add Sharding Support!
2016-08-22 21:31:43 +01:00
Amish Shah
fb2392a1ed
minor fixes to ClientUser.setStatus
2016-08-22 21:00:03 +01:00
Hyper-Coder
8fed1b1d80
Add setStatus function
2016-08-22 20:48:19 +01:00
Amish Shah
dd40b870d5
Add message.pinned
2016-08-22 20:46:56 +01:00
Amish Shah
357502e520
Fix user.status
2016-08-22 19:52:55 +01:00
Amish Shah
cf34f253cb
Change message.mentions to a Map
2016-08-22 19:45:27 +01:00
Amish Shah
59cc02de89
Remove lastMessageID from voiceChannel
2016-08-22 19:29:02 +01:00
Amish Shah
6ad970e311
Removed unused dependencies
2016-08-22 19:25:19 +01:00
Amish Shah
df456589ab
Fix requests getting locked up in queues
2016-08-22 19:15:08 +01:00
Amish Shah
89569d9249
fix docs yet again
2016-08-22 18:54:33 +01:00
Amish Shah
6986752578
Build docs
2016-08-22 18:49:13 +01:00
Amish Shah
c294a0fac4
Move example to right place
2016-08-22 18:48:31 +01:00
Amish Shah
85fd82818f
Pass ESlint
2016-08-22 18:47:38 +01:00
Amish Shah
6f2caffd32
Add setting channel overwrites
2016-08-22 18:47:21 +01:00
Amish Shah
00505d099a
change type of Client.options
2016-08-22 18:07:10 +01:00
Amish Shah
115850ad04
Fix channelMessage endpoint
2016-08-22 18:04:22 +01:00
Amish Shah
be7ed4077a
Add custom file support to new docs
2016-08-22 17:03:36 +01:00
Amish Shah
601987ed01
Merged branch indev-rewrite-docs into indev-rewrite
2016-08-22 16:44:09 +01:00
Amish Shah
cbb74e11d1
version bump gen version
2016-08-22 14:57:13 +01:00
Amish Shah
196fdfc31b
fix event docs
2016-08-22 14:55:04 +01:00
Amish Shah
f255094760
add params to events
2016-08-22 14:53:23 +01:00
Amish Shah
d66ac3fc39
Add param optional to docs
2016-08-22 10:53:53 +01:00
Amish Shah
4e53aa4a23
remove private from docs
2016-08-21 19:53:05 +01:00
Amish Shah
73b61b6b4e
uncompress docs
2016-08-21 18:05:54 +01:00
Amish Shah
ac7c543dfe
Fix doc gen
2016-08-21 17:47:16 +01:00
Amish Shah
985681f1f6
change doc gen
2016-08-21 17:26:38 +01:00
Brian Tanner
3e39d54933
change role hasPermission to return true for administrator ( #525 )
...
* change role hasPermission to return true for administrator rather than manageRoles
* add administrator to Role.serialize()
2016-08-20 14:00:30 -07:00
Amish Shah
30e6bbd7a4
docs
2016-08-20 16:19:37 +01:00
Amish Shah
c7df7a4744
build docs
2016-08-20 16:14:38 +01:00
Amish Shah
c5ab580562
fix docs
2016-08-20 16:09:06 +01:00
Amish Shah
24f3a36701
update doc gen
2016-08-20 16:06:00 +01:00
Amish Shah
2007ed7cef
Allow the doc gen to understand events
2016-08-20 00:20:55 +01:00
Amish Shah
65350348a8
Document all the events
2016-08-20 00:15:09 +01:00
Amish Shah
f8b2629b18
Update doc gen version
2016-08-19 23:00:25 +01:00
Amish Shah
3051ae7061
Add constructor documentation
2016-08-19 22:59:52 +01:00
Amish Shah
d2cba74c13
Remove unused variable to pass ESLint test
2016-08-19 22:35:46 +01:00
Amish Shah
8d5d90e222
Remove all data stores! Move to maps
2016-08-19 22:35:03 +01:00
Amish Shah
82ab92ca2a
Migrate most of the Client Data Store to Clien
2016-08-19 22:21:34 +01:00
Amish Shah
ad8b4c7698
Remove WebSocket datastore - move directly to WebSocketManager
2016-08-19 21:37:27 +01:00
Amish Shah
bd50e3c0a5
Remove VoiceChannel store and add members map
2016-08-19 21:29:07 +01:00
Amish Shah
4400eb1b5c
Moved _cacheMessage to TextBasedChannel to avoid repeating code
2016-08-19 21:20:00 +01:00
Amish Shah
4f4ec3146b
Store Channel Messages in Maps
2016-08-19 21:12:01 +01:00
Amish Shah
97e16e6eed
Make SequentialRequestHandler private
2016-08-19 20:11:46 +01:00
Amish Shah
fb55b6dc60
Rebuild docs
2016-08-19 20:10:32 +01:00
Amish Shah
ed818d6e7f
Remove GuildDataStore and move towards storing data in Maps
2016-08-19 19:58:37 +01:00
Amish Shah
75ff9fb096
Comply to the new Rate Limit Headers hammerandchisel/discord-api-docs#108
2016-08-19 19:03:10 +01:00
Amish Shah
c2e3d2b8ca
Fix time differences (add 1 second)
2016-08-19 18:47:59 +01:00
Amish Shah
f012655e53
Add 429 handling back into Sequential Handler
2016-08-19 18:47:41 +01:00
Amish Shah
fd64fb0a82
Use Date headers to offset time differences to fix rate limiting
2016-08-19 18:28:47 +01:00
Amish Shah
00be14b5d1
Add options.api_request_method
2016-08-19 18:15:16 +01:00
Amish Shah
dcba580d89
Implement Sequential Rate Limiting
2016-08-19 18:01:28 +01:00
Amish Shah
392133f927
document websocketmanager
2016-08-19 14:14:30 +01:00
Amish Shah
dbe978d926
Finish DataResolver docs
2016-08-19 13:59:22 +01:00
Amish Shah
871c60c8dd
fix client manager docs oops
2016-08-19 00:33:53 +01:00
Amish Shah
e0c987c1b2
add docs for ClientManager
2016-08-19 00:33:15 +01:00
Amish Shah
24df1bc621
test private methods
2016-08-19 00:17:14 +01:00
Amish Shah
a52b46fab4
Document private props in Client
2016-08-18 23:51:09 +01:00
Amish Shah
3c5a227ea0
Restructure typedef placement
2016-08-18 23:01:55 +01:00
Amish Shah
cc563f77c5
rename some stuff ¯\_(ツ)_/¯
2016-08-18 22:02:32 +01:00
Amish Shah
2dfd01d56e
Add new typedef parsing (for resolvables)
2016-08-18 21:44:12 +01:00
Amish Shah
863495cda0
add DMChannel docs
2016-08-18 18:57:24 +01:00
Amish Shah
3e3a411a42
fix docs
2016-08-18 18:51:35 +01:00
Amish Shah
976584a5bc
New docs
2016-08-18 17:12:37 +01:00
Amish Shah
6f9f103821
Fix the URL link god damn it hydra
2016-08-18 16:09:23 +01:00
Amish Shah
21c4654705
Update getting started to include evie's tutorial
2016-08-18 16:07:56 +01:00
Amish Shah
839ff5ce43
Docs for permissionoverwrites
2016-08-18 13:33:06 +01:00
Amish Shah
3ac191a812
add (incomplete) docs for guildmember
2016-08-18 13:30:25 +01:00
Amish Shah
3d3766f129
do more docs
2016-08-18 13:22:36 +01:00
Amish Shah
0ac66287d7
Fix logo in README
2016-08-18 13:16:49 +01:00
Amish Shah
329839318d
Fix logo in README.md
2016-08-18 13:16:00 +01:00
Amish Shah
be7b0fb5ca
Fix blank methods for user and textchannel
2016-08-18 13:13:35 +01:00
Amish Shah
18299970bd
Updated to docs format v3, adds support for interfaces
2016-08-18 13:07:45 +01:00
Amish Shah
4d4258b4e2
modify text/voice channels to show extensio from GuildChannel
2016-08-18 12:19:00 +01:00
Amish Shah
a5fd46d306
write MORE docs
2016-08-18 10:48:12 +01:00
Amish Shah
45f897fbe7
write some docs
2016-08-18 10:46:02 +01:00
Amish Shah
159233059e
Make ServerChannel GuildChannel
2016-08-18 10:27:31 +01:00
Amish Shah
46e89f56c7
work on docs
2016-08-18 10:13:00 +01:00
Amish Shah
55630a38ac
work on docs
2016-08-18 10:11:40 +01:00
Amish Shah
bca3cc7915
work on getting started
2016-08-18 00:16:51 +01:00
Amish Shah
22cdf0b258
fix docs
2016-08-18 00:12:16 +01:00
Amish Shah
c37191b582
Write some more docs
2016-08-17 23:46:58 +01:00
Amish Shah
562e3b119e
Fix user docs
2016-08-17 20:33:17 +01:00
Amish Shah
19f8f8e122
Fix role.hasPermission docs
2016-08-17 20:08:41 +01:00
Amish Shah
238a6824ef
Add documentation for Roles
2016-08-17 19:40:12 +01:00
Amish Shah
ab92be4209
Add a type to Message.id in docs
2016-08-17 19:22:18 +01:00
Amish Shah
79ea663afe
Fix guild.createChannel docs
2016-08-17 19:18:39 +01:00
Amish Shah
614c488f96
work on docs
2016-08-17 19:15:33 +01:00
Amish Shah
9dc8265a93
work on guild docs
2016-08-17 17:06:37 +01:00
Amish Shah
2b7dd39f3e
work on guild docs
2016-08-17 16:57:22 +01:00
Amish Shah
e7ef73ffdc
work on guild docs
2016-08-17 16:33:53 +01:00
Amish Shah
e7e6355cfe
work on guild docs
2016-08-17 16:28:31 +01:00
Amish Shah
13db0db298
updated client docs
2016-08-17 15:50:27 +01:00
Amish Shah
4fff20d66e
update some docs
2016-08-16 23:22:52 +01:00
David Sevilla Martín
1c7a5abd4e
Added end parentheses to shortcut in delete method ( #513 )
2016-08-16 09:53:12 -07:00
Brian Tanner
fdfd41dd8c
add .toObject() method to structures ( #522 )
...
* add .toObject() method to structures
* add compiled PMChannel change from last commit
* uncomment members in VoiceChannel toObject method
2016-08-16 09:53:07 -07:00
Hugo Holmqvist
e42178181d
Fixes some bool options ( #521 )
...
* Fix boolean options
* viewlad
* grunt
2016-08-16 09:50:27 -07:00
Amish Shah
89bbf5d6be
Merge pull request #519 from Hackzzila/indev
...
Added nonce support to 'sendMessage'
2016-08-15 22:28:22 +01:00
Zachary Vacura
3b594fd86d
Added nonce support to 'sendMessage'
2016-08-15 16:21:32 -05:00
Amish Shah
eba3bd0291
Update documentation generator
2016-08-15 22:07:01 +01:00
Hugo Holmqvist
ce198ef005
Add 'Bot' prefix to token ( #510 )
...
* Add 'Bot' prefix to token
* Add option for token prefix
* Maybe this is what abal meant?
* Change option name
* Check if token already starts with prefix
2016-08-14 11:38:04 -07:00
Amish Shah
1ea53c18ac
fix meta data for docs
2016-08-14 18:13:41 +01:00
Amish Shah
62856ff57a
start work on documentation generator
2016-08-14 18:12:59 +01:00
Amish Shah
0224138dc9
crappy ratelimiting it doesnt work but its here ok
2016-08-13 22:22:24 +01:00
Amish Shah
0d44a801f2
add support for Bot auth in REST
2016-08-13 17:23:23 +01:00
Amish Shah
603e231494
Fix implicit permissions in roles
2016-08-13 17:04:49 +01:00
Amish Shah
b2950b2997
Fix DM Channels
2016-08-13 16:51:01 +01:00
Amish Shah
7ada70f856
update back to v6 (again) and start work patching the lib
2016-08-13 16:41:06 +01:00
Amish Shah
75e3ee86fb
Add userLimit param to voice channel
2016-08-13 16:29:19 +01:00
Amish Shah
a2f8680514
Fix protocol versions
2016-08-13 16:23:24 +01:00
Amish Shah
c02d7808c1
go back to protocol 5 because the docs aren't ready for v6 ¯\_(ツ)_/¯
2016-08-13 16:01:01 +01:00
Amish Shah
50af835774
Move to v6 protocol
2016-08-13 14:53:04 +01:00
Amish Shah
f2ccef1ce5
remove console.log in rest
2016-08-13 14:45:22 +01:00
Amish Shah
b8db4c4f4b
ESLint stuff...
2016-08-13 14:44:49 +01:00
Amish Shah
53d767ec04
some doc stuff idk
2016-08-13 12:25:01 +01:00
Hugo Holmqvist
1963bcfa10
Fix typos and status update examples ( #505 )
...
* merge
* Add ready event to examples
2016-08-08 18:43:55 -07:00
abalabahaha
fe95e31f48
Return booleans in memberHasRole()
2016-08-07 08:10:04 +09:00
Manuel Kraus
8085f5bde3
Fix data undefined error ( #502 )
2016-08-06 16:08:23 -07:00
abalabahaha
d656c68e75
Add private message delete bucket
2016-08-07 08:03:26 +09:00
Zman840
c0ef815f9d
added emoji support ( #503 )
2016-08-06 15:29:17 -07:00
Brian Tanner
0a648e80c9
handle ffmpeg/avconv not found ( #501 )
2016-08-06 08:18:12 -07:00
Hugo Holmqvist
420e8527c2
Doc examples for sending files, deleting messages and logging in ( #499 )
...
* Add examples on sending files
* Add docs on deleting messages
* Add docs for logging out, fix spelling
2016-08-05 17:22:40 -07:00
Manuel Kraus
1624daa730
Update ChannelPerimssions.serialise() ( #497 )
2016-08-04 22:29:06 -07:00
abalabahaha
2b7f88ae3a
Unminify files
2016-08-05 08:11:45 +09:00
Hayden Andreyka
c2163a29c0
Docs update ( #495 )
...
* Fix pagebreaks and formatting
* Start touching up sections
* Grab default channel
Usually the general channel anyways 😋
* Add more information
* move this up here
* derp
* cleanup
* touchups
Too many commits? noooo
* Add template literals everywhere, fix backticks and some other stuff
* quote standardization
is that even spelled right
* final touches
there have been a lot of final touches today
2016-08-04 14:49:29 -07:00
Hugo Holmqvist
36245941b3
Fix undefined everyoneMentioned ( #492 )
...
* Fix undefined everyoneMentioned
* Fix double semicolon
2016-08-04 13:32:38 -07:00
abalabahaha
da31ae589a
8.1.0
2016-08-02 07:21:33 +09:00
Hugo Holmqvist
461e5b337e
Moar doc examples ( #490 )
...
* Add more examples to docs
* docs
* Switch to objects from resolvables
* Small changes in wording
2016-08-02 07:11:25 +09:00
Hayden Andreyka
4f713a3f6d
Added examples section to docs ( #488 )
...
* Started adding usage examples
* Receiving messages
May have to expand on this later
* Changed wording
* Add on to this
Conflicts:
docs/index.rst
2016-08-02 07:10:22 +09:00
abalabahaha
b05e18871a
Fill out browser and device IDENTIFY properties
2016-07-31 06:52:35 +09:00
abalabahaha
1049a1d70a
Add OAuth Application Endpoint constant
2016-07-29 01:17:19 -07:00
abalabahaha
810059200c
Add getOAuthApplication()
2016-07-29 01:05:01 -07:00
abalabahaha
34f71eaba1
Properly reference server IDs when ratelimiting
2016-07-29 09:06:31 +09:00
abalabahaha
95db1d611b
Fix reference to nonexistent property
2016-07-29 07:03:47 +09:00
abalabahaha
41dab17ec0
Fix deleteMessage ratelimiting
2016-07-29 06:58:22 +09:00
abalabahaha
d956780d18
Fix incorrect reference
2016-07-29 06:30:07 +09:00
abalabahaha
b95058399e
Enable autoReconnect by default
2016-07-29 05:56:50 +09:00
abalabahaha
952cfc0456
Experimental active ratelimits (adapted from Eris)
2016-07-29 05:37:43 +09:00
abalabahaha
dc939c48ee
Fix using deleteChannel on private channels
2016-07-28 04:36:04 +09:00
Gus Caplan
babf550459
Add tonicdev support ( #479 )
...
* example file for tonicdev
* add tonicdev to the package.json
* meh
2016-07-28 04:14:58 +09:00
Hugo Holmqvist
a102490b08
Voice event fixes ( #482 )
...
* Fix false voiceSwitch event
* Check channelIDs instead of names
2016-07-28 03:12:33 +08:00
abalabahaha
c63c39eb1f
Bump deps
2016-07-24 09:18:14 +09:00
Brian Tanner
422fffdbfb
a lot of changes to documentation ( #465 )
...
* document paused property
* node twitch.tv urls in setStreaming, added note on autoReconnect in troubleshooting
* Fix improper formatting in Cache.get (#1 )
* Fix grammar in unpinMessage
* Enhance troubleshooting (#2 )
* Enhance troubleshooting
* getChannelLogs can take resolvables
* Include variables
* Add shortcuts
* Add references to shortcuts
* Add shortcuts for User
* Add references for User
* _
2016-07-14 09:05:54 +08:00
Jesse Bryan
45d61f24db
Removed Client#setChannelNameAndTopic and any relevant references (fixed). ( #464 )
...
* Removed undeed functions relating to channelName and channelTopic.
* Compiled the last commit.
2016-07-14 09:05:44 +08:00
Jacob
f49f1ab3c8
fix voice state updates ( #461 )
...
* fix voice state updates
* use .has for backwards compatability and consistency
2016-07-14 08:31:19 +08:00
Manuel Kraus
cd2642c293
Fix updateChannel crashing ( #456 )
2016-07-12 03:13:19 +08:00
Jesse Bryan
7ae7a9aa34
Added a voiceSpeaking event, fired when a user in a voiceChannel starts or stops speaking. ( #452 )
...
* Added an event for the voice speaking packet.
* Updated the docs to reflect the voiceSpeaking event addition.
* Fixed some spacing issues in the VoiceConnection.js file.
* Moved the speaking boolean to the User object.
2016-07-12 03:12:27 +08:00
Amish Shah
0d53afe3ce
Added ability to edit a role
2016-07-03 16:27:04 +01:00
Amish Shah
3cd91a19aa
Added role.delete()
2016-07-03 13:04:39 +01:00
Amish Shah
849b8df2da
Added guild.createRole()
2016-07-02 21:28:49 +01:00
Amish Shah
bbf0b0683a
Added guild.kick(member) and member.kick()
2016-07-02 17:50:44 +01:00
abalabahaha
620d8cbf15
Fix close event reference
2016-06-29 14:25:23 +09:00
abalabahaha
c8ba6b5265
Add WS close code errors
2016-06-29 14:11:46 +09:00
Évelyne Lachance
1577075e52
Cache now returns null when using get(cacheID) with invalid ID ( #441 )
...
* Cache now returns `null` when using get(cacheID) where the ID is invalid.
* Documented `get(id)`
* Adjusted version in conf.py to 8.0.0
2016-06-26 13:30:24 +09:00
Manuel Kraus
d7026f80a4
Cache.remove fix ( #437 )
2016-06-22 01:36:32 +09:00
Manuel Kraus
ba51df918c
Add pinning ( #434 )
...
Added methods:
pinMessage()
unpinMessage()
getPinnedMessages()
Added params for getChannelLogs:
around
2016-06-18 11:21:52 +09:00
Brian Tanner
9c9768f772
fix Endpoints bug created in constants pr ( #432 )
2016-06-18 06:42:00 +09:00
Brian Tanner
fe3f6c7d20
Change the way constants are exported ( #431 )
2016-06-18 02:24:50 +09:00
Manuel Kraus
0e4612d7ab
Add client.getMessage() ( #428 )
...
* Add client.getMessage
* Add shortcuts
* build it..
* Add missing ~ in note docs
* ............
2016-06-16 07:31:02 +09:00
Manuel Kraus
0f4566dd23
Add notes ( #423 )
2016-06-15 13:04:47 +09:00
Ian Mitchell
7f864578e0
Corrected PM Message Documentation ( #424 )
2016-06-15 13:04:40 +09:00
Brian Tanner
4e8ac47f27
fix econnreset in playRawStream ( #427 )
2016-06-14 13:20:26 +09:00
abalabahaha
644061e881
Unminify lib files
2016-06-13 16:00:43 -07:00
Brian Tanner
ea89b7f783
small sendMessage doc fix ( #426 )
2016-06-14 07:55:39 +09:00
Brian Tanner
d9fa561dd9
fix presence updates not emitting game changes, closes #420 ( #421 )
2016-06-10 11:34:28 +09:00
abalabahaha
2cd1104d3d
8.0.0
2016-06-09 11:41:04 +09:00
abalabahaha
5133096a12
Upgrade deps
2016-06-09 11:34:13 +09:00
Programmix
02f39e00bf
Handle incomplete websocket message ( #413 )
...
Sometimes the VOICE_SERVER_UPDATE packet will contain a valid guild_id
but no token/endpoint.
2016-06-06 19:27:53 -07:00
Programmix
e59dd9b12a
Use pre-parsed websocket messages ( fixes #407 ) ( #412 )
2016-06-05 13:53:57 -07:00
Bruno Moreira
1672465768
Add destroy to docs ( #411 )
...
Just found this missing function.
2016-06-05 11:03:36 -07:00
abalabahaha
293f416e15
Actually return something
2016-06-03 19:16:09 -07:00
abalabahaha
6cd0561014
Possibly fix #404 , #405 , #409
2016-06-03 18:36:17 -07:00
Meishu
2bd7d9dc24
Fix misnamed variable in setChannelTopic ( #403 )
2016-06-03 18:31:34 -07:00
Brian Tanner
2ac679c169
unset game if empty string is passed ( #408 )
2016-06-03 12:16:51 -07:00
Manuel Kraus
627bbaf4ec
Fix server.afkTimout being undefined ( #399 ) ( #402 )
2016-06-02 09:26:50 -07:00
Brussell
636a095377
Add disableEveryone option ( #400 )
...
* Added support for new game objects
bot.setStreaming(name, url, type, callback); added
logic for Internal setStatus updated to check if string or object
* Add disableEveryone option
* forgot to compile
oh well, it can be squash merged
2016-06-01 21:35:32 -07:00
abalabahaha
c88feaa554
Add voiceSwitch to docs
2016-06-01 15:58:08 -07:00
abalabahaha
05def5b3f2
voiceSwitch, update user voiceChannel earlier
2016-06-01 15:57:05 -07:00
abalabahaha
0128a88e25
Don't construct messages from embeds
2016-06-01 15:42:35 -07:00
abalabahaha
1c8e773700
More if statements for bad state tracking
2016-06-01 15:36:27 -07:00
abalabahaha
afa2f33dfd
Compensate for bad state tracking
2016-06-01 15:30:40 -07:00
abalabahaha
cf413bd472
Check for valid author
2016-06-01 13:11:04 -07:00
Programmix
883743e137
Update IDENTIFY properties ( #397 )
...
Programmix needs to double check his code before committing
2016-05-31 20:00:04 -07:00
abalabahaha
bd15cc68ce
createdAt
2016-05-31 18:52:41 -07:00
Brian Tanner
d913d04f44
add docs for shardId, shardCount client parameters ( #394 )
2016-05-31 17:35:35 -07:00
Brian Tanner
bf89d678d8
add administrator constant doc ( #396 )
2016-05-31 17:35:29 -07:00
abalabahaha
f8bf945f9d
serverChannel.permissionsOf() can take a role
2016-05-31 10:59:05 -07:00
abalabahaha
e6054c6ace
Always fire messageUpdated, reset on login (#294,#295)
2016-05-31 10:24:19 -07:00
Brian Tanner
00e3708e78
add guild sharding support ( #393 )
...
* add guild sharding support
* squash if statements
2016-05-31 10:19:15 -07:00
Brian Tanner
a073010197
fix bug in hookEncodingProcess causing playRawStream to not work ( #392 )
...
* fix typo in hookEncodingProcess
* proper fix for _this4 bug in src, use arrow functions
* Get abalabahaha to build the noobs' changes
2016-05-30 19:10:23 -07:00
Brian Tanner
750f2a2b1b
fix typo in hookEncodingProcess ( #391 )
...
Programmix sucks at this
2016-05-30 15:02:18 -07:00
Programmix
6b5f4fa773
FFMPEG fix (finally) ( #390 )
...
Programmix sucks at this
2016-05-30 11:13:01 -07:00
abalabahaha
6bc2750f3d
Let the WS handler handle leaving servers
2016-05-28 21:48:18 -07:00
Programmix
7cf7c0e794
Another attempted fix (w/ help from izy521) ( #386 )
...
* Fix my very silly mistake
* Another FFMPEG issue fix attempt
* Add a missing semicolon
Yes, I really did make a commit just for this. :)
* Another attempted fix (w/ help from izy521)
2016-05-28 20:46:23 -07:00
Manuel Kraus
b4dcd657cf
Add role mentioning ( #385 )
...
* Add role mentioning
* Add to docs
* Forgot to save again
2016-05-28 20:46:16 -07:00
Programmix
95e3e3e3dc
Another FFMPEG fix attempt ( #384 )
...
* Fix my very silly mistake
* Another FFMPEG issue fix attempt
* Add a missing semicolon
Yes, I really did make a commit just for this. :)
2016-05-28 18:55:56 -07:00
Manuel Kraus
8d64435def
Update Examples ( closes #380 ) ( #383 )
...
* Update examples
* Forgot to save send-files
2016-05-28 18:55:39 -07:00
Programmix
b9506d01ab
Fix my very silly mistake ( #382 )
2016-05-28 09:47:14 -07:00
Programmix
2194632b7d
Potential FFMPEG process fix ( #381 )
...
I am by no means sure that this will work. This is an experimental fix.
Please review it carefully; I’m not the best at working with
audio/streams.
2016-05-27 23:09:16 -07:00
abalabahaha
e912c72a95
Merge pull request #375 from GexoXYZ/374
...
Fix bulk deletion error if < 2 messages (#374 )
2016-05-27 09:37:34 -07:00
abalabahaha
eff8caed85
Merge pull request #371 from Programmix/indev
...
Update channel improvements
2016-05-27 09:37:05 -07:00
Programmix
16eb38a99e
Quirky logic fix
2016-05-25 07:47:18 -07:00
Manuel Kraus
ad7ffcecb4
Beautify code style
2016-05-25 01:45:02 +02:00
Manuel Kraus
0a5ce3dcd5
Call deleteMessage if only one message
2016-05-25 01:40:18 +02:00
Manuel Kraus
8bee117445
Fix bulk deletion error if < 2 messages
...
Also return error if no server (dm)
2016-05-24 23:44:26 +02:00
Programmix
0f9741bb14
Update channel improvements
...
Also documented two methods for voice connections. (pause and resume)
2016-05-23 12:28:17 -07:00
Programmix
fae03042cb
User limit fix ( #359 )
...
* User limit fix
* Better request parameters
2016-05-22 22:36:08 -07:00
Nicholas Tay
bea1663052
Set bitrate for voice channels support ( #363 )
...
* Set bitrate for voice channels
* Docs for bitrate settings and values
2016-05-22 17:53:52 -07:00
abalabahaha
fe1d0bb595
Add bot property to presence update
2016-05-21 09:56:43 -07:00
Manuel Kraus
68bf4c9052
Fix linking in indev docs ( #354 )
...
* Fix linkning in indev docs
* add comma to setStreaming
2016-05-21 09:52:34 -07:00
Programmix
ab2c9d9a8d
VoiceChannel user limit support
2016-05-21 09:50:48 -07:00
Programmix
d42cbd1c14
Add server property to the Message class
...
Extremely simple change, but I (and others) would probably find it a
nice shortcut.
2016-05-21 09:46:03 -07:00
abalabahaha
79ee493a39
Role data update fix
2016-05-21 09:44:24 -07:00
Manuel Kraus
d2f0f4993e
Add mentionable to role objects ( #358 )
2016-05-21 09:20:32 -07:00
abalabahaha
48595ddd19
Add voice connection timeout
2016-05-20 20:50:49 -07:00
abalabahaha
3fa3b0238e
Catch udp close errors
2016-05-20 20:42:53 -07:00
abalabahaha
9015bb8139
Map roles to role IDs if possible
2016-05-20 20:40:32 -07:00
abalabahaha
00ff2f71a4
Build the playArbitraryFFmpeg fix
2016-05-19 08:49:19 -07:00
abalabahaha
e1808804c9
serverMemberUpdated clarification and crash fix
2016-05-17 22:31:35 -07:00
Denocle
43b1cc1d56
Fix for the playArbitraryFFmpeg issue ( #351 )
...
* This should probably fix #346
* Updated docs for playArbitraryFFmpeg
2016-05-17 06:30:47 -07:00
abalabahaha
e6572caf6c
guildCreateTimeout option
2016-05-16 15:01:50 -07:00
abalabahaha
e8874bae37
Doc getInvites
2016-05-14 17:41:06 -07:00
abalabahaha
1732cc71bd
Don't push debug stuff
2016-05-13 20:20:01 -07:00
abalabahaha
81cdb09363
Null roles fix
2016-05-13 20:14:01 -07:00
abalabahaha
e7882a38ee
Testing alternate role resolving
2016-05-12 17:30:44 -07:00
abalabahaha
873f78b02a
Avatar undefined check
2016-05-12 16:58:19 -07:00
Mees van Dijk
afc4c93119
Fixed Cache.has function ( #344 )
...
* Fixed Cache.has function
* Fixed Cache.has function
* Fixed Cache.has function
and ran grunt --dev
2016-05-12 16:27:13 -07:00
abalabahaha
db7dca65b2
Fix #342 , #321
2016-05-11 20:21:37 -07:00
abalabahaha
0e5a1d2df7
Some undefined checking
2016-05-11 16:42:18 -07:00
abalabahaha
3221bde4db
Pass voice ws errors
2016-05-10 22:03:05 -07:00
abalabahaha
d4b693c4b0
deleteMessages docs, fixes
2016-05-10 21:54:42 -07:00
Nicholas Tay
71db8555fe
Bulk deletion of messages ( #336 ) ( #337 )
2016-05-10 09:21:55 -07:00
abalabahaha
d73ebcdfd4
Don't remove unmutual-ed users
2016-05-08 22:03:57 -07:00
meanwhile
0ac0005697
Permission constants updated for new MANAGE_ROLES permission ( #333 )
...
Official Discord API changed 1 << 3 to a new administrator permission. MANAGE_ROLES is now on 1 << 28.
2016-05-08 18:49:05 -07:00
Brussell
0c38d47ef6
Added support for new game objects ( #332 )
...
bot.setStreaming(name, url, type, callback); added
logic for Internal setStatus updated to check if string or object
2016-05-08 09:47:22 -07:00
abalabahaha
42fd07c5e7
Whoops
2016-05-08 00:55:48 -07:00
abalabahaha
2a1d516a28
Update lastMessageID
2016-05-08 00:23:52 -07:00
abalabahaha
68c1e122c0
Revise member property handling
2016-05-08 00:21:36 -07:00
abalabahaha
af333ef4cc
Some fixes
2016-05-08 00:16:20 -07:00
abalabahaha
963b22e6ce
Fix #331
2016-05-08 00:09:58 -07:00
abalabahaha
726c0e9ed5
Fix setting own nick
2016-05-08 00:03:29 -07:00
hydrabolt
fb49ad7d93
Fix Message Sending and Support New Features. The library now supports
...
all the game streaming and URL stuff and is fixed for roles #328
src/client/websocket/packets/handlers/PresenceUpdate.js
2016-05-07 15:35:42 +01:00
abalabahaha
2eca16dee6
Consistently rename selfMute/selfDeaf
2016-05-04 19:55:19 -07:00
Manuel Kraus
46bcd3f5e3
Add nickname permission constants ( #320 )
...
* Add nickname permission constants
* typo
* Remove manageNickname
2016-05-04 16:57:52 -07:00
hydrabolt
bc443df11d
Added DM support, DM Creation and DM Deletion
2016-05-03 17:50:33 +01:00
hydrabolt
ab17375248
Added GuildUpdate handling, and setting guilds details
2016-05-03 16:42:38 +01:00
abalabahaha
9700f8577b
roles have positions too
2016-05-02 17:44:22 -07:00
Manuel Kraus
ad84aa84b8
Some doc fixes ( #315 )
...
#docs_client.rst:
- 257: Add proper eplanation of callback, like in every other method
- 433: Fix linking for Invite Resolvable
#docs_message.rst:
- 90 : Replace ':' with '-', just for consistency with the others
#docs_resolvables.rst:
- 92 : String doesn't link to anything (?) -> Link removed
#docs_servers.rst:
- 109 : Properly indent code-block because it didn't show at all on rtfd
#docs_serverchannel.rst:
- 53 : Remove doulbe '`' causing it not to display properly
#docs_voiceconnection.rst:
- 67 : Remove 'currently, it currently
#docs_voiceconnection.rst:
- 32 : Add links for Role Resolvable, as used in client#addMemberToRole,
client#removeMemberFromRole and client#memberHasRole
2016-05-02 13:05:09 -07:00
hydrabolt
82ac3d1c44
Remove TODO list, now tracked by issue #313
2016-05-02 13:07:55 +01:00
hydrabolt
a0418a2551
update TODO list whoops
2016-05-01 21:14:23 +01:00
hydrabolt
ebfc2169d5
Added ClientUser modification support
2016-05-01 21:12:42 +01:00
abalabahaha
5125407151
Fix some incorrect docs references
2016-05-01 10:17:16 -07:00
hydrabolt
f95c588d87
Added Guild Deletion
2016-05-01 14:51:46 +01:00
abalabahaha
ba82722264
Document awaitResponse
2016-04-30 17:25:28 -07:00
abalabahaha
96ed5a1e52
Clarify joining server with OAuth bots
2016-04-30 13:35:05 -07:00
abalabahaha
1f5002ae41
Nickname mention detecting, channel and role mentions in cleanContent
2016-04-30 13:01:06 -07:00
abalabahaha
e48f2ffae3
Add setNickname docs
2016-04-30 11:58:12 -07:00
hydrabolt
3a0426482e
update TODO list
2016-04-30 18:27:34 +01:00
hydrabolt
90cf787759
I think I got ChannelUpdate working??
2016-04-30 18:22:09 +01:00
abalabahaha
249b6f919a
Null unset nicks
2016-04-29 19:37:15 -07:00
abalabahaha
b47540d6eb
Testing nickname support
2016-04-29 19:25:06 -07:00
hydrabolt
2341c83638
Added channel.delete()
2016-04-27 16:25:57 +01:00
meew0
68e1549361
Fix the updateServer documentation
2016-04-27 16:36:34 +02:00
hydrabolt
b436fac5c4
Fix presence update bug ( #297 )
2016-04-26 17:46:34 +01:00
hydrabolt
2d3116d505
Added guild.createChannel(name, type)
2016-04-26 17:44:42 +01:00
hydrabolt
e9d7dfaee3
Added message.edit(content)
2016-04-24 17:30:58 +01:00
hydrabolt
618d8bb957
Simplified client.rest.methods.DeleteMessage, now only takes a message instead of a channel and a message.
2016-04-24 16:41:23 +01:00
hydrabolt
1676a5e73f
Bridged WebSocket Events and REST Requests. Now REST Requests will respond exactly like WS Events to data
2016-04-24 16:30:58 +01:00
Manuel Kraus
9322c0bbd7
Fix Constants changes ( #293 )
2016-04-23 21:18:25 -07:00
abalabahaha
619139f871
Fix starting PMs
2016-04-23 10:15:29 -07:00
Bruno Moreira
a5517c2c3b
Fix obligatory content on sendFile ( #292 )
2016-04-23 09:32:15 -07:00
abalabahaha
68a21ee679
Potentially fix autoReconnect without internet
2016-04-22 18:14:47 -07:00
abalabahaha
ad338c6a29
Fix logout + autoReconnect loop
2016-04-22 18:07:58 -07:00
abalabahaha
d18fcdbeea
Merge pull request #290 from BrunoMoreira991/indev
...
Fix use of Array as String Resolvable on sendFile with content
2016-04-22 17:52:22 -07:00
abalabahaha
ca251423ea
Blank the browser property
2016-04-21 23:41:13 -07:00
BrunoMoreira991
6f466a401e
Fix use of Array as String Resolvable on sendFile with content
2016-04-22 01:27:23 +01:00
hydrabolt
c42e303b7b
Add Message Deletion via message.delete()
2016-04-21 18:50:46 +01:00
hydrabolt
a2841f285c
Add TODO list
2016-04-21 18:40:26 +01:00
hydrabolt
03caddb4b5
Add Rate Limiting, see hammerandchisel/discord-api-docs#20
2016-04-21 18:24:08 +01:00
hydrabolt
f3e1760538
add channel.sendMessage and channel.sendTTSMessage
2016-04-21 17:42:52 +01:00
abalabahaha
b6842d3e07
Make client.user.game use the proper format
2016-04-20 20:18:25 -07:00
abalabahaha
907f4f4b27
Update readme example to use loginWithToken
2016-04-20 20:16:18 -07:00
abalabahaha
283c99dee8
Fix weird options comments
2016-04-20 20:12:52 -07:00
hydrabolt
b8283a8f29
src/client/websocket/packets/WebSocketPacketManager.js
...
Unify ready and reconnecting properties into a single status property
and future-proof Message class
The state of the WebSocketManager is now represented by a single
status property, removing emittedReady
and reconnecting as representations of state.
Message class will now also cache users it isn't aware of that appear
in mentions and authors.
2016-04-20 17:45:20 +01:00
hydrabolt
acc9c9bf12
src/client/websocket/packets/WebSocketPacketManager.js
...
src/structures/datastore/WebSocketManagerDataStore.js
Added "rough" reconnection attempting
The following however still needs to be done:
1) stop trying after a certain amount of time
2) increasing timeout between each timeout
3) re-evaluate the current method of how reconnecting is handled
internally
2016-04-19 20:24:23 +01:00
hydrabolt
da42b422f0
Added Permission evaluation for channels and EvaluatedPermissions class.
2016-04-18 19:31:36 +01:00
hydrabolt
00327a5776
Add MessageUpdate handling
2016-04-18 18:12:57 +01:00
hydrabolt
d437fd31cf
MessageDelete handling
2016-04-18 18:06:31 +01:00
hydrabolt
c947e172d6
Add MessageCreate handler, set up Message class and add ability to Cache messages
2016-04-18 17:55:21 +01:00
hydrabolt
7f4751e7c4
add PermissionOverwrites class in preparation for permission evaluation
2016-04-18 17:23:37 +01:00
hydrabolt
c36cc3b551
Added GuildMembersChunk handler; untested
2016-04-18 16:54:14 +01:00
hydrabolt
ce2cf382b3
TypingStart handler
2016-04-18 16:39:57 +01:00
hydrabolt
d1d13f5c85
Added VoiceStateUpdate handler and DataStore for VoiceChannels. Also added toString methods to Guilds, DMChannels, ServerChannels and Users.
2016-04-17 19:12:29 +01:00
hydrabolt
685d7b622c
Fix READY bug when logging in with email/password, add UserUpdate packet handler
2016-04-17 18:37:15 +01:00
hydrabolt
abc3f9e2fa
Presence tracking
2016-04-17 18:20:57 +01:00
hydrabolt
71a4cd6a93
Added full Role tracking
2016-04-17 15:43:12 +01:00
hydrabolt
bbf7be7dfa
Tracking of GUILD_ROLE_CREATE/UPDATE/DELETE events
2016-04-17 15:17:18 +01:00
hydrabolt
4de1f4ce99
Created Role class and permission evaluation within Roles
2016-04-17 15:03:23 +01:00
abalabahaha
533d49d7d4
Fix potential permissionsOf crash
2016-04-16 23:51:49 -07:00
abalabahaha
0d2b504bde
Merge pull request #278 from nicholastay/275_friendfix
...
Friend request remove packet fixes
2016-04-16 23:15:42 -07:00
Nicholas Tay
41ead870b7
Update friend_remove cases (should fix #275 )
2016-04-17 16:11:51 +10:00
hydrabolt
30f5e2943a
Create Member class, stop storing member data separately and merge into one class with a User
2016-04-16 23:24:52 +01:00
hydrabolt
ccffe09bca
remove unused shim object.entries
2016-04-16 23:01:58 +01:00
hydrabolt
9956e43c8e
initial
2016-04-16 22:58:49 +01:00
abalabahaha
a3cd539eac
no-optional command in README and OAuth invite accepting warning
2016-04-16 10:56:33 -07:00
abalabahaha
9083893d79
7.0.1
2016-04-16 10:49:48 -07:00
abalabahaha
197c416642
Some docs updates
2016-04-16 10:46:17 -07:00
abalabahaha
487f3ea4f4
Sketchy autoreconnect
2016-04-16 10:32:21 -07:00
abalabahaha
0d93ce9fbd
Docs update and updateServer option processing
2016-04-16 00:35:36 -07:00
abalabahaha
dd71bb9e27
ability to send file via sendMessage
2016-04-15 20:10:30 -07:00
abalabahaha
5f1e1b989b
updateServer with options
2016-04-15 19:30:01 -07:00
abalabahaha
3ed5f4fb90
Blocked users store, move some warn messages to debug
2016-04-15 19:29:35 -07:00
abalabahaha
864126976f
Fix sendFile content
2016-04-15 19:09:14 -07:00
abalabahaha
d0f2029fa6
Voice state update null check
2016-04-15 18:15:20 -07:00
abalabahaha
9251fd01ce
sendFile with content
2016-04-13 10:50:03 -07:00
abalabahaha
ecc35eecda
Ratelimiter inconsistency fix
2016-04-13 02:06:18 -07:00
abalabahaha
fc74912a8f
Update leaveVoiceChannel docs entry
2016-04-13 01:06:11 -07:00
abalabahaha
3e243a25d3
7.0.0 webdists
2016-04-13 00:50:46 -07:00
abalabahaha
6b189cf3af
7.0.0
2016-04-13 00:47:48 -07:00
abalabahaha
2842b97776
Throw errors on missing voice dependencies
2016-04-13 00:46:13 -07:00
abalabahaha
28fce9ea34
Some docs
2016-04-13 00:38:12 -07:00
abalabahaha
afa5fa1758
Fixes
2016-04-13 00:05:08 -07:00
abalabahaha
b7f20956d7
wait for most servers to be ready
2016-04-12 23:27:44 -07:00
abalabahaha
675ea93bc3
fix the forceFetch fix
2016-04-12 23:07:40 -07:00
abalabahaha
71dd084667
forceFetch fix
2016-04-12 23:01:45 -07:00
abalabahaha
78edc3b371
Merge pull request #266 from Programmix/indev
...
Voice State Update crash fix (different from other one)
2016-04-10 13:58:37 -07:00
Programmix
afde031267
Update voiceConnections on destroy
...
Instead of manually removing VoiceConnections from
InternalClient.voiceConnections, just integrate the functionality into
VoiceConnection.destroy()
2016-04-10 13:49:13 -07:00
abalabahaha
b6d1cb88cd
Merge pull request #264 from nicholastay/patch-2
...
Voice State Update crash & small friends property fix
2016-04-10 10:38:47 -07:00
Nicholas Tay
c247a3979b
Should be making the self friends stuff null if bot acc
2016-04-11 00:39:14 +10:00
Nicholas Tay
db1435910d
Fix for when other users move from different server to another across voice
2016-04-11 00:38:38 +10:00
meew0
bf78c441dd
Add a backwards-compatible getter for the first voice connection, thanks @qeled
2016-04-06 15:00:14 +02:00
Aaron Scherer
877eaab3c1
Scope fix for chunk requests during GUILD_CREATE
...
"scope fix"
* Update InternalClient.js
* Update InternalClient.js
2016-04-06 00:50:56 +02:00
meew0
d53aabefb0
Fix an off by one error in volume transformation range checking
2016-04-05 18:01:49 +02:00
meew0
d48458b80f
Add an extra range check to the volume transformer, should hopefully fix #193
2016-04-05 17:33:14 +02:00
abalabahaha
0e54d77025
Merge pull request #251 from nicholastay/multi_voice
...
Multi voice channel support (new oauth bot accounts and diff servers)
2016-04-05 06:01:45 -07:00
abalabahaha
3a8d4499d0
Merge pull request #250 from aequasi/indev
...
Adding server update on serverCreated for large servers
2016-04-05 06:01:36 -07:00
Nicholas Tay
5619e97a39
Minor fixes for d/c handler and non-bot accounts
2016-04-05 12:22:50 +10:00
Nicholas Tay
78399a77ae
Handle client being moved around as well
2016-04-05 11:42:43 +10:00
Nicholas Tay
a15b8e56c7
Multi voice connections across servers working
2016-04-05 11:28:13 +10:00
Aaron Scherer
30d011c7ac
Adding server update on serverCreated for large servers
2016-04-04 17:08:12 -07:00
abalabahaha
cfc1f7f6ae
Merge pull request #247 from Lord-Ptolemy/indev
...
Added mute, unmute, deafen, undeafen
2016-04-03 13:33:14 -07:00
Lord-Ptolemy
040ea21b33
Added mute, unmute, deafen, undeafen
2016-04-03 16:16:15 -04:00
abalabahaha
ad66991f36
Use alternatives to .find() because that's not polyfilled
2016-04-03 04:41:57 -07:00
abalabahaha
b3a65a4ed6
Merge pull request #238 from nicholastay/friends_support
...
Friends (relationships) support
2016-04-02 03:03:27 -07:00
abalabahaha
2c55a65ddb
Merge pull request #245 from hydrabolt/volume-fixes
...
Volume fixes
2016-04-02 03:02:44 -07:00
meew0
dcd57277cd
Made channelDeleted emit for private channels, fixes #243
2016-04-02 11:34:48 +02:00
meew0
c5732efdb1
Make tweetnacl an optional dependency, fixes #244
2016-04-02 11:21:30 +02:00
meew0
8fa3c24b12
Rebuild for volume changes
2016-04-02 11:15:33 +02:00
meew0
3a2c449197
Add a function to set the volume to a decibel value
2016-04-02 11:09:51 +02:00
meew0
910b5a7ae6
Add a function to set the volume in a logarithmic way
...
so that 0.5 is -10 dB (half the perceived volume) and 2.0 is +10 dB (double the perceived volume).
2016-04-02 11:08:00 +02:00
meew0
e8cc571d6a
Make the multiplier return the current volume
...
without doing any math to it, so we can have different ways to set the multiplier in logarithmic ways.
2016-04-02 11:03:28 +02:00
Nicholas Tay
f591542735
Working friends support with events and requests
2016-03-30 21:01:48 +11:00
abalabahaha
8e6427963b
Merge pull request #237 from nicholastay/patch-1
...
Fixes for bot accounts \o/
2016-03-28 01:13:24 -07:00
Nicholas Tay
77346e3415
Send guild_id on voice destroy for bot accounts to work
...
(thanks qeled for supplying this fix, as per in the node_discord-js discord chat channel :D)
2016-03-28 19:06:10 +11:00
Nicholas Tay
18dd59fe42
Fix bot detection on updateDetails
2016-03-28 19:04:44 +11:00
abalabahaha
74c06f7a69
Workaround for voice channel update member persistence
2016-03-20 00:32:17 -07:00
abalabahaha
99af4a7d66
Fixed bad wording
2016-03-20 00:05:19 -07:00
abalabahaha
28b7b9f5d6
Wrong variable name, logic fixes, forgot a !, allow neutral permission overwrite
2016-03-19 23:45:38 -07:00
abalabahaha
b069f818d9
Unoverlap allow when denying a permission overwrite
2016-03-19 22:54:49 -07:00
abalabahaha
95748f3721
Merge pull request #229 from brussell98/indev
...
Added ability to use updateDetails() with token
2016-03-19 22:44:05 -07:00
abalabahaha
3bbd4f46d2
Merge pull request #226 from petoem/indev
...
Add ability to pause and resume audio thats being played
2016-03-19 22:43:48 -07:00
Brandon Russell
93e3106404
Check if user or bot and require email for user
2016-03-20 00:19:29 -05:00
abalabahaha
703ac05400
User bot property
2016-03-19 22:11:11 -07:00
abalabahaha
afdb93b3d6
Let overwritePermissions keep existing permissions
2016-03-19 22:07:33 -07:00
abalabahaha
583906fe81
.find() isn't polyfilled apparently
2016-03-19 22:07:26 -07:00
Brandon Russell
72340845e5
Add email and password if non-token login
2016-03-19 23:14:28 -05:00
Brandon Russell
4386daf7a0
Added ability to use updateDetails() with token
2016-03-19 23:02:22 -05:00
Michael Petö
462adfbad3
Add ability to pause and resume audio thats being played
2016-03-19 21:54:25 +01:00
abalabahaha
204bdca555
Merge pull request #223 from aequasi/patch-1
...
Adding credit
2016-03-18 11:55:19 -07:00
Aaron Scherer
81549e737e
Adding credit
2016-03-18 11:48:46 -07:00
abalabahaha
86f2836828
Merge pull request #220 from qeled/indev
...
Implement voice encryption support 0.0
2016-03-18 07:03:28 -07:00
qeled
4d6cca72f4
Implement voice encryption support
2016-03-18 06:32:35 +03:00
abalabahaha
27a0361afc
Not everyone needs to set the volume
2016-03-15 22:09:16 -07:00
abalabahaha
8614d4b2a5
Less CPU on cache update
2016-03-15 22:04:52 -07:00
abalabahaha
f0dd0cabdf
6.1.0
2016-03-15 22:04:52 -07:00
abalabahaha
e525e3b722
Copy paste fail
2016-03-15 22:04:52 -07:00
abalabahaha
42bedbeee4
Attempt to fix cache crash
2016-03-15 22:04:44 -07:00
abalabahaha
930f276828
Aaron copied horrible code from elsewhere
2016-03-12 22:06:30 -08:00
abalabahaha
13055f67d2
Attempted to understand volume code and retry fixes
2016-03-12 21:53:34 -08:00
abalabahaha
5e64d96272
Attempted assorted fixes
2016-03-12 21:44:07 -08:00
abalabahaha
25f25f5506
Attempt to process volume option
2016-03-12 21:27:48 -08:00
abalabahaha
13e8a39f9f
Minor inconsistencies
2016-03-12 21:21:59 -08:00
abalabahaha
14fffb12af
Accept user IDs as channels
2016-03-12 21:11:21 -08:00
abalabahaha
ea80677a79
Attempt to fix startPM
2016-03-11 22:12:15 -08:00
abalabahaha
d2a9f15e82
Fixed options + message cache limit + server member count + leaving users
2016-03-10 22:16:05 -08:00
abalabahaha
ef679e87c4
Attempted better ffmpeg handling
2016-03-10 21:40:19 -08:00
abalabahaha
b5c200901b
Prepare for upcoming leave/deleteServer separation ( fix #198 )
2016-03-06 13:14:15 -08:00
abalabahaha
4e58de8cd6
Make FFMPEG error reject encoding
2016-03-06 13:04:23 -08:00
abalabahaha
dd6c158250
Use binary in sendFile ( fix #172 )
2016-03-06 10:55:32 -08:00
Khionu Terabite
b541cfa89a
Create CONTRIBUTING.md
2016-03-06 13:34:49 -05:00
abalabahaha
7ec859d5a1
Remove console.log from compiled version
2016-03-06 04:54:31 -08:00
abalabahaha
538df5f76b
memberMap on guild chunks, fire voice channel changes ( fix #177 )
2016-03-06 04:51:21 -08:00
abalabahaha
a8ee8e8759
Update docs_client.rst
2016-03-04 12:59:08 -08:00
abalabahaha
6889743d5e
Tried to fix #201
2016-03-02 17:40:28 -08:00
abalabahaha
df73f52454
Human-readable bot user status
2016-03-02 17:35:28 -08:00
abalabahaha
159602b359
createInvite forgot to Promise properly
2016-02-25 18:27:33 -08:00
abalabahaha
beb44b7bfa
large_threshold vs offline server owner vs ServerChannel.permissionsOf
2016-02-23 09:01:04 -08:00
abalabahaha
91a05be386
forceFetch callback when no fetch necessary
2016-02-20 22:25:53 -08:00
abalabahaha
0ec5d3e8d7
Empty array instead of undefined
2016-02-20 19:30:50 -08:00
abalabahaha
7b24127de5
ready fires after forceFetchUsers if option is true
2016-02-20 19:08:48 -08:00
abalabahaha
41924df875
Debug code lol
2016-02-20 18:45:26 -08:00
abalabahaha
47ecc934f1
Attempting forceFetchUser callback
2016-02-20 18:33:36 -08:00
abalabahaha
78b18de1e1
Random nonexistent object reference fixed
2016-02-19 00:02:08 -08:00
abalabahaha
5c9865fc3c
Small fixes
2016-02-18 20:49:03 -08:00
abalabahaha
e4641fe701
resolveChannel should take PM channel IDs
2016-02-17 08:24:11 -08:00
abalabahaha
fd34c935a2
Correct docs
...
mentions is an array, not a cache
2016-02-16 22:29:43 -08:00
abalabahaha
f49600af17
Use USER_UPDATE
2016-02-14 13:19:07 -08:00
hydrabolt
315ae22a7f
potential server_member_update bugfix?
2016-02-13 21:04:47 +00:00
Amish Shah
9a57e7ab03
Merge pull request #184 from aequasi/179
...
Adding volume wrapper
2016-02-13 18:23:43 +00:00
hydrabolt
7144ead048
docs 6.66%
2016-02-13 18:21:59 +00:00
hydrabolt
4e03c0b1a2
docs 5.59%
2016-02-13 15:53:01 +00:00
hydrabolt
bd187540d3
4.3% coverage
2016-02-13 15:11:27 +00:00
abalabahaha
e404361858
Un-meowwww
2016-02-12 19:59:41 -08:00
hydrabolt
54045de5f1
add member chunks
2016-02-12 22:07:56 +00:00
hydrabolt
f0c719cf71
see if user exists on presence before creating an entirely new one so username detection etc works
2016-02-12 21:43:05 +00:00
hydrabolt
60587c8d74
track new users from presence
2016-02-12 21:39:34 +00:00
hydrabolt
abde946864
added large_threshold as an option
2016-02-12 21:08:13 +00:00
Aaron Scherer
0571958033
Fixing conflicts
2016-02-12 13:08:03 -08:00
hydrabolt
5132c9ade4
added large_threshold
2016-02-12 21:03:27 +00:00
hydrabolt
42f053eb9f
Merge remote-tracking branch 'origin/master' into indev
2016-02-12 20:44:18 +00:00
calc84maniac
701c0ca9c4
Let updateDetails use data.email if possible (thanks @calc84maniac)
2016-02-11 10:34:21 -08:00
abalabahaha
9fc5a752f8
colorAsHex should return hex ( fixes #188 )
2016-02-11 10:30:06 -08:00
Aaron Scherer
3c64cfce4a
Adding volume wrapper
2016-02-10 09:53:05 -08:00
Amish Shah
ca873ac36e
Merge pull request #181 from aequasi/patch-2
...
Allow seeking for FFmpeg
2016-02-09 18:41:42 +00:00
Aaron Scherer
9ff798a8bc
Update docs_voiceconnection.rst
2016-02-09 09:42:37 -08:00
Aaron Scherer
b84af789c6
Update docs_voiceconnection.rst
2016-02-09 09:42:05 -08:00
Aaron Scherer
c7103f8930
Update AudioEncoder.js
2016-02-09 09:39:44 -08:00
Aaron Scherer
8607a2449c
Allow seeking for FFmpeg
2016-02-09 09:38:48 -08:00
meew0
c8acc17d8e
Fix usersWithRole parameters
2016-02-06 19:10:33 +01:00
abalabahaha
b32a40086e
Merge pull request #178 from SooYou/indev
...
fix resolveServer undefined when TextChannel
2016-02-06 09:27:08 -08:00
SooYou
fd5c981d83
fix resolveServer undefined when TextChannel
...
So far it has been the case that resolveServer has been returning
undefined in the case that the resource was a Message from a TextChannel.
This was the case because the conditional returned the value of member
"server" in the Message object. The Message object doesn't have a server
member though. The fix is to use the "channel" member of the Message
object and return its "server" member which was likely the original
intention considering the if statement.
2016-02-06 18:18:00 +01:00
Amish Shah
4b8f85d44a
Exposed Discord.Cache
2016-02-04 21:09:30 +00:00
abalabahaha
287c143c0e
Merge pull request #176 from enebe-nb/indev
...
Fix setUsername() crash and game status
2016-02-03 08:29:05 -08:00
Neto Becker
3283283b4d
fix game status not been updated when closing the game
2016-02-03 12:47:23 -02:00
Neto Becker
8d5949842c
fix setUsername()
2016-02-03 12:41:19 -02:00
abalabahaha
9173ded903
Minor patching
2016-02-02 05:59:55 -08:00
abalabahaha
b7c1b6ebe6
Simulate channel structure if user's voice channel was not found
2016-02-01 17:26:29 -08:00
meew0
c773ea4e49
Check before a channel is a voice channel before joining it
2016-02-01 21:34:32 +01:00
meew0
e66311bdf5
Use resolveChannel instead of resolveVoiceChannel for joinVoiceChannel and get rid of resolveVoiceChannel
2016-02-01 21:30:57 +01:00
abalabahaha
6f7bd987b8
Allow get/getAll to take a function only
2016-01-31 22:37:31 -08:00
abalabahaha
580f260933
Support for regex/function in get/getAll
2016-01-31 22:30:02 -08:00
abalabahaha
6772222955
ESLint fixups
2016-01-31 15:08:04 -08:00
abalabahaha
5e97d309bf
Bumpity some versions
2016-01-31 15:07:39 -08:00
abalabahaha
417fd32721
Link libs page so we don't commit every new lib
2016-01-31 11:20:11 -08:00
meew0
76a5bec944
6.0.0
2016-01-31 16:01:56 +01:00
meew0
3a9d8fb518
Rebuild for 6.0.0
2016-01-31 16:01:37 +01:00
meew0
7c0476a7a8
General VoiceConnection documentation
2016-01-31 00:07:53 +01:00
meew0
1ce2ce93c3
Document other methods
2016-01-31 00:07:53 +01:00
meew0
0e53b4fc44
Document playFile
2016-01-31 00:07:53 +01:00
meew0
5a5316dc66
Voice attribute documentation
2016-01-31 00:07:53 +01:00
abalabahaha
2732cbb402
Link to troubleshooting
2016-01-30 14:25:41 -08:00
abalabahaha
f554c88b97
Docs version bump and slight updates
2016-01-30 14:22:23 -08:00
abalabahaha
cd25848bdc
voiceStateUpdate stored per-server, some docs
2016-01-30 14:11:21 -08:00
abalabahaha
46807bf1c1
Fix unduplicated mentions
2016-01-30 13:16:18 -08:00
abalabahaha
89e3396af6
sendFile with non-image files ( fix #172 )
2016-01-30 12:48:53 -08:00
meew0
c1171e6973
Fix the regex in Resolve.resolveFile, fixes #171
2016-01-30 14:36:31 +01:00
meew0
3306067d7b
Add a newline at the end of msgbot
2016-01-30 14:28:12 +01:00
meew0
634a5bd737
Fix the webdists, this fixes #170 .
...
Particular problems and how they were resolved:
- The `fs-extra` module, used exclusively by TokenCacher, didn't have a browser version. I rewrote TokenCacher to not use fs-extra (see fdd4cfc7cc )
- TokenCacher wouldn't work in the browser anyway due to lack of a file system. I made a shim (`Util/TokenCacher-shim.js`) that implements all TokenCacher functionality as null implementations, this causes `login` to always make a request.
- Compressed packets couldn't be parsed because neither node's Buffers nor zlib were working correctly. Initially I tried to make a browser-only parser class that parses compressed `Blob` packets, but this didn't work out, so I just disabled compression by default.
2016-01-30 14:17:27 +01:00
meew0
151b98e0a2
Remove the fs-extra dependency from package.json
2016-01-30 12:10:02 +01:00
meew0
fdd4cfc7cc
Remove the TokenCacher fs-extra dependency, rewrite init code
2016-01-30 12:09:41 +01:00
meew0
358c40c355
Set the volume default to 1 as @hydrabolt intended, fixes #154
2016-01-30 10:42:13 +01:00
abalabahaha
7fb39b6dc0
Fixed isMentioned
2016-01-30 01:28:58 -08:00
abalabahaha
5d4cd1fc28
Fix addMemberToRoles/removeMemberFromRoles
2016-01-29 22:11:12 -08:00
abalabahaha
e3173d1561
In-order + duplicate mentions, cleanContent in Messages
2016-01-29 22:05:01 -08:00
abalabahaha
8b392f359a
add channel to voiceStateUpdate, reorder args
2016-01-29 21:45:49 -08:00
abalabahaha
dad570a4ec
sendFile via URL
2016-01-29 21:45:03 -08:00
abalabahaha
35c800cc8f
Fixed line of code (meew0) causing logins with new creds to fail
2016-01-29 21:01:35 -08:00
abalabahaha
b052d59e46
renamed voiceUserStateUpdate to voiceStateUpdate
2016-01-29 21:00:23 -08:00
abalabahaha
6af71bf639
The beginnings of the voiceUserStateChange event
2016-01-29 17:46:46 -08:00
abalabahaha
8726b23730
Resolve role IDs
2016-01-29 17:14:40 -08:00
abalabahaha
ee2172c1d5
memberHasRole, membersWithRole
2016-01-29 17:02:40 -08:00
abalabahaha
2c8747995a
Merge addRoleToMember(s), merge removeRoleFromMember(s)
2016-01-29 14:55:07 -08:00
abalabahaha
be083b717e
Merge pull request #168 from hydrabolt/issue/144
...
Allow moving users to voice channels
2016-01-29 14:04:05 -08:00
meew0
fe9911acc2
Don't require a server for moveMember
2016-01-29 23:03:12 +01:00
meew0
9fab8ed381
Documentation
2016-01-29 22:48:52 +01:00
meew0
c93ed88daf
Rebuild for voice moving
2016-01-29 22:46:42 +01:00
meew0
9cfcb3452b
Remove debug calls
2016-01-29 22:44:36 +01:00
meew0
59060b27e6
Handle resolveChannel correctly because it returns a promise
2016-01-29 22:44:29 +01:00
meew0
4f65378a57
Fix installation instructions on Linux
...
@hydrabolt what were you thinking?!
2016-01-25 18:19:40 +01:00
abalabahaha
799039588b
A few docs updates
2016-01-25 00:49:45 -08:00
abalabahaha
79039f08a1
Fixing server updates
2016-01-25 00:34:16 -08:00
abalabahaha
4e9a11d7a9
sendFile typo
2016-01-24 18:31:51 -08:00
abalabahaha
2c17eaed02
Fix login, clone objects when firing x-Updated events
2016-01-24 16:41:35 -08:00
abalabahaha
2c6cbb6675
Merge remote-tracking branch 'ntay/sendfile-original-name' into indev
2016-01-24 16:15:28 -08:00
Nicholas Tay
3b3f5d831a
More string checking, and stream filename checking (fs streams)
2016-01-25 11:07:06 +11:00
abalabahaha
44c1fc5b29
Fixed getChannelLogs before/after, added server unavailable checks in READY
2016-01-24 15:41:23 -08:00
Nicholas Tay
3a8f1ddbf9
Optional sendFile name callback and remove extra logic
2016-01-25 10:35:44 +11:00
meew0
042d7d1dbe
Add voice channel moving, not quite working yet
2016-01-24 23:22:24 +01:00
meew0
c5174b4d93
Rebuild lib
2016-01-24 14:38:27 +01:00
meew0
2d68849027
loginWithToken documentation
2016-01-24 14:38:19 +01:00
meew0
3caf1f74cc
Allow tokens to be used for login, fixes #159
2016-01-24 14:33:39 +01:00
Nicholas Tay
47f35a942c
Make sendFile() use original file name by default
2016-01-24 21:23:09 +11:00
abalabahaha
76ab439033
Possibly fix messageUpdated
2016-01-20 22:45:30 -08:00
abalabahaha
b49870f12f
Build stuff
2016-01-20 22:27:16 -08:00
Jacob
dba7a1d06a
fixed volume option and set default to 25% to avoid hearing loss
2016-01-20 22:26:26 -08:00
abalabahaha
68435f0619
Handle unavailable guild, fix default getChannelLogs limit
2016-01-18 17:46:15 -08:00
abalabahaha
94f067cc51
Check if parts of server data exist
2016-01-16 17:09:25 -08:00
meew0
345d0da72b
Merge branch 'CKing-patch-3' into indev
2016-01-16 16:00:05 +01:00
Ch. König
8571723ec1
Make destroy return a promise
2016-01-16 15:22:01 +01:00
meew0
6f31130726
Rebuild lib after @enebe-nb's changes
2016-01-15 15:15:25 +01:00
Neto Becker
b3d5197013
removed ES6 function calls
2016-01-15 15:11:21 +01:00
abalabahaha
0164d3e7b5
Attempted merge of userUpdated and presence, along with before/after arguments
2016-01-13 23:35:37 -08:00
abalabahaha
fc58a0d5cf
Attempting getInvites
2016-01-13 20:32:07 -08:00
abalabahaha
cffdb5f5f6
Improvement upon addMemberToRoles and build
2016-01-12 14:59:45 -08:00
Chris Talman
51a8feb562
Client.addMemberToRoles is now functional and prevents duplicate roles
2016-01-12 14:52:37 -08:00
abalabahaha
8a8ba51c2b
Bad idle logic error
2016-01-06 21:39:05 -08:00
abalabahaha
c7b632d854
Merge pull request #131 from meew0/fixes
...
Various fixes
2016-01-05 16:29:10 -08:00
meew0
6a09ca76df
Builds for the latest changes
2016-01-05 21:29:21 +01:00
meew0
f51fecf726
Fix parameter callback checks not setting default arguments
...
The `typeof X === "function"` checks to check whether the callback replaces any default arguments didn't set the default arguments afterwards, so internal functions would sometimes get called with the wrong attributes. This is now fixed.
2016-01-05 21:27:58 +01:00
meew0
fee5cade9e
Client wrapper for updateServer
2016-01-05 21:23:00 +01:00
meew0
3e1568f536
Implement updateServer, fixes #123
2016-01-05 21:22:45 +01:00
meew0
3e2124e0bd
Don't acknowledge messages, fixes #130
2016-01-05 20:35:18 +01:00
meew0
4184e51ec3
Compare game objects before comparing their names
...
See also http://git.io/vuR7p
2016-01-05 20:33:55 +01:00
abalabahaha
404829a19d
Change gameID (Deprecated) to game
2016-01-04 20:46:28 -08:00
abalabahaha
69bffc6279
Finish renaming setChannelTopic
2016-01-04 20:37:15 -08:00
abalabahaha
2a00064646
Validate invite if possible
2016-01-03 11:14:17 -08:00
abalabahaha
718f0b9543
Rebuilt lib for dev and getInvite
2016-01-02 18:24:55 -08:00
Amish Shah
9c8e6eed24
5.3.2 web dists
2016-01-01 18:40:57 +00:00
Amish Shah
57c086dc5f
5.3.2
2016-01-01 18:40:04 +00:00
Amish Shah
2000b62b36
fixed references to update items
2016-01-01 18:27:08 +00:00
Amish Shah
21be3d3c77
Merge pull request #122 from meew0/cb-bugfixes
...
Callback bugfixes
2015-12-31 22:14:06 +00:00
meew0
7860828a5d
Rebuild
2015-12-31 22:57:33 +01:00
meew0
d2473044e5
Fix errant parentheses in getBans, fixes #111
2015-12-31 20:46:39 +01:00
meew0
9325e1fbb5
Fix parentheses typo in setPlayingGame args list
2015-12-31 20:29:15 +01:00
meew0
ea3ac96f13
Fix some very minor inconsistencies
2015-12-31 20:23:30 +01:00
meew0
9cfd287020
Replace awaitResponse on-the-fly callback with dataCallback
...
I overlooked it previously.
2015-12-31 20:21:59 +01:00
meew0
385da190ba
Give the setPlayingGame callback a default value
...
to be consistent with other functions.
2015-12-31 20:21:03 +01:00
meew0
f018ccebed
Add a callback to setPlayingGame
2015-12-31 20:20:36 +01:00
meew0
2c565ebfaf
Call the callback in destroy, its callback was previously unused
2015-12-31 20:20:17 +01:00
meew0
a0ffbdb208
Replace on-the-fly callbacks with dataCallback everywhere
...
Also fixes various code-style and comment issues I've noticed.
2015-12-31 20:19:25 +01:00
meew0
d668ec8632
Use dataCallback for banMember, unbanMember and kickMember.
...
Fixes #112 , #113 and #114 .
2015-12-31 20:09:25 +01:00
meew0
ba93a6e224
Rename constructErrorCallback to errorCallback
...
to be more consistent with dataCallback.
2015-12-31 19:09:02 +01:00
meew0
f50c910af3
Create a utility function to wrap those on-the-fly callbacks
2015-12-31 19:08:28 +01:00
meew0
a0995c6fe7
Add a short comment to constructErrorCallback
2015-12-31 18:56:26 +01:00
meew0
415260d028
Rename "errCB" to "constructErrorCallback" to improve readability
2015-12-31 18:54:44 +01:00
Amish Shah
45c936e1ad
Merge pull request #109 from meew0/master
...
Add opus sanity check
2015-12-29 11:08:32 +00:00
meew0
0921484ef6
Add opus sanity check
2015-12-27 17:25:04 +01:00
Amish Shah
b927b223bb
5.3.1
2015-12-26 18:35:08 +00:00
Amish Shah
8d0fc8e0a6
Resilience to abusers of the API
...
For some reason there's a way to join text channels via the Discord API but not the Discord Client, so this commit
prevents the Client from crashing by checking to see if the channels are voice channels.
2015-12-26 18:32:46 +00:00
Amish Shah
f9f7a568fc
5.3.0 web dists
2015-12-26 18:21:04 +00:00
Amish Shah
8e16abee96
Fixed server.detailsOf(user)
...
Now points to correct function
2015-12-26 18:16:42 +00:00
Amish Shah
3b7c5aa96a
Rename voiceconnection.speaking to voiceconnection.memberd
2015-12-26 18:05:31 +00:00
Amish Shah
0113202c2f
Fixed voice_connection.stopPlaying
...
Now unpipes before destroying
2015-12-26 17:52:20 +00:00
Amish Shah
a6a9f08565
Added user.voiceChannel to see where a user is speaking
...
Returns null if they aren't speaking, otherwise this is a VoiceChannel object.
2015-12-26 17:21:16 +00:00
Amish Shah
9d97dfc95a
Voice States in READY packet now processed
...
Now there is full watching and coverage of voice states
2015-12-26 15:54:45 +00:00
Amish Shah
9c0e20947c
Added websocket voice state watching
...
Now emits voiceJoin(user, voice_channel) or voiceLeave(user, voice_channel) and adds/removes from voice_channel.speaking when a user joins or leaves a voice channel.
2015-12-26 15:38:53 +00:00
Amish Shah
7b2f4e3357
Added Cache
2015-12-26 15:12:58 +00:00
Amish Shah
7de44fb9ac
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2015-12-26 15:10:40 +00:00
abalabahaha
830cc64828
Fixed #105 and built
2015-12-26 15:10:32 +00:00
abalabahaha
beb91913bb
Suppor string game updates and better setStatus logic
2015-12-26 15:10:32 +00:00
Amish Shah
830ba058d9
Merge pull request #108 from NekoWasHere/master
...
Add more APIs to the README
2015-12-26 14:59:05 +00:00
Neko
e99dccc828
Update README.md
2015-12-25 15:26:10 -08:00
abalabahaha
79990df5b2
Fixed #105 and built
2015-12-24 02:25:20 -08:00
abalabahaha
8c39ddc48d
Suppor string game updates and better setStatus logic
2015-12-24 02:07:05 -08:00
Amish Shah
7819dcb3d1
browserified 5.2.0
2015-12-23 22:58:25 +00:00
Amish Shah
2253560631
fix travis bugs and mentions
2015-12-23 22:36:31 +00:00
Amish Shah
7d9b8a9b5b
Merge pull request #104 from meew0/master
...
Add method to play back the output from an arbitrary ffmpeg command
2015-12-23 22:32:15 +00:00
meew0
14682ba2bf
Lib output for arbitrary ffmpeg playback
2015-12-23 23:22:18 +01:00
meew0
d09c26c7c1
Add method to play back the output from an arbitrary ffmpeg cmd
2015-12-23 23:20:19 +01:00
Amish Shah
4d6adfd289
voice fixes
2015-12-23 21:10:49 +00:00
Amish Shah
0e6ff52c61
PM bug fix
2015-12-22 23:36:10 -08:00
Amish Shah
d93990822e
Emergency bug fix
...
Stopped the client from assuming all errors were 429 errors
2015-12-22 23:36:01 -08:00
Amish Shah
d8ac7e97a1
Removed console.log
2015-12-19 21:24:02 +00:00
Amish Shah
90045db92d
fixed mentions even though they will be changed in the future... why
2015-12-19 21:22:06 +00:00
Amish Shah
941fd2fe98
Minor changes
2015-12-17 18:31:52 +00:00
Amish Shah
b82c318e96
Added option to count rate limits as errors
...
`options.rate_limit_as_error`
2015-12-16 18:51:32 +00:00
Amish Shah
470fbbb6d6
Fixed rate limiting
2015-12-16 18:46:03 +00:00
Amish Shah
da990f544a
Token Cache bug fix and Rate Limiting
2015-12-16 18:32:01 +00:00
Amish Shah
4d47a05a81
spelling
2015-12-16 16:32:00 +00:00
abalabahaha
3614b78973
Fix #97 (used new feature to detect old versions)
2015-12-14 18:10:30 -08:00
Amish Shah
8f8504810a
Privacy improvement over token caching
...
e-mail is no longer visible in caches
2015-12-14 18:28:27 +00:00
Amish Shah
8f5722d242
Token Caching now works
2015-12-14 18:06:03 +00:00
Amish Shah
a122f0994e
Stuff
2015-12-13 20:10:33 +00:00
abalabahaha
ecc604e6ac
Fixed getChannelLogs bug (template string variable without ${})
2015-12-13 02:00:01 -08:00
Amish Shah
c9c1b19968
Fixed message.isMentioned
2015-12-12 21:37:34 +00:00
Amish Shah
c2cf1badfd
Fixed multiple avconvs/ffmpeg processes still staying alive
2015-12-12 21:04:30 +00:00
Amish Shah
4d43867206
Fixed multiple ffmpeg/avconv processes being alive
2015-12-12 18:04:48 +00:00
Amish Shah
d66b765933
added volume control
2015-12-12 17:52:25 +00:00
Amish Shah
df368168ee
travis testing for indev
2015-12-12 17:34:21 +00:00
Amish Shah
60747afda4
Rebuilt cache changes
2015-12-12 17:32:49 +00:00
Amish Shah
8eb4c47f79
Client now emits unknown and hidden some properties of Cache
...
Cache.discrim and Cache.discrimCache are now hidden from for..in
2015-12-12 17:32:20 +00:00
Amish Shah
cb58bc5414
Build changes & minor changes to Cache
2015-12-12 17:31:28 +00:00
abalabahaha
cd4a70cfb2
Fixed the fix and built
2015-12-11 21:37:59 -08:00
abalabahaha
6ed6932e24
Someone forgot to update some code
2015-12-11 20:00:49 -08:00
abalabahaha
e020287307
Applied change to second function
2015-12-11 20:00:32 -08:00
Amish Shah
e315fdafc6
Merge branch indev
2015-12-11 19:48:48 +00:00
qeled
f280349f0c
Fix sequence and timestamp in VoiceConnection
2015-12-11 19:48:32 +00:00
qeled
d8af1a49ae
Disable ffmpeg logging and ignore stderr
2015-12-11 19:48:32 +00:00
Simon Schick
506b425ca0
Simplified code segment, removed pointless concat call.
2015-12-11 19:48:31 +00:00
Simon Schick
1a93f8638e
Forgot to expose userAgent is base client
2015-12-11 19:48:31 +00:00
Simon Schick
002d8ce0af
Moved all http request related code into method to allow override of useragent, removed superagent end detour
2015-12-11 19:48:31 +00:00
Guichaguri
78eeee084f
Added user-agent with discord.js information
...
Requested by the Discord Team
2015-12-11 19:48:31 +00:00
Amish Shah
72688e1a6a
Merge pull request #94 from qeled/indev
...
Voice fixes
2015-12-11 17:34:08 +00:00
qeled
a411968843
Fix sequence and timestamp in VoiceConnection
2015-12-11 20:22:51 +03:00
qeled
8e060182a7
Disable ffmpeg logging and ignore stderr
2015-12-11 20:17:01 +03:00
abalabahaha
925280c3e3
Merge pull request #92 from SimonSchick/patch-5
...
Simplified code segment, removed pointless concat call.
2015-12-10 16:02:43 -08:00
Simon Schick
c9faa15ac7
Simplified code segment, removed pointless concat call.
2015-12-11 00:55:34 +01:00
Simon Schick
4342bf39d4
Forgot to expose userAgent is base client
2015-12-11 00:34:36 +01:00
Simon Schick
c5ccfab658
Moved all http request related code into method to allow override of useragent, removed superagent end detour
2015-12-11 00:15:31 +01:00
Amish Shah
4d0be3fc4c
Merge pull request #90 from qeled/indev-speed
...
Improve Cache class performance
2015-12-10 17:38:27 +00:00
Guichaguri
6afff4e087
Added user-agent with discord.js information
...
Requested by the Discord Team
2015-12-10 17:14:37 +00:00
qeled
a369ef2788
Improve Cache class performance
...
Use hashmap instead of array for caching by discriminator
Optimize `get` method by using `for` loop instead of `forEach`
and returning hashmap cache for queries by discriminator
2015-12-10 02:26:30 +03:00
Amish Shah
a789b1f396
reply no longer mentions in PM
...
for much more fluent conversations in PM
2015-12-09 18:56:20 +00:00
Amish Shah
d9b9d1d0a3
build changes and fix presence bug
2015-12-09 18:26:25 +00:00
Amish Shah
ffe2359926
Merge pull request #85 from SimonSchick/patch-2
...
Simplification
2015-12-08 21:18:15 +00:00
Amish Shah
1573735846
Merge pull request #86 from SimonSchick/patch-4
...
Do not use process.exit, throw instead
2015-12-08 21:18:02 +00:00
Simon Schick
bdfa66c6d0
Update entrypoint.js
2015-12-08 22:17:09 +01:00
Simon Schick
935d7c15a4
Do not use process.exit, throw instead
2015-12-08 22:15:28 +01:00
Simon Schick
f9b3369187
Simplification
2015-12-08 17:49:35 +01:00
Amish Shah
6cff34ae3c
try again
2015-12-06 21:02:24 +00:00
Amish Shah
ff7adf1cf7
basic speed improvement - eats more memory
2015-12-06 20:53:23 +00:00
Amish Shah
b59f2940e3
finalised revive
2015-12-06 20:19:30 +00:00
Amish Shah
d504406cfc
partially working autorevive
2015-12-06 19:30:32 +00:00
Amish Shah
41efef750f
Clarified options and added autoRevive option
...
Useful when investigating potential option parameters
2015-12-06 19:11:59 +00:00
Amish Shah
706682af55
fixed voice intervals not dying, bot will now fully die on close
2015-12-06 19:07:34 +00:00
Amish Shah
e072c58460
added interval fixes - bots die gracefully now
2015-12-06 19:02:10 +00:00
abalabahaha
4486b623f5
Build lib and update dependencies
2015-12-06 00:53:35 -08:00
abalabahaha
d3e0f46ff0
Merge remote-tracking branch 'upstream/indev' into indev
2015-12-05 16:57:13 -08:00
abalabahaha
2157e0b682
Saddening typo
2015-12-05 16:56:53 -08:00
Amish Shah
e16211c4fb
Added stereo support
2015-12-05 21:19:38 +00:00
Amish Shah
d122184b6b
voice fixes
2015-12-05 20:57:23 +00:00
abalabahaha
de19475ae0
Attempted add/remove from roles
2015-12-05 12:13:24 -08:00
abalabahaha
d2147304c8
Compiled lib
2015-12-05 11:32:33 -08:00
abalabahaha
50646503cd
Merge remote-tracking branch 'upstream/indev' into indev
2015-12-05 10:31:29 -08:00
abalabahaha
ccc794229e
setChannelPosition
2015-12-05 10:29:12 -08:00
Amish Shah
1d8905d25a
Finalised server documentation
...
I think
2015-12-05 18:17:01 +00:00
Amish Shah
d7d170cab7
Finished server docs update
2015-12-05 18:12:05 +00:00
abalabahaha
a89938ed01
setChannelTopic, not setTopic
2015-12-05 10:04:00 -08:00
abalabahaha
70b44a6f69
Merge remote-tracking branch 'upstream/indev' into indev
2015-12-05 10:03:34 -08:00
abalabahaha
e92e087aeb
Fixed stupid weird code
2015-12-05 09:59:25 -08:00
Amish Shah
e13ab5791c
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2015-12-05 17:48:00 +00:00
Amish Shah
35cf5f4709
Updated server docs
2015-12-05 17:47:32 +00:00
abalabahaha
559ed5f76f
More shortcuts
2015-12-05 09:43:11 -08:00
abalabahaha
ae71087bcc
Merge remote-tracking branch 'upstream/indev' into indev
2015-12-05 09:26:09 -08:00
abalabahaha
d624f82ba3
ESLint as dev dep
2015-12-05 09:25:56 -08:00
Amish Shah
eb500ecd24
Added startTyping stopTyping and createChannel
2015-12-05 17:21:32 +00:00
Amish Shah
10442e5634
Added getLogs
2015-12-05 17:12:15 +00:00
Amish Shah
212c672c2f
Added sendFile and server.generalChannel
2015-12-05 17:10:48 +00:00
Amish Shah
05409ccc21
Finished server shortcuts
...
I think
2015-12-05 17:08:56 +00:00
Amish Shah
780565ff68
Added shortcuts to user and server classes
...
User.addTo User.removeFrom Server.leave/delete Server.createInvite Server.createRole
2015-12-05 17:03:05 +00:00
Amish Shah
5a971ba097
Added role shortcuts and to user also
2015-12-05 16:57:58 +00:00
Amish Shah
f95822dcb7
Added message.edit, textchannel.send, textchannel.sendTTS and pmchannel.send, pmchannel.sendTTS
2015-12-05 16:48:09 +00:00
Amish Shah
93db5efe38
Updated README for help with contributing
2015-12-05 16:38:49 +00:00
Amish Shah
b1b94ccbd0
Updated test script to test more things
2015-12-05 13:10:36 +00:00
Amish Shah
2b3418faf4
built serverCreate changes
2015-12-05 12:03:55 +00:00
Amish Shah
5201861190
Merge pull request #79 from CKing/patch-2
...
Fix server being null on serverCreated event
2015-12-05 12:00:40 +00:00
Ch. König
01a640feec
Fixes server being null on serverCreated event
2015-12-05 12:54:16 +01:00
Amish Shah
5b1c83b05e
Merge pull request #77 from meew0/master
...
Add hard check that exits node if the node version is less than 0.12.7.
2015-12-04 23:52:03 +00:00
meew0
af70a34a66
Small fixes to version check
2015-12-05 00:41:56 +01:00
meew0
190075d070
Add node version check
2015-12-05 00:39:41 +01:00
Amish Shah
4f2e2a115c
v5.1.0 web dists
2015-12-04 21:09:26 +00:00
Amish Shah
e01b4eb114
v5.1.0 finalised bug fixes
2015-12-04 21:07:15 +00:00
Amish Shah
c5e41544a2
trying to fix travis build
2015-12-04 20:52:35 +00:00
Amish Shah
5cb09fef47
Basic test script setup
2015-12-04 20:50:25 +00:00
Amish Shah
455f02fd07
deleted old files
2015-12-04 20:31:30 +00:00
Amish Shah
ac2398e47c
started working on bug fixes and test scripts
2015-12-04 20:30:11 +00:00
abalabahaha
fdf1107404
updated docs to reflect changes
2015-11-29 11:56:47 -08:00
abalabahaha
6564c27faf
Folder turned necessary after Discord debate
2015-11-28 21:24:49 -08:00
abalabahaha
3c0687ac95
Merge pull request #75 from SimonSchick/resolvererrors
...
Resolvererrors
2015-11-28 16:40:25 -08:00
abalabahaha
558c01f4da
Merge pull request #74 from SimonSchick/patch-1
...
Docs for isPrivate
2015-11-28 16:39:01 -08:00
abalabahaha
0141d6c0ad
Merge pull request #73 from SimonSchick/streamerrorfix
...
Prevent error when trying to close stream by assuming all streams hav…
2015-11-28 15:33:34 -08:00
Simon Schick
6934068c7f
Removed redudant catch/throw operations as the error message is now actually useful
2015-11-28 23:03:15 +01:00
Simon Schick
4735c85e1b
Cleaned up file control structures, no more else if chains when you can return right away, also more describtive errors
2015-11-28 22:59:35 +01:00
Simon Schick
92da8d9e48
Docs for isPrivate
2015-11-28 22:37:08 +01:00
Simon Schick
687970a3ec
Prevent error when trying to close stream by assuming all streams have end/destroy methods
2015-11-28 22:19:17 +01:00
abalabahaha
0d45d8bfca
Merge pull request #72 from meew0/patch-2
...
Add TODO.md to npmignore
2015-11-28 12:35:25 -08:00
meew0
73549cc174
Add TODO.md to npmignore
2015-11-28 21:14:03 +01:00
abalabahaha
44b6233a8d
Travis?
2015-11-28 11:40:28 -08:00
abalabahaha
eaf30cc80c
Removed unnecessary folder
...
If you're cloning from the repo, use "grunt --dev" to generate it
2015-11-28 10:58:56 -08:00
abalabahaha
0d36abd6a3
Merge pull request #69 from SimonSchick/importexport
...
Use import/export since we are using babel, removed unused imports
2015-11-28 10:53:36 -08:00
Simon Schick
4c30890626
Fixed accidental prototype duplicate
2015-11-28 18:56:13 +01:00
Simon Schick
faa744b1e3
Use import/export since we are using babel, removed unused imports
2015-11-28 17:57:22 +01:00
abalabahaha
47b6f6cadd
Merge pull request #68 from SimonSchick/streamfix
...
Potential fix for streams not terminating
2015-11-27 10:52:12 -08:00
Simon Schick
df7590c105
Potential fix for streams not terminating
2015-11-27 19:37:03 +01:00
abalabahaha
0d42e8475d
Merge pull request #65 from SimonSchick/InternalClient-cleanup
...
make use of qs instead of manually building querystring
2015-11-27 10:31:06 -08:00
Simon Schick
87dbfcd7ed
make use of qs instead of manually building querystring
...
promise simplification and optimisation
use Array.map instead of forEach for mapping
added missing rethrows
emit error events in typing
removed unusued EventEmitter import
no braces for single arg arrow function
added missing semicolons
2015-11-24 21:58:28 +01:00
Amish Shah
9a6e5f5117
Merge pull request #62 from SimonSchick/master
...
Cleaned up Client.js and a bit of InternalClient.js
2015-11-24 16:39:34 +00:00
Simon Schick
fd54dc4f1f
Fixed stack overflow in removeUserFromRole, removed redudant argument grouping, removed redudant error callback wrap
2015-11-24 03:27:56 +01:00
Simon Schick
0b1a165139
Prevent error swallowing
2015-11-24 03:21:56 +01:00
Simon Schick
db5b333085
Forgot some return statements
2015-11-24 03:10:06 +01:00
Simon Schick
bcbcc1e95d
Slightly reduced promise bloat
2015-11-24 02:59:26 +01:00
Simon Schick
c801dcff2b
fixed rejecting promise invoking callbacks
...
reduces unneeded promise wrap
fixed cases where the first argument is callback was set despite success
added missing returns in awaitResponse
made defaults arrow functions, and commented out their defaults to prevent unsused vars
added missing returns for status functions
2015-11-24 02:48:05 +01:00
abalabahaha
bd2b98c4dc
Removed unnecessary file
2015-11-22 20:27:07 -08:00
abalabahaha
8cb912090f
Don't overwrite permissions in updateRole if they aren't passed
2015-11-22 20:25:52 -08:00
abalabahaha
014d78638e
messageDeleted passes channel
2015-11-22 17:49:23 -08:00
abalabahaha
c9497a0f75
Emit -ed and fixed presence vs. userUpdated check
2015-11-22 17:15:49 -08:00
Amish Shah
213379e669
Fixed compiled version
...
Downgraded babel until a working solution found
2015-11-22 17:13:52 +00:00
Amish Shah
e5ad0e23aa
Rebuilt internal client
2015-11-22 15:34:18 +00:00
Amish Shah
41cd3f0ce1
Fixed bug where banning would not work
2015-11-22 15:32:14 +00:00
Amish Shah
7af5445b93
Added the loose plugin for better support
2015-11-22 15:20:30 +00:00
Amish Shah
b22995f254
Built src again using the correct preset
2015-11-22 15:12:39 +00:00
Amish Shah
68b60c5464
rebuilt files
2015-11-22 15:01:42 +00:00
hydrabolt
cf33df18cf
Simplified awaitResponse
2015-11-21 21:25:28 +00:00
hydrabolt
d916e5719b
Fixed awaiting
2015-11-21 20:59:33 +00:00
hydrabolt
ddfed4da6c
Added awaiting internally
2015-11-21 20:50:58 +00:00
hydrabolt
20439172c1
example analysis bot
2015-11-21 20:22:04 +00:00
hydrabolt
00d4d154fb
Fixed migration error
2015-11-21 18:41:25 +00:00
hydrabolt
434116244f
Merge branch 'master' of https://github.com/hydrabolt/discord.js
2015-11-21 18:35:57 +00:00
hydrabolt
4ba90f36fe
Added cache.random() and node engine to package.json
2015-11-21 18:35:51 +00:00
abalabahaha
bbe3ae5238
Update README.md
2015-11-21 09:09:22 -08:00
hydrabolt
1042dfbcfe
Updated README
2015-11-21 16:19:18 +00:00