From 22009ec8da37fc2cd235d0b0c987a0fe45a69e27 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 30 Aug 2021 13:12:16 -0400 Subject: need to make commit early --- src/commands/moderation/role.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands') diff --git a/src/commands/moderation/role.ts b/src/commands/moderation/role.ts index ddaefaa..ff0e049 100644 --- a/src/commands/moderation/role.ts +++ b/src/commands/moderation/role.ts @@ -71,7 +71,7 @@ export default class RoleCommand extends BushCommand { } } }; - console.debug(action); + const user = yield { id: 'user', type: 'member', @@ -83,7 +83,7 @@ export default class RoleCommand extends BushCommand { } } }; - console.debug(user); + const _role = yield { id: 'role', type: `${action === 'add' ? 'roleWithDuration' : 'role'}`, @@ -98,7 +98,7 @@ export default class RoleCommand extends BushCommand { } } }; - console.debug(_role); + return { action, user, role: (_role as any).role ?? _role, duration: (_role as any).duration }; } -- cgit