mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 18:07:02 -04:00
fix crash on role edit (#155)
This commit is contained in:
parent
037685bd2b
commit
21e1a960b1
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ export default definePlugin({
|
|||
colorIfServer(a: any): string | undefined {
|
||||
const roleColor = a.author?.colorString ?? "inherit";
|
||||
|
||||
if (a.channel.guild_id && !settings.store.colorInServers) return roleColor;
|
||||
if (a?.channel?.guild_id && !settings.store.colorInServers) return roleColor;
|
||||
|
||||
const color = getCustomColorString(a.message.author.id, true);
|
||||
return color ?? roleColor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue