mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
hotfix
This commit is contained in:
1 parent
16ed58a9af
commit
c0a30b0309
7 files changed
+83
-22
No files matched your search
+8
-2
@@ -16,6 +16,7 @@ import { Locale } from "./Locale.mjs";
|
||||
import { CommandHandler, CommandLoader, PrefixManager } from "../commands/index.mjs";
|
||||
import { MessageHandler, HelpCommand, setGlobalColor } from "../ui/index.mjs";
|
||||
import { cleanId } from "../utils/Utils.mjs";
|
||||
import { resolveIsBotUser } from "../voice/VoiceStateResolver.mjs";
|
||||
import * as ShardingUtils from "../utils/ShardingUtils.mjs";
|
||||
import { RemoteSettingsManager } from "../db/Settings.mjs";
|
||||
import { PlayerStateStore } from "../db/PlayerStateStore.mjs";
|
||||
@@ -473,8 +474,13 @@ class Remix {
|
||||
const stateChannel = cleanId(state?.channelId ?? state?.channel_id);
|
||||
if (stateChannel === cleanChanId) {
|
||||
const stateUserId = state?.userId ?? state?.user_id ?? state?.id;
|
||||
const member = guild?.members?.get?.(stateUserId);
|
||||
const isBot = member?.user?.bot ?? state?.member?.user?.bot ?? false;
|
||||
const isBot = resolveIsBotUser({
|
||||
userId: stateUserId,
|
||||
member: state?.member,
|
||||
guild,
|
||||
client: this.client,
|
||||
botId: this.client?.user?.id,
|
||||
});
|
||||
if (!isBot) {
|
||||
hasHuman = true;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user