mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Minor refactor of Actions
This commit is contained in:
@@ -5,8 +5,8 @@ const Util = require('../../util/Util');
|
||||
class GuildRoleUpdateAction extends Action {
|
||||
handle(data) {
|
||||
const client = this.client;
|
||||
|
||||
const guild = client.guilds.get(data.guild_id);
|
||||
|
||||
if (guild) {
|
||||
const roleData = data.role;
|
||||
let oldRole = null;
|
||||
|
||||
Reference in New Issue
Block a user