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
973dbe8266
Add more @readonly and clean up some stuff
2016-09-27 20:07:33 -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
Schuyler Cebulskie
d240fe4182
Improve prepend/append descriptions
2016-09-26 23:21:44 -04:00
Schuyler Cebulskie
9ad4e27ce5
Add note about bot accounts to bulkDelete
2016-09-19 18:12:21 -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
0405b1a59f
Make TextBasedChannel.sendCode escape codeblocks
2016-09-14 21:20:58 -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
5464ee7e64
Clean up MessageOptions JSDoc
2016-09-12 16:23:15 -04:00
Schuyler Cebulskie
7ff9ac2bcc
Add TextBasedChannel.sendCode and make User/GuildMember partial implementations
2016-09-11 10:55:41 -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
9309b702eb
Remove unnecessary default in docs
2016-09-08 22:06:53 -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
818649b94f
Organise structure methods
2016-09-07 02:07:39 -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
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
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
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
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
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
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
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
Schuyler Cebulskie
dbda589088
Massively improve performance of message caching ( #573 )
2016-08-31 10:05:15 +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
Manuel Kraus
d9ae732bfd
Add sendFile function ( #562 )
...
* sendFile
* Add default value to filename
* eslint
* (╯°□°)╯︵ ┻━┻
2016-08-29 19:01:05 +01:00
Amish Shah
9f1475f358
Add TextBasedChanel.fetchPinnedMessages()
2016-08-28 19:42:40 +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
Hackzzila
2c056b6418
Added nonce support to sendMessage ( #553 )
2016-08-27 22:01:51 +01:00
Amish Shah
6a1a36813f
Add TextBasedChannel.setTyping(bool)
2016-08-27 21:44:08 +01:00
Amish Shah
642d768cdc
Add textBasedChannel.bulkDelete()
2016-08-26 22:13:27 +01:00
Amish Shah
b065bf799c
Fix getMessages bug
2016-08-23 17:03:49 +01:00
Amish Shah
576a7f2488
Add TextBasedChannel{full}.getMessages()
2016-08-23 13:52:01 +01:00
Amish Shah
1deefbd8cd
change maps to Collections
2016-08-23 00:17:44 +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