mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(bot): add warnings on setting avatar when proxyavatar is set (#572)
This commit is contained in:
parent
599f0fbc54
commit
d12cd481f6
1 changed files with 7 additions and 2 deletions
|
|
@ -150,12 +150,17 @@ public class MemberAvatar
|
|||
{
|
||||
MemberAvatarLocation.Server =>
|
||||
$" This avatar will now be used when proxying in this server (**{ctx.Guild.Name}**).",
|
||||
MemberAvatarLocation.Member when targetGuildData?.AvatarUrl != null =>
|
||||
$"\n{Emojis.Note} Note that this member *also* has a server-specific avatar set in this server (**{ctx.Guild.Name}**), and thus changing the global avatar will have no effect here.",
|
||||
MemberAvatarLocation.MemberWebhook when targetGuildData?.AvatarUrl != null =>
|
||||
$" This avatar will now be used for this member's proxied messages, instead of their main avatar.\n{Emojis.Note} Note that this member *also* has a server-specific avatar set in this server (**{ctx.Guild.Name}**), and thus changing the global avatar will have no effect here.",
|
||||
MemberAvatarLocation.MemberWebhook =>
|
||||
$" This avatar will now be used for this member's proxied messages, instead of their main avatar.",
|
||||
MemberAvatarLocation.Member when (targetGuildData?.AvatarUrl != null && target.WebhookAvatarUrl != null) =>
|
||||
$"\n{Emojis.Note} Note that this member *also* has a server-specific avatar set in this server (**{ctx.Guild.Name}**), and thus changing the global avatar will have no effect here." +
|
||||
$"\n{Emojis.Note} Note that this member *also* has a proxy avatar set, and thus the global avatar will also have no effect on proxied messages in servers without server-specific avatars.",
|
||||
MemberAvatarLocation.Member when targetGuildData?.AvatarUrl != null =>
|
||||
$"\n{Emojis.Note} Note that this member *also* has a server-specific avatar set in this server (**{ctx.Guild.Name}**), and thus changing the global avatar will have no effect here.",
|
||||
MemberAvatarLocation.Member when target.WebhookAvatarUrl != null =>
|
||||
$"\n{Emojis.Note} Note that this member *also* has a proxy avatar set, and thus changing the global avatar will have no effect on proxied messages.",
|
||||
_ => ""
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue