mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
Fix permissionsFor
This commit is contained in:
@@ -179,7 +179,7 @@ class Client extends EventEmitter {
|
||||
* @param {array<Guild>} [guilds=this.guilds.array()] An array of guilds to sync.
|
||||
*/
|
||||
syncGuilds(guilds = this.guilds.array()) {
|
||||
if (!this.client.user.bot) {
|
||||
if (!this.user.bot) {
|
||||
this.ws.send({
|
||||
op: 12,
|
||||
d: guilds.map(g => g.id),
|
||||
|
||||
Reference in New Issue
Block a user