From 3e9dad9bd054aa0733133a09e6cae0c129b4693f Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 18 Jul 2021 12:52:27 -0400 Subject: fix token & eval in dms --- src/commands/dev/eval.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/dev/eval.ts') diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 76a78ba..83dd66f 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -178,8 +178,8 @@ export default class EvalCommand extends BushCommand { guild = message.guild, channel = message.channel, config = this.client.config, - members = message.guild.members, - roles = message.guild.roles, + members = message.guild?.members, + roles = message.guild?.roles, client = this.client, { Ban, Global, Guild, Level, ModLog, StickyRole } = await import('@lib'), { -- cgit