mirror of
https://github.com/danbulant/discord.js
synced 2026-07-12 22:50:40 +00:00
Merge branch 'master' into voice-rewrite
This commit is contained in:
commit
f61b57ce10
3 changed files with 6 additions and 6 deletions
|
|
@ -86,7 +86,7 @@ class ShardClientUtil {
|
|||
*/
|
||||
broadcastEval(script) {
|
||||
return new Promise((resolve, reject) => {
|
||||
script = typeof script !== 'function' ? `(${script})(this)` : script;
|
||||
script = typeof script === 'function' ? `(${script})(this)` : script;
|
||||
const listener = message => {
|
||||
if (!message || message._sEval !== script) return;
|
||||
process.removeListener('message', listener);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class Guild extends Base {
|
|||
|
||||
/**
|
||||
* A collection of roles that are in this guild. The key is the role's ID, the value is the role
|
||||
* @type {Collection<Snowflake, Role>}
|
||||
* @type {RoleStore<Snowflake, Role>}
|
||||
*/
|
||||
this.roles = new RoleStore(this);
|
||||
|
||||
|
|
|
|||
|
|
@ -67,8 +67,8 @@ class MessageEmbed {
|
|||
this.thumbnail = data.thumbnail ? {
|
||||
url: data.thumbnail.url,
|
||||
proxyURL: data.thumbnail.proxy_url,
|
||||
height: data.height,
|
||||
width: data.width,
|
||||
height: data.thumbnail.height,
|
||||
width: data.thumbnail.width,
|
||||
} : null;
|
||||
|
||||
/**
|
||||
|
|
@ -82,8 +82,8 @@ class MessageEmbed {
|
|||
this.image = data.image ? {
|
||||
url: data.image.url,
|
||||
proxyURL: data.image.proxy_url,
|
||||
height: data.height,
|
||||
width: data.width,
|
||||
height: data.image.height,
|
||||
width: data.image.width,
|
||||
} : null;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue