Commit graph

746 commits

Author SHA1 Message Date
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