Commit graph

746 commits

Author SHA1 Message Date
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
ba8dd3467a Switch config back to camelCase 2016-09-27 18:42:32 -04:00
Amish Shah
045153584a redo the client user presence stuff 2016-09-27 17:57:47 +01:00
Schuyler Cebulskie
d240fe4182 Improve prepend/append descriptions 2016-09-26 23:21:44 -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
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
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
Amish Shah
f1cb39a319 Expose Presence and Game structures 2016-09-25 20:17:35 +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
14b8360453 fix doc issue with role 2016-09-24 19:47:50 +01:00
Schuyler Cebulskie
f1bfd55233 Fix Guild.createChannel example 2016-09-24 02:21:06 -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
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
718f61a732 Fix various Guild properties getting unset 2016-09-19 19:36:14 -04:00
Schuyler Cebulskie
9ad4e27ce5 Add note about bot accounts to bulkDelete 2016-09-19 18:12:21 -04:00
Schuyler Cebulskie
46d7dedc85 Add Message.editCode 2016-09-19 15:14:51 -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
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
7d8667694d Fix massive timeout/interval memory leaks 2016-09-19 03:49:42 -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
6c6da43da3 Fix ban/unban with IDs 2016-09-18 23:07:30 -04: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
69f947dfcb Fix #701 2016-09-14 16:24:18 +01: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
0bd00b12b7 Add Invite.url and toString 2016-09-12 21:07:05 -04:00
Schuyler Cebulskie
5464ee7e64 Clean up MessageOptions JSDoc 2016-09-12 16:23:15 -04:00
Schuyler Cebulskie
5dd25ac1f1 Rename User typing methods 2016-09-12 13:08:11 -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
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
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
Schuyler Cebulskie
a52beaa78d Improve GuildMember.permissionsIn failure 2016-09-11 11:08:54 -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
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
48f84c6178 Fix nicknames not changing 2016-09-10 21:39:09 +01:00
Schuyler Cebulskie
3e39861534 Fix #677 2016-09-10 14:22:09 -04:00
Schuyler Cebulskie
537b372b42 Fix another ESLint failure 2016-09-10 12:46:22 -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
c6aa16277a Add TextChannel.members 2016-09-10 17:06:10 +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
e44853ee6d Fix weird bot bug #612 2016-09-09 16:41:57 +01:00
Amish Shah
dbaaa8dc93 Fix null game objects being defaulted to current game - fixes #666 2016-09-09 16:28:40 +01: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
4be7a1bfd1 My ESLint is broken 2016-09-08 22:30:27 -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
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
57acd4f41a Add GuildMember.permissions/hasPermission 2016-09-08 02:29:51 -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
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
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
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
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
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
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
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
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
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
89145b121d add info to Guild 2016-09-04 12:15:39 +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
Amish Shah
fced6983d9 GuildMember.roles is now a collection instead of an array 2016-09-03 22:56:33 +01:00
Amish Shah
7ff2568cfc Fix collectors and make guild sync add previously unknown members 2016-09-03 21:21:15 +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
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
d97ce2e181 Remove all string object references (#586) 2016-09-03 16:58:28 +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
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
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
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
b18aaa8711 Fix channel permission overwrites not being accounted for (#574) 2016-08-31 13:41:13 +01:00
Schuyler Cebulskie
dbda589088 Massively improve performance of message caching (#573) 2016-08-31 10:05:15 +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
Hyper-Coder
4f130a1a58 Fixed sendFile (#565)
https://images.typicalbot.com/i/57c4dcc5d74b7.png
2016-08-30 09:43:03 +01: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
Manuel Kraus
d9ae732bfd Add sendFile function (#562)
* sendFile

* Add default value to filename

* eslint

* (╯°□°)╯︵ ┻━┻
2016-08-29 19:01:05 +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
fe58105d04 Fix memberCount inaccuracy 2016-08-29 12:44:29 +01: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
309bc5da1f document guildMemberAdd 2016-08-28 18:12:52 +01:00
Amish Shah
ae862c38ff Remove guild.kick for consistency 2016-08-28 17:40:45 +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
Amish Shah
9ea9623de0 Add Permission Overwrites deletion 2016-08-27 19:40:14 +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
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
e5057a5b6a Add iconURL/avatarURL and fix object.values reference 2016-08-26 19:00:55 +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
Schuyler Cebulskie
0a005cbd16 Fix other .equals(null) (#541) 2016-08-26 00:14:19 +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
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
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
8683f45816 errory voice 2016-08-24 21:38:52 +01:00
Amish Shah
48444a5444 Fix voice channel members 2016-08-23 22:34:51 +01:00
Amish Shah
f9a553a7f0 Documentation 2016-08-23 21:16:52 +01:00
Amish Shah
dfbe44143a merge 2016-08-23 17:12:37 +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
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
1deefbd8cd change maps to Collections 2016-08-23 00:17:44 +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
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
89569d9249 fix docs yet again 2016-08-22 18:54:33 +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
65350348a8 Document all the events 2016-08-20 00:15:09 +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
ed818d6e7f Remove GuildDataStore and move towards storing data in Maps 2016-08-19 19:58:37 +01:00
Amish Shah
24df1bc621 test private methods 2016-08-19 00:17:14 +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
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
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
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
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
4fff20d66e update some docs 2016-08-16 23:22:52 +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
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
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
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
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
hydrabolt
ebfc2169d5 Added ClientUser modification support 2016-05-01 21:12:42 +01:00
hydrabolt
f95c588d87 Added Guild Deletion 2016-05-01 14:51:46 +01:00
hydrabolt
90cf787759 I think I got ChannelUpdate working?? 2016-04-30 18:22:09 +01:00
hydrabolt
2341c83638 Added channel.delete() 2016-04-27 16:25:57 +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
hydrabolt
c42e303b7b Add Message Deletion via message.delete() 2016-04-21 18:50:46 +01:00
hydrabolt
f3e1760538 add channel.sendMessage and channel.sendTTSMessage 2016-04-21 17:42:52 +01: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
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
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
4de1f4ce99 Created Role class and permission evaluation within Roles 2016-04-17 15:03:23 +01: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
9956e43c8e initial 2016-04-16 22:58:49 +01:00