mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 22:21:17 +00:00
Webpack build for branch master: 5f694d1149
This commit is contained in:
parent
c048f39d0f
commit
eef0302227
2 changed files with 1 additions and 10 deletions
|
|
@ -18518,7 +18518,6 @@ class ClientDataResolver {
|
|||
* * A User object
|
||||
* * A Snowflake
|
||||
* * A Message object (resolves to the message author)
|
||||
* * A Guild object (owner of the guild)
|
||||
* * A GuildMember object
|
||||
* @typedef {User|Snowflake|Message|Guild|GuildMember} UserResolvable
|
||||
*/
|
||||
|
|
@ -18533,7 +18532,6 @@ class ClientDataResolver {
|
|||
if (typeof user === 'string') return this.client.users.get(user) || null;
|
||||
if (user instanceof GuildMember) return user.user;
|
||||
if (user instanceof Message) return user.author;
|
||||
if (user instanceof Guild) return user.owner;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -18546,7 +18544,6 @@ class ClientDataResolver {
|
|||
if (user instanceof User || user instanceof GuildMember) return user.id;
|
||||
if (typeof user === 'string') return user || null;
|
||||
if (user instanceof Message) return user.author.id;
|
||||
if (user instanceof Guild) return user.ownerID;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -18613,8 +18610,6 @@ class ClientDataResolver {
|
|||
/**
|
||||
* Data that can be resolved to give a Channel object. This can be:
|
||||
* * A Channel object
|
||||
* * A Message object (the channel the message was sent in)
|
||||
* * A Guild object (the #general channel)
|
||||
* * A Snowflake
|
||||
* @typedef {Channel|Guild|Message|Snowflake} ChannelResolvable
|
||||
*/
|
||||
|
|
@ -18627,8 +18622,6 @@ class ClientDataResolver {
|
|||
resolveChannel(channel) {
|
||||
if (channel instanceof Channel) return channel;
|
||||
if (typeof channel === 'string') return this.client.channels.get(channel) || null;
|
||||
if (channel instanceof Message) return channel.channel;
|
||||
if (channel instanceof Guild) return channel.channels.get(channel.id) || null;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -18640,8 +18633,6 @@ class ClientDataResolver {
|
|||
resolveChannelID(channel) {
|
||||
if (channel instanceof Channel) return channel.id;
|
||||
if (typeof channel === 'string') return channel;
|
||||
if (channel instanceof Message) return channel.channel.id;
|
||||
if (channel instanceof Guild) return channel.defaultChannel.id;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue