2023-04-15 01:58:22 +00:00
/ *
2023-10-25 12:34:23 -03:00
* Vencord , a Discord client mod
* Copyright ( c ) 2023 rini
* SPDX - License - Identifier : GPL - 3.0 - or - later
* /
2023-04-15 01:58:22 +00:00
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
import "./style.css" ;
2023-04-15 01:58:22 +00:00
2025-12-04 10:16:12 -05:00
import { findGroupChildrenByChildId , NavContextMenuPatchCallback } from "@api/ContextMenu" ;
import { DataStore } from "@api/index" ;
2025-12-06 00:49:53 -05:00
import { isPluginEnabled } from "@api/PluginManager" ;
import { definePluginSettings } from "@api/Settings" ;
2025-12-04 10:16:12 -05:00
import { Button , ErrorBoundary , Heading , TextButton } from "@components/index" ;
2025-12-06 00:49:53 -05:00
import mentionAvatars from "@plugins/mentionAvatars" ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
import { Devs , EquicordDevs } from "@utils/constants" ;
2025-12-04 10:16:12 -05:00
import { ModalCloseButton , ModalContent , ModalFooter , ModalHeader , ModalProps , ModalRoot , openModal } from "@utils/index" ;
2023-04-15 01:58:22 +00:00
import definePlugin , { OptionType } from "@utils/types" ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
import { GuildMember , Message , User } from "@vencord/discord-types" ;
import { findByCodeLazy , findStoreLazy } from "@webpack" ;
2025-11-26 13:32:11 -08:00
import { ChannelStore , GuildMemberStore , GuildStore , Menu , MessageStore , RelationshipStore , StreamerModeStore , TextInput , useEffect , UserStore , useState } from "@webpack/common" ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
import { JSX } from "react" ;
2023-04-15 01:58:22 +00:00
2025-08-08 11:41:11 -07:00
const wrapEmojis = findByCodeLazy ( "lastIndex;return" ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const AccessibilityStore = findStoreLazy ( "AccessibilityStore" ) ;
const colorPattern = / ^ # ( ? : [ \ d a - f ] { 3 } ) { 1 , 2 } $ | ^ # ( ? : [ \ d a - f ] { 4 } ) { 1 , 2 } $ | ( r g b | h s l ) a ? \ ( ( \ s * - ? \ d + % ? \ s * , ) { 2 } ( \ s * - ? \ d + % ? \ s * ) \ ) | ( r g b | h s l ) a ? \ ( ( \ s * - ? \ d + % ? \ s * , ) { 3 } \ s * ( 0 | ( 0 ? \ . \ d + ) | 1 ) \ ) $ / i u ;
const roleColorPattern = / ^ r o l e ( ( ? : \ + | - ) \ d { 0 , 4 } ) ? $ / i u ;
const symbolPattern = / ^ [ \ p { S } \ p { P } ] { 1 , 3 } $ / i u ;
2025-11-26 13:32:11 -08:00
const templatePattern = / ( ? : \ { ( ? : c u s t o m | f r i e n d | n i c k | d i s p l a y | u s e r ) ( ? : , \ s * ( ? : c u s t o m | f r i e n d | n i c k | d i s p l a y | u s e r ) ) * \ } ) / i u ;
type CustomNicknameData = Record < string , string > ;
let customNicknames : CustomNicknameData = { } ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
function adjustHex ( color : string , percent : number ) : string {
let hex = color . replace ( "#" , "" ) ;
if ( hex . length === 3 ) {
hex = hex . split ( "" ) . map ( c = > c + c ) . join ( "" ) ;
}
const num = parseInt ( hex , 16 ) ;
let r = ( num >> 16 ) & 0xFF ;
let g = ( num >> 8 ) & 0xFF ;
let b = num & 0xFF ;
r = Math . max ( 0 , Math . min ( 255 , r + Math . round ( r * ( percent / 100 ) ) ) ) ;
g = Math . max ( 0 , Math . min ( 255 , g + Math . round ( g * ( percent / 100 ) ) ) ) ;
b = Math . max ( 0 , Math . min ( 255 , b + Math . round ( b * ( percent / 100 ) ) ) ) ;
const newColor = ( ( r << 16 ) | ( g << 8 ) | b ) . toString ( 16 ) . padStart ( 6 , "0" ) ;
if ( newColor === "ffffff" || newColor === "000000" ) {
return color ;
}
return ` # ${ newColor } ` ;
}
function validColor ( color : string ) {
const trimmedColor = color . trim ( ) ;
if ( ! color ) return true ;
if ( trimmedColor . length !== color . length ) return false ;
if ( trimmedColor . toLowerCase ( ) === "role" ) return true ;
if ( color . toLowerCase ( ) . includes ( "role" ) ) {
const percentage = parseInt ( roleColorPattern . exec ( color ) ? . [ 1 ] || "" ) ;
return ! isNaN ( percentage ) && percentage <= 100 && percentage >= - 100 ;
}
const colorTestDiv = document . createElement ( "div" ) ;
colorTestDiv . style . borderColor = color ;
const isValid = colorTestDiv . style . borderColor !== "" && colorPattern . test ( color ) ;
colorTestDiv . remove ( ) ;
return isValid ;
}
2025-08-15 10:57:05 -07:00
function resolveColor ( user : User | GuildMember , savedColor : string , fallbackColor : string , canUseGradient : boolean ) : any {
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const fallbackReturn = {
normal : {
original : {
color : fallbackColor ,
2025-11-11 13:55:02 -08:00
"text-decoration-color" : fallbackColor
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
} ,
adjusted : {
color : fallbackColor ,
2025-11-11 13:55:02 -08:00
"text-decoration-color" : fallbackColor
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
}
} ,
gradient : null
} ;
if ( ! savedColor . trim ( ) ) { return fallbackReturn ; }
let gradient : any = null ;
let primaryColor : any = savedColor ;
let secondaryColor : any = savedColor ;
let tertiaryColor : any = savedColor ;
let primaryAdjusted : any = savedColor ;
let secondaryAdjusted : any = savedColor ;
let tertiaryAdjusted : any = savedColor ;
if ( savedColor . toLowerCase ( ) . includes ( "role" ) ) {
const percentage = roleColorPattern . exec ( savedColor ) ? . [ 1 ] || "" ;
if ( percentage && isNaN ( parseInt ( percentage ) ) ) return fallbackReturn ;
const colorStrings = ( user as any ) ? . colorStrings || { } ;
primaryColor = colorStrings . primaryColor || null ;
secondaryColor = colorStrings . secondaryColor || null ;
tertiaryColor = colorStrings . tertiaryColor || null ;
primaryAdjusted = primaryColor ;
secondaryAdjusted = secondaryColor ;
tertiaryAdjusted = tertiaryColor ;
if ( ! primaryColor ) { return fallbackReturn ; }
if ( primaryColor && percentage ) {
primaryAdjusted = adjustHex ( primaryColor , parseInt ( percentage ) ) ;
}
if ( secondaryColor && percentage ) {
secondaryAdjusted = adjustHex ( secondaryColor , parseInt ( percentage ) ) ;
}
if ( tertiaryColor && percentage ) {
tertiaryAdjusted = adjustHex ( tertiaryColor , parseInt ( percentage ) ) ;
}
}
2025-08-15 10:57:05 -07:00
gradient = ! canUseGradient || ! secondaryColor
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
? null
: tertiaryColor
? "linear-gradient(to right,var(--custom-gradient-color-1),var(--custom-gradient-color-2),var(--custom-gradient-color-3),var(--custom-gradient-color-1))"
: "linear-gradient(to right,var(--custom-gradient-color-1),var(--custom-gradient-color-2),var(--custom-gradient-color-1))" ;
const baseNormalStyle = {
2025-11-11 13:55:02 -08:00
"isolation" : "isolate"
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
} ;
const baseGradientStyle = {
"background-clip" : "text" ,
"background-size" : "100px auto" ,
"-webkit-text-fill-color" : "transparent" ,
"-webkit-background-clip" : "text" ,
2025-11-11 13:55:02 -08:00
"isolation" : "isolate"
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
} ;
return {
normal : {
original : { . . . baseNormalStyle , "color" : primaryColor , "text-decoration-color" : primaryColor , "-webkit-text-fill-color" : primaryColor } ,
adjusted : { . . . baseNormalStyle , "color" : primaryAdjusted , "text-decoration-color" : primaryAdjusted , "-webkit-text-fill-color" : primaryAdjusted } ,
} ,
gradient : gradient ? {
animated : {
. . . baseGradientStyle ,
"color" : primaryColor ,
"text-decoration-color" : primaryColor ,
"--custom-gradient-color-1" : primaryColor ,
"--custom-gradient-color-2" : secondaryColor || primaryColor ,
"--custom-gradient-color-3" : tertiaryColor || primaryColor ,
"background-image" : gradient ,
"animation" : "show-me-your-name-animation 1.5s linear infinite"
} ,
static : {
original : {
. . . baseGradientStyle ,
"color" : primaryColor ,
"text-decoration-color" : primaryColor ,
"--custom-gradient-color-1" : primaryColor ,
"--custom-gradient-color-2" : secondaryColor || primaryColor ,
"--custom-gradient-color-3" : tertiaryColor || primaryColor ,
"background-image" : gradient ,
} ,
adjusted : {
. . . baseGradientStyle ,
"color" : primaryAdjusted ,
"text-decoration-color" : primaryAdjusted ,
"--custom-gradient-color-1" : primaryAdjusted ,
"--custom-gradient-color-2" : secondaryAdjusted || primaryAdjusted ,
"--custom-gradient-color-3" : tertiaryAdjusted || primaryAdjusted ,
"background-image" : gradient ,
} ,
}
} : null ,
} ;
}
function splitTemplate ( template : string ) {
const items = template . trim ( ) . split ( /(?<!,\s*)\s+/ ) ;
return items ;
}
function parseTemplateItem ( entry : string ) {
const [ prefix , suffix ] = entry . split ( templatePattern ) ;
const names = entry . replace ( prefix , "" ) . replace ( suffix , "" ) . trim ( ) . replaceAll ( /{|}/g , "" ) . split ( /,\s*/ ) ;
return {
prefix : prefix ? prefix . trim ( ) : "" ,
suffix : suffix ? suffix . trim ( ) : "" ,
targetProcessedNames : names.map ( name = > name . trim ( ) ) . filter ( name = > name . length > 0 )
} ;
}
function validTemplate ( value : string ) {
const items = splitTemplate ( value ) ;
if ( items . length > 4 || ! items . length ) {
return false ;
}
const invalidOptions = items . some ( item = > {
const { prefix , suffix , targetProcessedNames } = parseTemplateItem ( item ) ;
return (
prefix . length > 3 ||
suffix . length > 3 ||
( ! ! prefix && ! symbolPattern . test ( prefix ) ) ||
( ! ! suffix && ! symbolPattern . test ( suffix ) ) ||
2025-11-26 13:32:11 -08:00
targetProcessedNames . length > 5 ||
targetProcessedNames . some ( name = > ! [ "custom" , "friend" , "nick" , "display" , "user" ] . includes ( name . trim ( ) ) )
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
) ;
} ) ;
if ( invalidOptions ) {
return false ;
}
}
2025-11-26 13:32:11 -08:00
function getProcessedNames ( author : any , truncateAllNamesWithStreamerMode : boolean , discriminators : boolean ) : {
username : string | null ;
display : string | null ;
nick : string | null ;
friend : string | null ;
custom : string | null ;
} {
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
let discriminator : string | null = null ;
if ( discriminators ) {
const userAuthor = author as User | null ;
if ( userAuthor ? . bot && ! isNaN ( userAuthor ? . discriminator as any ) && Number ( userAuthor ? . discriminator ) !== 0 ) {
discriminator = userAuthor . discriminator ;
if ( ! ! userAuthor ) {
userAuthor . globalName = userAuthor . username ;
}
}
}
const username : string | null = ! author ? . username ? null
: StreamerModeStore . enabled
? author . username [ 0 ] + "..."
: author . username as string + ( discriminator ? ` # ${ discriminator } ` : "" ) ;
const display : string | null = ! author ? . globalName ? null
: StreamerModeStore . enabled && ( truncateAllNamesWithStreamerMode || author . globalName . toLowerCase ( ) === author . username . toLowerCase ( ) )
? author . globalName [ 0 ] + "..."
: author . globalName as string ;
const nick : string | null = ! author ? . nick ? null
: StreamerModeStore . enabled && ( truncateAllNamesWithStreamerMode || author . nick . toLowerCase ( ) === author . username . toLowerCase ( ) )
? author . nick [ 0 ] + "..."
: author . nick as string ;
const friendName : string | null = author ? RelationshipStore . getNickname ( author . id ) || null : null ;
const friend : string | null = ! friendName ? null
: StreamerModeStore . enabled && ( truncateAllNamesWithStreamerMode || friendName . toLowerCase ( ) === author . username . toLowerCase ( ) )
? friendName [ 0 ] + "..."
: friendName as string ;
2025-11-26 18:10:49 -08:00
const customName : string | null = ! author ? . id ? null : customNicknames [ author . id ] || null ;
2025-11-26 13:32:11 -08:00
const custom : string | null = ! customName ? null
: StreamerModeStore . enabled && ( truncateAllNamesWithStreamerMode || customName . toLowerCase ( ) === author . username . toLowerCase ( ) )
? customName [ 0 ] + "..."
: customName ;
return { username , display , nick , friend , custom } ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
}
interface mentionProps {
userId : string ;
channelId? : string ;
props ? : {
messageId? : string ;
groupId? : string ;
} ,
}
interface messageProps {
2023-04-15 01:58:22 +00:00
message : Message ;
2023-08-30 17:01:29 -06:00
userOverride? : User ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
isRepliedMessage? : boolean ;
withMentionPrefix? : boolean ;
}
interface memberListProfileReactionProps {
user : User ;
type : "membersList" | "profilesPopout" | "profilesTooltip" | "reactionsTooltip" | "reactionsPopout" | "voiceChannel" ;
guildId? : string ;
tags? : any ;
}
function getMemberListProfilesReactionsVoiceName (
props : memberListProfileReactionProps ,
) : [ string | null , JSX . Element | null , string | null ] {
const { user , type } = props ;
// props.guildId for member list & preview profile, props.tags.props.displayProfile.guildId
// for full guild profile and main profile, which is indicated by whether it is null or not.
const guildId = props . guildId || props . tags ? . props ? . displayProfile ? . guildId || null ;
const member = guildId ? GuildMemberStore . getMember ( guildId , user . id ) : null ;
const author = user && member ? { . . . user , . . . member } : user || member || null ;
const shouldHookless = type === "reactionsTooltip" || type === "profilesTooltip" ;
return renderUsername ( author , null , null , type , "" , shouldHookless ) ;
}
function getMemberListProfilesReactionsVoiceNameText ( props : memberListProfileReactionProps ) : string | null {
return getMemberListProfilesReactionsVoiceName ( props ) [ 2 ] ;
}
function getMemberListProfilesReactionsVoiceNameElement ( props : memberListProfileReactionProps ) : JSX . Element | null {
return getMemberListProfilesReactionsVoiceName ( props ) [ 1 ] ;
}
function getMessageName ( props : messageProps ) : [ string | null , JSX . Element | null , string | null ] {
2025-10-02 05:39:22 -07:00
const { hideDefaultAtSign , replies } = settings . use ( [ "hideDefaultAtSign" , "replies" ] ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const { message , userOverride , isRepliedMessage , withMentionPrefix } = props ;
2025-08-09 17:08:25 -07:00
const isWebhook = ! ! message . webhookId && ! message . interaction ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const channel = ChannelStore . getChannel ( message . channel_id ) || { } ;
const target = userOverride || message . author ;
2025-08-09 17:08:25 -07:00
const user = isWebhook ? target : UserStore.getUser ( target . id ) ;
const member = isWebhook ? null : GuildMemberStore . getMember ( channel . guild_id , target . id ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const author = user && member ? { . . . user , . . . member } : user || member || null ;
const mentionSymbol = hideDefaultAtSign && ( ! isRepliedMessage || replies ) ? "" : withMentionPrefix ? "@" : "" ;
return renderUsername ( author , channel . id , message . id , isRepliedMessage ? "replies" : "messages" , mentionSymbol ) ;
}
function getMessageNameElement ( props : messageProps ) : JSX . Element | null {
return getMessageName ( props ) [ 1 ] ;
}
function getMessageNameText ( props : messageProps ) : string | null {
return getMessageName ( props ) [ 0 ] ;
}
export function getMentionNameElement ( props : mentionProps ) : JSX . Element | null {
2025-10-02 05:39:22 -07:00
const { hideDefaultAtSign , mentions } = settings . use ( [ "hideDefaultAtSign" , "mentions" ] ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const { channelId , userId , props : nestedProps } = props ;
const channel = channelId ? ChannelStore . getChannel ( channelId ) || null : null ;
const user = UserStore . getUser ( userId ) ;
const member = channel ? GuildMemberStore . getMember ( channel . guild_id , userId ) : null ;
const author = user && member ? { . . . user , . . . member } : user || member || null ;
const mentionSymbol = hideDefaultAtSign && mentions ? "" : "@" ;
return renderUsername ( author , channelId || null , nestedProps ? . messageId || null , "mentions" , mentionSymbol ) [ 1 ] ;
}
function renderUsername (
author : User | GuildMember | null ,
channelId : string | null ,
messageId : string | null ,
type : "messages" | "replies" | "mentions" | "membersList" | "profilesPopout" | "profilesTooltip" | "reactionsTooltip" | "reactionsPopout" | "voiceChannel" ,
mentionSymbol : string ,
hookless = false
) : [ string | null , JSX . Element | null , string | null ] {
const isMessage = type === "messages" ;
const isReply = type === "replies" ;
const isMention = type === "mentions" ;
const isMember = type === "membersList" ;
const isProfile = type === "profilesPopout" ;
const isReactionsPopout = type === "reactionsPopout" ;
const isReactionsTooltip = type === "reactionsTooltip" ;
const isReaction = isReactionsTooltip || isReactionsPopout ;
const isVoice = type === "voiceChannel" ;
2025-11-26 13:32:11 -08:00
const config = hookless ? settings.store : settings.use ( [ "messages" , "replies" , "mentions" , "memberList" , "profilePopout" , "reactions" , "discriminators" , "hideDefaultAtSign" , "truncateAllNamesWithStreamerMode" , "removeDuplicates" , "ignoreGradients" , "ignoreFonts" , "animateGradients" , "includedNames" , "customNameColor" , "friendNameColor" , "nicknameColor" , "displayNameColor" , "usernameColor" , "nameSeparator" , "triggerNameRerender" ] ) ;
const { messages , replies , mentions , memberList , profilePopout , reactions , discriminators , hideDefaultAtSign , truncateAllNamesWithStreamerMode , removeDuplicates , ignoreGradients , ignoreFonts , animateGradients , includedNames , customNameColor , friendNameColor , nicknameColor , displayNameColor , usernameColor , nameSeparator , triggerNameRerender } = config ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
2025-08-15 10:57:05 -07:00
const canUseGradient = ( ( author as GuildMember ) ? . guildId ? ( GuildStore . getGuild ( ( author as GuildMember ) . guildId ) ? ? { } ) . premiumFeatures ? . features . includes ( "ENHANCED_ROLE_COLORS" ) : false ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const textMutedValue = getComputedStyle ( document . documentElement ) ? . getPropertyValue ( "--text-muted" ) ? . trim ( ) || "#72767d" ;
const options = splitTemplate ( includedNames ) ;
2025-08-15 10:57:05 -07:00
const resolvedUsernameColor = author ? resolveColor ( author , usernameColor . trim ( ) , "" , canUseGradient ) : null ;
const resolvedDisplayNameColor = author ? resolveColor ( author , displayNameColor . trim ( ) , "" , canUseGradient ) : null ;
const resolvedNicknameColor = author ? resolveColor ( author , nicknameColor . trim ( ) , "" , canUseGradient ) : null ;
const resolvedFriendNameColor = author ? resolveColor ( author , friendNameColor . trim ( ) , "" , canUseGradient ) : null ;
2025-11-26 13:32:11 -08:00
const resolvedCustomNameColor = author ? resolveColor ( author , customNameColor . trim ( ) , "" , canUseGradient ) : null ;
2025-11-12 18:32:12 -08:00
const affixColor = { color : textMutedValue , "-webkit-text-fill-color" : textMutedValue , isolation : "isolate" , "white-space" : "pre" , "font-family" : "var(--font-primary)" , "letter-spacing" : "normal" } ;
2025-11-26 13:32:11 -08:00
const { username , display , nick , friend , custom } = getProcessedNames ( author , truncateAllNamesWithStreamerMode , discriminators ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const names : Record < string , [ string | null , object | null ] > = {
user : [ username , resolvedUsernameColor ] ,
display : [ display , resolvedDisplayNameColor ] ,
nick : [ nick , resolvedNicknameColor ] ,
friend : [ friend , resolvedFriendNameColor ] ,
2025-11-26 13:32:11 -08:00
custom : [ custom , resolvedCustomNameColor ]
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
} ;
const outputs : any [ ] = [ ] ;
for ( const option of options ) {
const { prefix , suffix , targetProcessedNames } = parseTemplateItem ( option ) ;
let chosenName : string | null = null ;
let chosenStyle : object | null = null ;
let chosenType = "" ;
for ( const name of targetProcessedNames ) {
if ( ! names [ name ] ) {
continue ;
}
chosenName = names [ name ] [ 0 ] ;
chosenStyle = names [ name ] [ 1 ] ;
chosenType = name ;
if ( chosenName ) {
break ;
}
}
if ( ! chosenName || ! chosenStyle ) {
continue ;
}
outputs . push ( {
prefix : prefix || "" ,
name : chosenName ,
wrapped : chosenName ,
type : chosenType ,
suffix : suffix || "" ,
style : chosenStyle as React . CSSProperties
} ) ;
}
if ( ! outputs . length ) {
outputs . push ( {
prefix : "" ,
name : username || "Unknown" ,
wrapped : username || "Unknown" ,
suffix : "" ,
style : resolvedUsernameColor
} ) ;
}
let first = outputs . shift ( ) ;
let second = outputs . shift ( ) ;
let third = outputs . shift ( ) ;
let fourth = outputs . shift ( ) ;
2025-11-26 13:32:11 -08:00
let fifth = outputs . shift ( ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const firstValueWrapped = hookless ?
( first . name || "" )
: wrapEmojis ( first . name || "" ) ;
const secondValueWrapped = hookless ?
( ( second ? ? { } ) . name || "" )
: wrapEmojis ( ( second ? ? { } ) . name || "" ) ;
const thirdValueWrapped = hookless ?
( ( third ? ? { } ) . name || "" )
: wrapEmojis ( ( third ? ? { } ) . name || "" ) ;
const fourthValueWrapped = hookless ?
( ( fourth ? ? { } ) . name || "" )
: wrapEmojis ( ( fourth ? ? { } ) . name || "" ) ;
2025-11-26 13:32:11 -08:00
const fifthValueWrapped = hookless ?
( ( fifth ? ? { } ) . name || "" )
: wrapEmojis ( ( fifth ? ? { } ) . name || "" ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
first . wrapped = firstValueWrapped ;
second && ( second . wrapped = secondValueWrapped ) ;
third && ( third . wrapped = thirdValueWrapped ) ;
fourth && ( fourth . wrapped = fourthValueWrapped ) ;
2025-11-26 13:32:11 -08:00
fifth && ( fifth . wrapped = fifthValueWrapped ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
if ( isMessage && ! messages ) {
return [ null , null , null ] ;
} else if ( isReply && ! replies ) {
return [ null , null , null ] ;
} else if ( isMention && ! mentions ) {
return [ null , null , null ] ;
} else if ( isMember && ! memberList ) {
return [ null , null , null ] ;
} else if ( isProfile && ! profilePopout ) {
return [ null , null , null ] ;
} else if ( isReaction && ! reactions ) {
return [ null , null , null ] ;
} else if ( isVoice && ! reactions ) {
return [ null , null , null ] ;
} else if ( ! author || ! username ) {
const fallbackText = ` ${ mentionSymbol } Unknown ` ;
return [ fallbackText , < > { fallbackText } < / > , fallbackText ] ;
}
2025-11-26 13:32:11 -08:00
const prioritizeUsername = ( new Set ( [ first , second , third , fourth , fifth ] . filter ( Boolean ) . map ( pos = > pos . name . toLowerCase ( ) ) ) . size > 1 ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
if ( removeDuplicates ) {
// Remove duplicates from back to front. Prioritize the earlier name, unless it's the username and there's more than one unique option, then prioritize it.
2025-11-26 13:32:11 -08:00
fifth && fourth && fifth . name . toLowerCase ( ) === fourth . name . toLowerCase ( ) ? fifth . type === "user" && prioritizeUsername ? fourth = null : fifth = null : null ;
fifth && third && fifth . name . toLowerCase ( ) === third . name . toLowerCase ( ) ? fifth . type === "user" && prioritizeUsername ? third = null : fifth = null : null ;
fifth && second && fifth . name . toLowerCase ( ) === second . name . toLowerCase ( ) ? fifth . type === "user" && prioritizeUsername ? second = null : fifth = null : null ;
fifth && first && fifth . name . toLowerCase ( ) === first . name . toLowerCase ( ) ? fifth . type === "user" && prioritizeUsername ? first = null : fifth = null : null ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
fourth && third && fourth . name . toLowerCase ( ) === third . name . toLowerCase ( ) ? fourth . type === "user" && prioritizeUsername ? third = null : fourth = null : null ;
fourth && second && fourth . name . toLowerCase ( ) === second . name . toLowerCase ( ) ? fourth . type === "user" && prioritizeUsername ? second = null : fourth = null : null ;
fourth && first && fourth . name . toLowerCase ( ) === first . name . toLowerCase ( ) ? fourth . type === "user" && prioritizeUsername ? first = null : fourth = null : null ;
third && second && third . name . toLowerCase ( ) === second . name . toLowerCase ( ) ? third . type === "user" && prioritizeUsername ? second = null : third = null : null ;
third && first && third . name . toLowerCase ( ) === first . name . toLowerCase ( ) ? third . type === "user" && prioritizeUsername ? first = null : third = null : null ;
second && first && second . name . toLowerCase ( ) === first . name . toLowerCase ( ) ? second . type === "user" && prioritizeUsername ? first = null : second = null : null ;
}
2025-11-26 13:32:11 -08:00
const remainingNames = [ first , second , third , fourth , fifth ] . filter ( Boolean ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
first = remainingNames . shift ( ) ;
second = remainingNames . shift ( ) ;
third = remainingNames . shift ( ) ;
fourth = remainingNames . shift ( ) ;
2025-11-26 13:32:11 -08:00
fifth = remainingNames . shift ( ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
2025-09-27 13:18:57 -07:00
const useTopRoleStyle = isMention || isReactionsPopout ;
const topRoleStyle = resolveColor ( author , "Role" , "" , canUseGradient ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const hasGradient = ! ! topRoleStyle ? . gradient && Object . keys ( topRoleStyle . gradient ) . length > 0 ;
const message = channelId && messageId ? MessageStore . getMessage ( channelId , messageId ) : null ;
const groupId = ( message as any ) ? . showMeYourNameGroupId || null ;
2025-11-11 13:55:02 -08:00
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const isHovering = ( isMessage || isReply || isMention )
2025-11-11 13:55:02 -08:00
? ( ( messageId && hoveringMessageMap . has ( messageId ) ) || ( groupId && hoveringMessageMap . has ( groupId ) ) )
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
: isReactionsPopout
2025-08-20 15:58:16 -07:00
? hoveringReactionPopoutSet . has ( ( author as User ) . id )
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
: false ;
const shouldGradientGlow = isHovering && hasGradient ;
const shouldAnimateGradients = shouldGradientGlow && ! AccessibilityStore . useReducedMotion ;
const shouldAnimateSecondaryNames = animateGradients && ! ignoreGradients ;
2025-09-27 13:18:57 -07:00
const firstDataText = mentionSymbol + first . name ;
const secondDataText = second && shouldAnimateSecondaryNames ? ( second . prefix + second . name + second . suffix ) : "" ;
const thirdDataText = third && shouldAnimateSecondaryNames ? ( third . prefix + third . name + third . suffix ) : "" ;
const fourthDataText = fourth && shouldAnimateSecondaryNames ? ( fourth . prefix + fourth . name + fourth . suffix ) : "" ;
2025-11-26 13:32:11 -08:00
const fifthDataText = fifth && shouldAnimateSecondaryNames ? ( fifth . prefix + fifth . name + fifth . suffix ) : "" ;
const allDataText = [ firstDataText , secondDataText , thirdDataText , fourthDataText , fifthDataText ] . filter ( Boolean ) . join ( nameSeparator ) . trim ( ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
// Only mentions and reactions popouts should patch in the gradient glow or else a double glow will appear on messages.
const hoveringClass = ( isHovering ? " show-me-your-name-gradient-hovered" : "" ) ;
2025-09-27 13:18:57 -07:00
const gradientClasses = useTopRoleStyle
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
? "show-me-your-name-gradient show-me-your-name-gradient-inherit-bg" + hoveringClass
: "show-me-your-name-gradient show-me-your-name-gradient-unset-bg" + hoveringClass ;
2025-08-03 18:35:40 -07:00
const firstGroupClasses = "show-me-your-name-name-group show-me-your-name-first-name-group" ;
const secondGroupClasses = "show-me-your-name-name-group show-me-your-name-second-name-group" ;
const thirdGroupClasses = "show-me-your-name-name-group show-me-your-name-third-name-group" ;
const fourthGroupClasses = "show-me-your-name-name-group show-me-your-name-fourth-name-group" ;
2025-11-26 13:32:11 -08:00
const fifthGroupClasses = "show-me-your-name-name-group show-me-your-name-fifth-name-group" ;
2025-08-03 18:35:40 -07:00
const firstNameClasses = "show-me-your-name-name show-me-your-name-first-name" ;
const secondNameClasses = "show-me-your-name-name show-me-your-name-second-name" ;
const thirdNameClasses = "show-me-your-name-name show-me-your-name-third-name" ;
const fourthNameClasses = "show-me-your-name-name show-me-your-name-fourth-name" ;
2025-11-26 13:32:11 -08:00
const fifthNameClasses = "show-me-your-name-name show-me-your-name-fifth-name" ;
2025-08-03 18:35:40 -07:00
const prefixClasses = "show-me-your-name-affix show-me-your-name-prefix" ;
const suffixClasses = "show-me-your-name-affix show-me-your-name-suffix" ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
const topLevelStyle = {
// Allows names to wrap in reaction popouts.
. . . ( isReactionsPopout
? { display : "flex" , flexWrap : "wrap" , lineHeight : "1.1em" , fontSize : "0.9em" }
: { } ) ,
} as React . CSSProperties ;
const nameElement = (
2025-08-03 18:35:40 -07:00
< span style = { topLevelStyle } className = "show-me-your-name-container" >
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
{ mentionSymbol && < span > { mentionSymbol } < / span > }
{ (
< span
2025-08-03 18:35:40 -07:00
className = { ( shouldGradientGlow ? ( gradientClasses + " " + firstGroupClasses ) : firstGroupClasses ) }
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
data - text = { shouldGradientGlow ? firstDataText : undefined }
2025-09-27 13:18:57 -07:00
style = { ( shouldGradientGlow && useTopRoleStyle && topRoleStyle ? topRoleStyle.gradient.animated : undefined ) as React . CSSProperties }
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
>
< span
2025-08-03 18:35:40 -07:00
className = { firstNameClasses }
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
style = {
topRoleStyle ?
shouldAnimateGradients && topRoleStyle . gradient
? topRoleStyle . gradient . animated
: topRoleStyle . gradient
? topRoleStyle . gradient . static . original
: topRoleStyle . normal . original
: undefined
} >
{ first . wrapped } < / span >
< / span >
) }
2025-11-26 13:32:11 -08:00
{ [
{ name : second , dataText : secondDataText , groupClass : secondGroupClasses , nameClass : secondNameClasses , position : "second" } ,
{ name : third , dataText : thirdDataText , groupClass : thirdGroupClasses , nameClass : thirdNameClasses , position : "third" } ,
{ name : fourth , dataText : fourthDataText , groupClass : fourthGroupClasses , nameClass : fourthNameClasses , position : "fourth" } ,
{ name : fifth , dataText : fifthDataText , groupClass : fifthGroupClasses , nameClass : fifthNameClasses , position : "fifth" }
] . map ( ( { name , dataText , groupClass , nameClass , position } ) = > name && (
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
< span
2025-11-26 13:32:11 -08:00
key = { position }
className = { ( shouldGradientGlow && shouldAnimateSecondaryNames ? ( gradientClasses + " " + groupClass ) : groupClass ) }
data - text = { shouldGradientGlow && dataText ? dataText : undefined }
style = { ( shouldGradientGlow && shouldAnimateSecondaryNames ? name.style.gradient.animated : undefined ) as React . CSSProperties }
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
>
2025-08-03 18:35:40 -07:00
< span style = { affixColor as React . CSSProperties } className = { prefixClasses } >
2025-09-27 13:18:57 -07:00
< span > { nameSeparator } < / span >
2025-11-26 13:32:11 -08:00
{ name . prefix } < / span >
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
< span
// On non-primary names, allow disabling the gradients completely, or just their animation & glow.
2025-11-26 13:32:11 -08:00
className = { nameClass }
2025-11-11 13:55:02 -08:00
style = { {
2025-11-12 18:32:12 -08:00
. . . ( ignoreFonts ? { "font-family" : "var(--font-primary)" , "letter-spacing" : "normal" } : { } ) ,
2025-11-11 13:55:02 -08:00
. . . ( ignoreGradients
2025-11-26 13:32:11 -08:00
? name . style . normal . adjusted
: shouldAnimateGradients && shouldAnimateSecondaryNames && name . style . gradient
? name . style . gradient . animated
: name . style . gradient
? name . style . gradient . static . original
: name . style . normal . adjusted )
2025-11-11 13:55:02 -08:00
} } >
2025-11-26 13:32:11 -08:00
{ name . wrapped } < / span >
2025-08-03 18:35:40 -07:00
< span style = { affixColor as React . CSSProperties } className = { suffixClasses } >
2025-11-26 13:32:11 -08:00
{ name . suffix } < / span >
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
< / span >
2025-11-26 13:32:11 -08:00
) ) }
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
< / span >
) ;
return [ allDataText , nameElement , first . name ] ;
}
2025-11-11 13:55:02 -08:00
const hoveringMessageMap = new Map < string , number > ( ) ;
2025-08-20 15:58:16 -07:00
const hoveringReactionPopoutSet = new Set < string > ( ) ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
2025-11-11 13:55:02 -08:00
function handleHoveringMessage ( message : any , isHovering : boolean ) {
const messageId = message ? . id ;
const groupId = message ? . showMeYourNameGroupId ? ? "" ;
2025-09-08 13:31:16 -07:00
2025-11-11 13:55:02 -08:00
useEffect ( ( ) = > {
if ( ! message ) return ;
if ( isHovering ) {
addHoveringMessage ( messageId ) ;
addHoveringMessage ( groupId ) ;
} else {
removeHoveringMessage ( messageId ) ;
removeHoveringMessage ( groupId ) ;
}
} , [ messageId , groupId , isHovering ] ) ;
2025-09-08 13:31:16 -07:00
}
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
function addHoveringMessage ( id : string ) {
2025-09-08 13:31:16 -07:00
if ( ! id ) return ;
2025-11-11 13:55:02 -08:00
const currentCount = hoveringMessageMap . get ( id ) || 0 ;
hoveringMessageMap . set ( id , currentCount + 1 ) ;
if ( currentCount === 0 ) {
settings . store . triggerNameRerender = ! settings . store . triggerNameRerender ;
}
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
}
function removeHoveringMessage ( id : string ) {
2025-09-08 13:31:16 -07:00
if ( ! id ) return ;
2025-11-11 13:55:02 -08:00
const currentCount = hoveringMessageMap . get ( id ) || 0 ;
if ( currentCount <= 1 ) {
hoveringMessageMap . delete ( id ) ;
settings . store . triggerNameRerender = ! settings . store . triggerNameRerender ;
} else {
hoveringMessageMap . set ( id , currentCount - 1 ) ;
}
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
}
function addHoveringReactionPopout ( id : string ) {
2025-08-20 15:58:16 -07:00
hoveringReactionPopoutSet . add ( id ) ;
settings . store . triggerNameRerender = ! settings . store . triggerNameRerender ;
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
}
function removeHoveringReactionPopout ( id : string ) {
2025-08-20 15:58:16 -07:00
hoveringReactionPopoutSet . delete ( id ) ;
settings . store . triggerNameRerender = ! settings . store . triggerNameRerender ;
2023-04-15 01:58:22 +00:00
}
2025-11-26 13:32:11 -08:00
function CustomNicknameModal ( { modalProps , user } : { modalProps : ModalProps ; user : User ; } ) {
const [ value , setValue ] = useState ( customNicknames [ user . id ] ? ? "" ) ;
return (
< ModalRoot { ...modalProps } >
< ModalHeader >
< Heading tag = "h1" style = { { flexGrow : 1 , margin : 0 } } >
{ customNicknames [ user . id ] ? "Change SMYN Nickname" : "Add SMYN Nickname" }
< / Heading >
< ModalCloseButton onClick = { modalProps . onClose } / >
< / ModalHeader >
< ModalContent >
2025-12-04 10:16:12 -05:00
< Heading tag = "h3" style = { { marginBottom : 8 , fontSize : "16px" , fontWeight : "400" , lineHeight : "1.25" , color : "var(--text-subtle)" } } >
2025-11-26 13:32:11 -08:00
{ "Set a custom SMYN nickname for this user. Make use of it by specifying {custom} in the SMYN template settings." }
< / Heading >
< div style = { { paddingTop : "10px" , flexGrow : 0 } } > < / div >
< Heading tag = "h3" style = { { marginBottom : 8 , fontSize : "14px" , fontWeight : 600 } } >
SMYN Nickname
< / Heading >
< TextInput
value = { value }
maxLength = { 32 }
onChange = { setValue }
placeholder = { user . globalName ? ? user . username }
style = { { width : "100%" } }
/ >
< TextButton
className = "show-me-your-name-reset-button"
onClick = { async ( ) = > {
setValue ( "" ) ;
delete customNicknames [ user . id ] ;
await DataStore . set ( "SMYNCustomNicknames" , customNicknames ) ;
settings . store . triggerNameRerender = ! settings . store . triggerNameRerender ;
} }
>
Reset SMYN Nickname
< / TextButton >
< div style = { { paddingTop : "10px" , flexGrow : 0 } } > < / div >
< / ModalContent >
< ModalFooter className = "show-me-your-name-modal-footer-container" >
< Button
variant = "primary"
onClick = { async ( ) = > {
const trimmed = value . trim ( ) . slice ( 0 , 32 ) . trim ( ) ;
if ( trimmed ) {
customNicknames [ user . id ] = trimmed ;
} else {
delete customNicknames [ user . id ] ;
}
await DataStore . set ( "SMYNCustomNicknames" , customNicknames ) ;
settings . store . triggerNameRerender = ! settings . store . triggerNameRerender ;
modalProps . onClose ( ) ;
} }
>
Save
< / Button >
< Button
variant = "secondary"
style = { { marginRight : "8px" } }
onClick = { modalProps . onClose }
>
Cancel
< / Button >
< / ModalFooter >
< / ModalRoot >
) ;
}
const userContextPatch : NavContextMenuPatchCallback = ( children , { user } ) = > {
if ( ! user ) return ;
const currentUser = UserStore . getCurrentUser ( ) ;
if ( ! currentUser || user . id === currentUser . id ) return ;
const group = findGroupChildrenByChildId ( "user-profile" , children ) ;
! group && children . push ( < Menu.MenuSeparator / > ) ;
( group || children ) . push (
< Menu.MenuItem
id = "smyn-custom-nickname"
label = { customNicknames [ user . id ] ? "Change SMYN Nickname" : "Add SMYN Nickname" }
action = { ( ) = > openModal ( props = > (
< ErrorBoundary >
< CustomNicknameModal modalProps = { props } user = { user } / >
< / ErrorBoundary >
) ) }
/ >
) ;
} ;
2023-04-15 01:58:22 +00:00
const settings = definePluginSettings ( {
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
messages : {
2023-08-12 00:53:06 +01:00
type : OptionType . BOOLEAN ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
default : true ,
description : "Display custom name format in messages." ,
2023-08-12 00:53:06 +01:00
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
replies : {
2023-04-15 01:58:22 +00:00
type : OptionType . BOOLEAN ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
default : true ,
description : "Display custom name format in replies." ,
2023-04-15 01:58:22 +00:00
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
mentions : {
2025-02-10 18:17:31 +01:00
type : OptionType . BOOLEAN ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
default : true ,
description : "Display custom name format in mentions." ,
2025-05-01 14:09:40 -04:00
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
memberList : {
2025-07-04 08:54:14 -04:00
type : OptionType . BOOLEAN ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
default : true ,
description : "Display the first available name listed in your custom name format in the member list." ,
2025-07-04 08:54:14 -04:00
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
profilePopout : {
2025-05-01 14:09:40 -04:00
type : OptionType . BOOLEAN ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
default : true ,
description : "Display the first available name listed in your custom name format in profile popouts." ,
} ,
voiceChannels : {
type : OptionType . BOOLEAN ,
default : true ,
description : "Display the first available name listed in your custom name format in voice channels." ,
} ,
reactions : {
type : OptionType . BOOLEAN ,
default : true ,
description : "Display the first available name listed in your custom name format in reaction tooltips, and the full name in reaction popouts." ,
} ,
discriminators : {
type : OptionType . BOOLEAN ,
default : true ,
description : "Append discriminators to usernames for bots. Discriminators were deprecated for users, but are still used for bots. By default, a bot's username is equivalent to a user's global name, therefore multiple bots can have the same username. Appending discriminators makes them unique again." ,
2025-05-01 14:09:40 -04:00
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
hideDefaultAtSign : {
2025-05-01 14:09:40 -04:00
type : OptionType . BOOLEAN ,
2025-05-01 14:30:56 -04:00
default : false ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
description : "Hide the default \"@\" symbol before the name in mentions and replies. Only applied if either feature is enabled." ,
} ,
truncateAllNamesWithStreamerMode : {
type : OptionType . BOOLEAN ,
default : true ,
description : "Truncate all names, not just usernames, while in Streamer Mode." ,
} ,
removeDuplicates : {
type : OptionType . BOOLEAN ,
default : true ,
description : "If any of the names are equivalent, remove them, leaving only the unique names." ,
} ,
2025-11-11 13:55:02 -08:00
ignoreFonts : {
type : OptionType . BOOLEAN ,
default : false ,
2025-11-26 13:32:11 -08:00
description : "For the non-primary names, use Discord's default fonts regardless of the user's custom nitro font." ,
2025-11-11 13:55:02 -08:00
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
ignoreGradients : {
type : OptionType . BOOLEAN ,
default : true ,
2025-11-26 13:32:11 -08:00
description : "For the non-primary names, if the role has a gradient, ignore it in favor of the color set below." ,
2025-05-01 14:09:40 -04:00
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
animateGradients : {
2025-05-01 14:30:56 -04:00
type : OptionType . BOOLEAN ,
default : false ,
2025-11-26 13:32:11 -08:00
description : "For the non-primary names, if the role has a gradient, animate it. This is disabled by \"Ignore Gradients\" and reduced motion." ,
2025-05-01 14:30:56 -04:00
} ,
2025-09-27 13:18:57 -07:00
nameSeparator : {
type : OptionType . STRING ,
description : "The separator to use between names. The default is a single space." ,
default : " " ,
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
includedNames : {
type : OptionType . STRING ,
2025-11-26 13:32:11 -08:00
description : "The order to display usernames, display names, nicknames, friend names, and custom names. Use the following placeholders: {user}, {display}, {nick}, {friend}, {custom}. You can provide multiple name options to use as fallbacks if one is unavailable by separating them with commas as such: {custom, friend, nick}. You can have up to three prefixes and three suffixes per name." ,
default : "{custom, friend, nick} [{display}] (@{user})" ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
isValid : validTemplate ,
} ,
2025-11-26 13:32:11 -08:00
customNameColor : {
type : OptionType . STRING ,
description : "The color to use for the custom name you assigned a user if it's not the first displayed. Leave blank for default. Accepts hex(a), rgb(a), or hsl(a) input. Use \"Role\" to follow the user's top role color. Use \"Role+-#\" to adjust the brightness by that percentage (ex: \"Role+15\")" ,
default : "Role-25" ,
isValid : validColor ,
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
friendNameColor : {
type : OptionType . STRING ,
description : "The color to use for a friend's nickname if it's not the first displayed. Leave blank for default. Accepts hex(a), rgb(a), or hsl(a) input. Use \"Role\" to follow the user's top role color. Use \"Role+-#\" to adjust the brightness by that percentage (ex: \"Role+15\")" ,
default : "Role-25" ,
isValid : validColor ,
} ,
nicknameColor : {
type : OptionType . STRING ,
description : "The color to use for the nickname if it's not the first displayed. Leave blank for default. Accepts hex(a), rgb(a), or hsl(a) input. Use \"Role\" to follow the user's top role color. Use \"Role+-#\" to adjust the brightness by that percentage (ex: \"Role+15\")" ,
default : "Role-25" ,
isValid : validColor ,
} ,
displayNameColor : {
type : OptionType . STRING ,
description : "The color to use for the display name if it's not the first displayed. Leave blank for default. Accepts hex(a), rgb(a), or hsl(a) input. Use \"Role\" to follow the user's top role color. Use \"Role+-#\" to adjust the brightness by that percentage (ex: \"Role+15\")" ,
default : "Role-25" ,
isValid : validColor ,
} ,
usernameColor : {
type : OptionType . STRING ,
description : "The color to use for the username if it's not the first displayed. Leave blank for default. Accepts hex(a), rgb(a), or hsl(a) input. Use \"Role\" to follow the user's top role color. Use \"Role+-#\" to adjust the brightness by that percentage (ex: \"Role+15\")" ,
default : "Role-25" ,
isValid : validColor ,
} ,
triggerNameRerender : {
2025-06-17 15:52:19 -04:00
type : OptionType . BOOLEAN ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
description : "Trigger a name rerender by toggling this setting." ,
2025-06-17 15:54:19 -04:00
default : false ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
hidden : true
2025-06-17 15:52:19 -04:00
} ,
2023-04-15 01:58:22 +00:00
} ) ;
export default definePlugin ( {
name : "ShowMeYourName" ,
2025-11-26 13:32:11 -08:00
description : "Display any permutation of custom nicknames, friend nicknames, server nicknames, display names, and usernames in chat." ,
2026-02-04 14:16:50 -05:00
authors : [ Devs . Rini , Devs . TheKodeToad , EquicordDevs . Etorix , Devs . sadan , Devs . prism ] ,
2025-11-26 13:32:11 -08:00
tags : [ "SMYN" , "Nicknames" , "Custom Nicknames" , ] ,
2025-10-12 23:39:43 -04:00
isModified : true ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
settings ,
2023-04-15 01:58:22 +00:00
patches : [
{
2025-06-27 12:45:22 -04:00
find : '="SYSTEM_TAG"' ,
2025-08-29 06:04:24 -07:00
group : true ,
replacement : [
{
// Replace names in messages and replies.
match : /(onContextMenu:\i,children:)(.{0,250}?),"data-text":(\i\+\i)/ ,
replace : "$1$self.getMessageNameElement(arguments[0])??($2),\"data-text\":$self.getMessageNameText(arguments[0])??($3)"
} ,
{
// Pass the message object to the should-animate checker.
match : /(\(\{)(shouldSubscribe)/ ,
replace : "$1message:arguments[0].message,$2"
}
]
2025-08-28 21:18:57 -04:00
} ,
{
2025-11-11 13:55:02 -08:00
// Track hovering on messages to animate gradients.
// Attach the group ID to their messages to allow animating gradients within a group.
2025-09-08 13:31:16 -07:00
find : "CUSTOM_GIFT?\"\":" ,
replacement : {
2026-01-14 07:29:30 -08:00
match : /(isHovered:(\i).{0,1300}?\(\i,\i,\i\);)(let \i=\i.id===\i)/ ,
replace : "$1arguments[0].message.showMeYourNameGroupId=!!arguments[0].groupId?`g-${arguments[0].groupId}`:null;$self.handleHoveringMessage(arguments[0].message,$2);$3"
2025-09-08 13:31:16 -07:00
} ,
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
{
// Replace names in mentions.
find : ".USER_MENTION)" ,
replacement : [
{
match : /(let \i=\i=>\(0,)/ ,
replace : "const showMeYourNameMention=$self.getMentionNameElement(arguments[0]);$1"
} ,
{
2026-02-04 15:46:39 -05:00
match : /(?<=onContextMenu:\i,\.\.\.\i,children:)/ ,
2025-08-01 13:03:41 -04:00
replace : "showMeYourNameMention??" ,
2025-12-06 00:49:53 -05:00
predicate : ( ) = > ! isPluginEnabled ( mentionAvatars . name ) ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
}
]
} ,
{
// Pass on the props to the mention renderer so that hovering second-level
// message mentions can accurately be tracked based on props.messageId
find : "noStyleAndInteraction}," ,
replacement : {
match : /(className:"mention",)/ ,
replace : "$1props:arguments[2],"
}
} ,
{
// Replace names in the member list.
find : "let{colorRoleName:" ,
2023-04-15 01:58:22 +00:00
replacement : {
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
match : /(let{colorRoleName:\i,colorString:\i,colorStrings:\i,)name:(\i)/ ,
replace : "$1showMeYourNameName:$2=$self.getMemberListProfilesReactionsVoiceNameText({...arguments[0],type:\"membersList\"})??(arguments[0].name)"
2023-04-15 01:58:22 +00:00
}
} ,
2025-07-04 08:54:14 -04:00
{
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
// Replace names in profile popouts.
2026-01-23 09:02:51 -08:00
find : "shouldWrap:!0,loop:!0,inProfile:!0" ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
replacement : {
match : /(tags:\i,)nickname:(\i)/ ,
replace : "$1showMeYourNameNickname:$2=$self.getMemberListProfilesReactionsVoiceNameText({...arguments[0],type:\"profilesPopout\"})??(arguments[0].nickname)"
} ,
} ,
{
// Replace names in the profile tooltip for switching between guild and global profiles.
// You must open a profile modal before the code this is patching will be searchable.
2026-01-23 09:02:51 -08:00
find : 'id:"view-server-profile",' ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
group : true ,
2025-07-04 08:54:14 -04:00
replacement : [
{
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
match : /(displayName:)(\i.\i.getName\(void 0,void 0,\i\))/ ,
replace : "$1$self.getMemberListProfilesReactionsVoiceNameText({user:arguments[0].user,guildId:null,type:\"profilesTooltip\"})??($2)"
2025-07-04 08:54:14 -04:00
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
{
match : /(displayName:)(\i.\i.getName\(\i,\i,\i\))/ ,
replace : "$1$self.getMemberListProfilesReactionsVoiceNameText({user:arguments[0].user,guildId:arguments[0].guildId,type:\"profilesTooltip\"})??($2)"
}
2025-07-04 08:54:14 -04:00
]
} ,
2025-05-01 14:09:40 -04:00
{
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
// Replace names in reaction tooltips.
find : "reactionTooltip1," ,
2025-05-01 14:09:40 -04:00
replacement : {
2026-02-04 15:46:39 -05:00
match : /(\i.\i.getName\((\i),\i\?\.id,(\i)\))/ ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
replace : "$self.getMemberListProfilesReactionsVoiceNameText({user:$3,guildId:$2,type:\"reactionsTooltip\"})??($1)"
}
2025-05-01 14:09:40 -04:00
} ,
{
2026-02-10 14:31:48 -05:00
find : ".MESSAGE,userId:" ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
group : true ,
2025-05-01 14:09:40 -04:00
replacement : [
{
2026-01-23 09:02:51 -08:00
// Track hovering over reaction popouts.
2026-02-10 14:31:48 -05:00
match : /(?<=\(0,\i.\i\)\(\i.\i,{className:\i.\i,)(?=(?:align:\i\.\i\.\i\.CENTER|onContextMenu:\i=>))/g ,
replace : "onMouseEnter:()=>{$self.addHoveringReactionPopout(arguments[0].user.id)},onMouseLeave:()=>{$self.removeHoveringReactionPopout(arguments[0].user.id)},"
2025-05-01 14:09:40 -04:00
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
{
2026-01-23 09:02:51 -08:00
// Replace names in reaction popouts.
2026-02-10 17:56:26 -05:00
match : /(?<=Child,{className:\i.\i,children:)/g ,
2026-01-23 09:02:51 -08:00
replace : "($self.getMemberListProfilesReactionsVoiceNameElement({user:arguments[0].user,guildId:arguments[0].guildId,type:\"reactionsPopout\"}))??"
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
}
2025-05-01 14:30:56 -04:00
]
} ,
2025-07-04 08:54:14 -04:00
{
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
// Replace names in voice channels.
find : ",connectUserDragSource:" ,
2025-07-04 08:54:14 -04:00
replacement : {
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
match : /(serverDeaf:\i,)nick:(\i)/ ,
replace : "$1showMeYourNameVoice:$2=$self.getMemberListProfilesReactionsVoiceNameText({user:arguments[0].user,guildId:arguments[0].channel.guild_id,type:\"voiceChannel\"})??(arguments[0].nick)"
2025-07-04 08:54:14 -04:00
}
}
2023-04-15 01:58:22 +00:00
] ,
2024-06-26 20:59:24 +10:00
2025-11-26 13:32:11 -08:00
async start() {
const data = await DataStore . get < CustomNicknameData > ( "SMYNCustomNicknames" ) ;
customNicknames = data ? ? { } ;
} ,
contextMenus : {
"user-context" : userContextPatch
} ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
flux : {
RELATIONSHIP_UPDATE ( data ) {
// Allows rerendering when changing friend names.
settings . store . triggerNameRerender = ! settings . store . triggerNameRerender ;
} ,
2024-06-26 20:59:24 +10:00
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
RUNNING_STREAMER_TOOLS_CHANGE ( data ) {
// Allows rerendering when toggling streamer mode.
settings . store . triggerNameRerender = ! settings . store . triggerNameRerender ;
} ,
2024-06-26 20:59:24 +10:00
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
ACCESSIBILITY_SYSTEM_PREFERS_REDUCED_MOTION_CHANGED ( data ) {
// Allows rerendering when toggling reduced motion.
settings . store . triggerNameRerender = ! settings . store . triggerNameRerender ;
} ,
2024-06-26 20:59:24 +10:00
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
ACCESSIBILITY_SET_PREFERS_REDUCED_MOTION ( data ) {
// Allows rerendering when toggling reduced motion.
settings . store . triggerNameRerender = ! settings . store . triggerNameRerender ;
2023-04-15 01:58:22 +00:00
}
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
} ,
addHoveringMessage ,
removeHoveringMessage ,
2025-09-08 13:31:16 -07:00
handleHoveringMessage ,
feat(ShowMeYourName): Name Permutations; Streamer Mode; Colors; Etc (#316)
* Added streamer mode detection, 15 name combinations, custom colors & brackets.
* Remove inconsistent reply prefix, update name priority, rearrange.
* Also truncate nick and display in streamer mode if they are equivalent to the username.
* Nick/display duo fallback, username final fallback, + code refactor.
* Modify how overlap between nick, display, and usernames are handled.
* Remove username override & add removeDuplicates setting.
* Make replacing dupes optional, conditionally prioritize username on x_x_user order.
* Fix prefix/suffix color of first name if alwaysShow enabled.
* Add setting to overwrite first name color + modify defaults.
* Borrow sadan's mention feature + fix affix oversight.
* Remove mysterious userOverride.
* Reword plugin description.
* Fix global name overwriting nickname bug + update mention symbol handling.
* Fix some typing and typos.
* Reduce niche settings + switch to string format over dropdown for permutations.
* Fix: Readd userOverride, present for interactions.
* Update with gradient support.
* Remove forgotten log.
* Handle missing GuildMember property.
* Linting.
* Re-add accidentally removed unknown user patch.
* mentionAvatars support.
* Better gradient support for mentions.
* Typo.
* Refactoring.
* Linting.
* Fix percentage not affecting gradient.
* Wrap emojis to prevent gradient (#3446).
* Fix for hook errors.
* Fix falsy validColor check.
* Fix find.
* Fix missing UserStore import.
* Sort fix.
* Patch fix.
* Reply/mention/interaction fix, bot discriminators, fallback improvement.
* Set empty global name field to username for bots if descriminator setting enabled.
* Exclude webhooks and official Discord accounts from discriminator check.
* Fix patch + animation handling.
* Friend names, member list, profiles, vc, reactions, bot discriminators, improved streamer mode + CSS.
* Lint.
* Lint.
* Fix regression removing needed addition to validUser to pass on message props.
* Fix oopsie.
* Adjust authors.
* Top role fix.
* Fix patches.
* Fix patch.
* Fix patches.
* Lint.
* Fix import.
* Fix.
2025-08-01 07:36:29 -07:00
addHoveringReactionPopout ,
removeHoveringReactionPopout ,
getMessageNameText ,
getMessageNameElement ,
getMentionNameElement ,
getMemberListProfilesReactionsVoiceNameText ,
getMemberListProfilesReactionsVoiceNameElement
2023-04-15 01:58:22 +00:00
} ) ;