mirror of
https://github.com/RobinRMC/VencordPlus.git
synced 2025-05-11 09:55:44 +02:00
Remove NotesSearcher, SkypeStartupSound, VoiceChannelLog & VoiceJoinMessages
Removed plugins will be put in a dedicated directory from now on.
This commit is contained in:
parent
5542391c7c
commit
9d150b6c69
19 changed files with 98 additions and 98 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2023 Vendicated and contributors
|
||||
* Copyright (c) 2024 Vendicated and contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2023 Vendicated and contributors
|
||||
* Copyright (c) 2024 Vendicated and contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
|
@ -114,7 +114,7 @@ let clientOldChannelId: string | undefined;
|
|||
|
||||
export default definePlugin({
|
||||
name: "VoiceChannelLog",
|
||||
description: "Logs who joins and leaves voice channels",
|
||||
description: "Log who joins and leaves voice channels",
|
||||
authors: [Devs.Sqaaakoi],
|
||||
settings,
|
||||
flux: {
|
||||
|
@ -149,12 +149,12 @@ export default definePlugin({
|
|||
// empty string is to make type checker shut up
|
||||
const targetChannelId = oldChannelId || channelId || "";
|
||||
const selfInChannel = SelectedChannelStore.getVoiceChannelId() === targetChannelId;
|
||||
sendVoiceStatusMessage(targetChannelId, `${(channelId ? "Joined" : "Left")} <#${targetChannelId}>`, userId, selfInChannel);
|
||||
sendVoiceStatusMessage(targetChannelId, `${(channelId ? "has joined" : "has left")} <#${targetChannelId}>`, userId, selfInChannel);
|
||||
}
|
||||
// Move between channels
|
||||
if (oldChannelId && channelId) {
|
||||
sendVoiceStatusMessage(oldChannelId, `Moved to <#${channelId}>`, userId, SelectedChannelStore.getVoiceChannelId() === oldChannelId);
|
||||
sendVoiceStatusMessage(channelId, `Moved from <#${oldChannelId}>`, userId, SelectedChannelStore.getVoiceChannelId() === channelId);
|
||||
sendVoiceStatusMessage(oldChannelId, `has moved to <#${channelId}>`, userId, SelectedChannelStore.getVoiceChannelId() === oldChannelId);
|
||||
sendVoiceStatusMessage(channelId, `has moved from <#${oldChannelId}>`, userId, SelectedChannelStore.getVoiceChannelId() === channelId);
|
||||
}
|
||||
|
||||
});
|
|
@ -18,12 +18,12 @@ const SortedVoiceStateStore = findByPropsLazy("getVoiceStatesForChannel");
|
|||
const settings = definePluginSettings({
|
||||
friendDirectMessages: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Recieve notifications in your friends' DMs when they join a voice channel",
|
||||
description: "Receive notifications in your friends' DMs when they join a voice channel",
|
||||
default: true
|
||||
},
|
||||
friendDirectMessagesShowMembers: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Show a list of other members in the voice channel when recieving a DM notification of your friend joining a voice channel",
|
||||
description: "Show a list of other members in the voice channel when receiving a DM notification of your friend joining a voice channel",
|
||||
default: true
|
||||
},
|
||||
friendDirectMessagesShowMemberCount: {
|
||||
|
@ -33,22 +33,22 @@ const settings = definePluginSettings({
|
|||
},
|
||||
friendDirectMessagesSelf: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Recieve notifications in your friends' DMs even if you are in the same voice channel as them",
|
||||
description: "Receive notifications in your friends' DMs, even if you are in the same voice channel as them",
|
||||
default: false
|
||||
},
|
||||
friendDirectMessagesSilent: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Join messages in your friends DMs will be silent",
|
||||
description: "Join messages in your friends' DMs will be silent",
|
||||
default: false
|
||||
},
|
||||
allowedFriends: {
|
||||
type: OptionType.STRING,
|
||||
description: "Comma or space separated list of friends' user IDs you want to recieve join messages from",
|
||||
description: "Comma or space separated list of friends' user IDs you want to receive join messages from",
|
||||
default: ""
|
||||
},
|
||||
ignoreBlockedUsers: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Do not send messages about blocked users joining/leaving/moving voice channels",
|
||||
description: "Do not send messages about blocked users joining voice channels",
|
||||
default: true
|
||||
},
|
||||
});
|
||||
|
@ -142,7 +142,7 @@ export default definePlugin({
|
|||
}
|
||||
}
|
||||
const dmChannelId = ChannelStore.getDMFromUserId(userId);
|
||||
if (dmChannelId && (selfInChannel ? settings.store.friendDirectMessagesSelf : true)) sendVoiceStatusMessage(dmChannelId, `Joined voice channel <#${channelId}>${memberListContent}`, userId);
|
||||
if (dmChannelId && (selfInChannel ? settings.store.friendDirectMessagesSelf : true)) sendVoiceStatusMessage(dmChannelId, `has joined voice channel <#${channelId}>${memberListContent}`, userId);
|
||||
}
|
||||
});
|
||||
},
|
Loading…
Add table
Add a link
Reference in a new issue