aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Alizer <64274699+iAmSpace@users.noreply.github.com>2023-05-16 18:23:10 +0100
committerGitHub <noreply@github.com>2023-05-16 19:23:10 +0200
commitd53476a32a06e2185cdac267a289249bbcb81aa9 (patch)
treefdc07ec307b9f07a46e4bf2f26195aa4989681fe
parentfc943b7778bc07ff681c644f8a62879a669af4b2 (diff)
downloadVencord-d53476a32a06e2185cdac267a289249bbcb81aa9.tar.gz
Vencord-d53476a32a06e2185cdac267a289249bbcb81aa9.tar.bz2
Vencord-d53476a32a06e2185cdac267a289249bbcb81aa9.zip
VcNarrator: Add 'Narrate Self' option (#1120)
* Add 'Narrate Self' option if anyone wishes to hear their own name on join this should work * Apply suggestions from code review Co-authored-by: V <vendicated@riseup.net> * Update vcNarrator.tsx --------- Co-authored-by: V <vendicated@riseup.net>
-rw-r--r--src/plugins/vcNarrator.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/vcNarrator.tsx b/src/plugins/vcNarrator.tsx
index 575dcbc..b8f0fde 100644
--- a/src/plugins/vcNarrator.tsx
+++ b/src/plugins/vcNarrator.tsx
@@ -165,7 +165,7 @@ export default definePlugin({
if (!type) continue;
const template = Settings.plugins.VcNarrator[type + "Message"];
- const user = isMe ? "" : UserStore.getUser(userId).username;
+ const user = isMe && !Settings.plugins.VcNarrator.sayOwnName ? "" : UserStore.getUser(userId).username;
const channel = ChannelStore.getChannel(id).name;
speak(formatText(template, user, channel));
@@ -230,6 +230,11 @@ export default definePlugin({
markers: [0.1, 0.5, 1, 2, 5, 10],
stickToMarkers: false
},
+ sayOwnName: {
+ description: "Say own name",
+ type: OptionType.BOOLEAN,
+ default: false
+ },
joinMessage: {
type: OptionType.STRING,
description: "Join Message",