mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-09 14:43:03 -04:00
fix(voiceChannelLog): dont log to channel if mode is menu only
This commit is contained in:
parent
ea7ca4cdab
commit
b2213067b0
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue