feat: dynamic property for ImageURLOptions (#3530)

* Added dynamic property to ImageURLOptions

* fixes

* order

* typings fix

* made dynamic false by default

* add curly spaces
This commit is contained in:
Tenpi
2020-01-13 09:32:29 -05:00
committed by Amish Shah
parent 400cb56358
commit 8014ddcd1c
4 changed files with 22 additions and 20 deletions

View File

@@ -433,9 +433,9 @@ class Guild extends Base {
* @param {ImageURLOptions} [options={}] Options for the Image URL
* @returns {?string}
*/
iconURL({ format, size } = {}) {
iconURL({ format, size, dynamic } = {}) {
if (!this.icon) return null;
return this.client.rest.cdn.Icon(this.id, this.icon, format, size);
return this.client.rest.cdn.Icon(this.id, this.icon, format, size, dynamic);
}
/**