mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 13:57:54 +00:00
feat: guild-specific name format
This commit is contained in:
parent
da4c05d4ed
commit
ec6cbb2a64
11 changed files with 75 additions and 5 deletions
|
|
@ -9,7 +9,7 @@ public static class MessageContextExt
|
|||
if (!ctx.TagEnabled || tag == null)
|
||||
return false;
|
||||
|
||||
var format = ctx.NameFormat ?? ProxyMember.DefaultFormat;
|
||||
var format = ctx.GuildNameFormat ?? ctx.NameFormat ?? ProxyMember.DefaultFormat;
|
||||
if (!format.Contains("{tag}"))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue