Kelvin Wu
d870b27ece
Message#member should be a nullable. ( #1205 )
2017-02-21 13:49:20 -05:00
Schuyler Cebulskie
7232531eb1
Move all util methods into class
...
Remove TransformMessageOptions altogether
2017-02-15 22:25:18 -05: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
Programmix
ba11f76284
Fix patching message reactions ( fixes #1071 ) ( #1137 )
2017-01-26 21:20:40 +00:00
Hackzzila
f8b9bf6884
Fix reaction events ( #1105 )
...
* Fix reaction events
* Made it better
* one line ftw
2017-01-16 22:52:25 +00:00
Schuyler Cebulskie
5caa7df1d8
Add centralised reply option to message options
2017-01-10 19:25:05 -05:00
Gus Caplan
42527ea969
fix message#isMemberMentioned ( #1061 )
...
* fix this
* e
* Update Message.js
2017-01-07 03:38:23 -05: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
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
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
Gus Caplan
beffb390e6
Add search ( #1043 )
...
* add search
* Update ClientDataResolver.js
2016-12-30 02:44:19 -05:00
Schuyler Cebulskie
ba77e69edf
Document boolean for code option
2016-12-29 10:51:05 -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
977e29ceba
👏 @Programmix
2016-12-04 20:25:24 -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
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
Schuyler Cebulskie
2488e1a00f
Improved the definition of structures' client properties
2016-12-02 19:52:27 -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
Will Nelson
4ae1f63a97
fix message.edits ( #924 )
2016-11-26 21:59:18 +00: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
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
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
90304aa7d6
Fix loads of JSDoc type issues
2016-11-12 20:52:37 -05: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
8306d50bd8
Clean up a bunch of promise stuff
2016-10-30 12:47:17 -04: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
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
Gus Caplan
bd5540314b
add message@#type
2016-10-17 21:24:16 -05:00
Schuyler Cebulskie
f2555132fe
Simplify sendCode lang
2016-10-15 01:29:46 -04:00
Schuyler Cebulskie
e3b2f1f3da
Fix require path
2016-10-09 15:08:21 -04:00
Schuyler Cebulskie
7b571f9729
Add escapeMarkdown util function
2016-10-09 14:32:48 -04:00
Schuyler Cebulskie
973dbe8266
Add more @readonly and clean up some stuff
2016-09-27 20:07:33 -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
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
Schuyler Cebulskie
46d7dedc85
Add Message.editCode
2016-09-19 15:14:51 -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
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