mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00:00
Users are not servers (#556)
This commit is contained in:
parent
5500b87968
commit
6d7e989e3b
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue