mirror of
https://github.com/Equicord/Equicord.git
synced 2025-03-30 12:11:58 -04:00
IrcColors: Dont color wumpus in Role Settings (#3272)
This commit is contained in:
parent
16910c95ad
commit
d178dcc480
1 changed files with 6 additions and 2 deletions
|
@ -81,9 +81,13 @@ export default definePlugin({
|
|||
],
|
||||
|
||||
calculateNameColorForMessageContext(context: any) {
|
||||
const id = context?.message?.author?.id;
|
||||
const userId: string | undefined = context?.message?.author?.id;
|
||||
const colorString = context?.author?.colorString;
|
||||
const color = calculateNameColorForUser(id);
|
||||
const color = calculateNameColorForUser(userId);
|
||||
|
||||
// Color preview in role settings
|
||||
if (context?.message?.channel_id === "1337" && userId === "313337")
|
||||
return colorString;
|
||||
|
||||
if (settings.store.applyColorOnlyInDms && !context?.channel?.isPrivate()) {
|
||||
return colorString;
|
||||
|
|
Loading…
Add table
Reference in a new issue