fix(voiceChannelLog): dont log to channel if mode is menu only

This commit is contained in:
verticalsync 2024-10-21 19:37:42 +03:00
parent ea7ca4cdab
commit b2213067b0
No known key found for this signature in database
GPG key ID: C2BC9F32343245E1

View file

@ -66,7 +66,9 @@ function getMessageFlags(selfInChannel: boolean) {
}
function sendVoiceStatusMessage(channelId: string, content: string, userId: string, selfInChannel: boolean): Message | null {
if (settings.store.mode === 1) return null;
if (!channelId) return null;
const message: Message = createBotMessage({ channelId, content, embeds: [] });
message.flags = getMessageFlags(selfInChannel);
message.author = UserStore.getUser(userId);