mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Users are not servers (#556)
This commit is contained in:
@@ -470,7 +470,7 @@ export default class InternalClient {
|
|||||||
options.owner_id = user.id;
|
options.owner_id = user.id;
|
||||||
}
|
}
|
||||||
if (options.verificationLevel) {
|
if (options.verificationLevel) {
|
||||||
options.verification_level = user.verificationLevel;
|
options.verification_level = server.verificationLevel;
|
||||||
}
|
}
|
||||||
if (options.afkChannel) {
|
if (options.afkChannel) {
|
||||||
var channel = this.resolver.resolveUser(options.afkChannel);
|
var channel = this.resolver.resolveUser(options.afkChannel);
|
||||||
@@ -480,7 +480,7 @@ export default class InternalClient {
|
|||||||
options.afk_channel_id = channel.id;
|
options.afk_channel_id = channel.id;
|
||||||
}
|
}
|
||||||
if (options.afkTimeout) {
|
if (options.afkTimeout) {
|
||||||
options.afk_timeout = user.afkTimeout;
|
options.afk_timeout = server.afkTimeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.apiRequest("patch", Endpoints.SERVER(server.id), true, options)
|
return this.apiRequest("patch", Endpoints.SERVER(server.id), true, options)
|
||||||
|
|||||||
Reference in New Issue
Block a user