diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-21 23:35:13 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-21 23:35:13 -0400 |
commit | 44521f4560dc8b0bab055685437d8fa65a34377f (patch) | |
tree | 4750c8cf696a2489964edc409e640f6792ed92b6 /src/commands/utilities/activity.ts | |
parent | a8b3f2d258d6ef19aeff2c9d60d6b08a91277b2b (diff) | |
download | tanzanite-44521f4560dc8b0bab055685437d8fa65a34377f.tar.gz tanzanite-44521f4560dc8b0bab055685437d8fa65a34377f.tar.bz2 tanzanite-44521f4560dc8b0bab055685437d8fa65a34377f.zip |
misc
Diffstat (limited to 'src/commands/utilities/activity.ts')
-rw-r--r-- | src/commands/utilities/activity.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/utilities/activity.ts b/src/commands/utilities/activity.ts index c3839e5..e2a3352 100644 --- a/src/commands/utilities/activity.ts +++ b/src/commands/utilities/activity.ts @@ -15,7 +15,7 @@ const activityMap = { function map(phase: string) { if (client.consts.regex.snowflake.test(phase)) return phase; - else if (Object.keys(activityMap).includes(phase)) return activityMap[phase as keyof typeof activityMap]; + else if (Reflect.has(activityMap, phase)) return activityMap[phase as keyof typeof activityMap]; else if (['yt', 'youtube'].includes(phase)) return activityMap['Watch Together']; else if (['chess', 'park'].includes(phase)) return activityMap['Chess in the Park']; else if (['poker'].includes(phase)) return activityMap['Poker Night']; |