fix(chat): avoid uint32 cast when setting embed color
This commit is contained in:
parent
68d8aea6e7
commit
d804e0271c
1 changed files with 1 additions and 1 deletions
|
|
@ -532,7 +532,7 @@ func (ml *messagesList) drawEmbeds(builder *tview.LineBuilder, message discord.M
|
|||
embedContentLines := make([]tview.Line, 0, len(lines)*2)
|
||||
barStyle := defaultBarStyle
|
||||
if embed.Color != discord.NullColor && embed.Color != 0 {
|
||||
barStyle = barStyle.Foreground(tcell.NewHexColor(int32(embed.Color.Uint32())))
|
||||
barStyle = barStyle.Foreground(tcell.NewHexColor(int32(embed.Color)))
|
||||
}
|
||||
prefix := tview.NewSegment(prefixText, barStyle)
|
||||
builder.NewLine()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue