Commit Graph

16 Commits

Author SHA1 Message Date
Crawl
ac92d2cecc Improve docs a bit 2017-04-30 04:30:44 +02: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
Programmix
a029999b09 Doc fixes, mostly pertaining to Snowflakes (#1218)
GUS!!!! @GusCaplan
2017-02-24 15:33:51 -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
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
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
Schuyler Cebulskie
b2822c584a Minor doc updates 2017-01-10 19:43:25 -05: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
bdistin
3193df792e Added Missing Author URL Option (#979) 2016-12-12 22:29:39 -05: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
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
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