Minor refactor of Actions

This commit is contained in:
Amish Shah
2017-04-29 17:56:36 +01:00
parent dd8f77fcf0
commit f7d65991d5
19 changed files with 37 additions and 104 deletions

View File

@@ -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;