mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Merge branch 'banmsgpatch' into 'v3'
Fix color for ban DMs with plain text ban message. Closes #324 See merge request Kwoth/nadekobot!204
This commit is contained in:
@@ -499,7 +499,9 @@ WHERE GuildId={guildId}
|
|||||||
{
|
{
|
||||||
template = JsonConvert.SerializeObject(new
|
template = JsonConvert.SerializeObject(new
|
||||||
{
|
{
|
||||||
color = _bcs.Data.Color.Error,
|
//To get the decimal version of the color that's expected, take the packed value of the Rgba32
|
||||||
|
//and bitshift it to the right by 8 bits, thereby dropping the "a" and getting a reprensentation of the RGB value
|
||||||
|
color = _bcs.Data.Color.Error.PackedValue >> 8,
|
||||||
description = defaultMessage
|
description = defaultMessage
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -514,7 +516,9 @@ WHERE GuildId={guildId}
|
|||||||
{
|
{
|
||||||
template = JsonConvert.SerializeObject(new
|
template = JsonConvert.SerializeObject(new
|
||||||
{
|
{
|
||||||
color = _bcs.Data.Color.Error,
|
//To get the decimal version of the color that's expected, take the packed value of the Rgba32
|
||||||
|
//and bitshift it to the right by 8 bits, thereby dropping the "a" and getting a reprensentation of the RGB value
|
||||||
|
color = _bcs.Data.Color.Error.PackedValue >> 8,
|
||||||
description = template
|
description = template
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user