mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 08:11:50 +00:00
Added Missing Author URL Option (#979)
This commit is contained in:
parent
52a83b9218
commit
3193df792e
1 changed files with 3 additions and 2 deletions
|
|
@ -121,10 +121,11 @@ class RichEmbed {
|
||||||
* Sets the author of this embed
|
* Sets the author of this embed
|
||||||
* @param {string} name The name of the author
|
* @param {string} name The name of the author
|
||||||
* @param {string} [icon] The icon URL of the author
|
* @param {string} [icon] The icon URL of the author
|
||||||
|
* @param {string} [url] The URL of the author
|
||||||
* @returns {RichEmbed} This embed
|
* @returns {RichEmbed} This embed
|
||||||
*/
|
*/
|
||||||
setAuthor(name, icon) {
|
setAuthor(name, icon, url) {
|
||||||
this.author = { name, icon_url: icon };
|
this.author = { name, icon_url: icon, url };
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue