mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix(bot): make tag enforcement check name formatting
This commit is contained in:
parent
a8c90cea8e
commit
b26ca69071
2 changed files with 28 additions and 4 deletions
|
|
@ -125,11 +125,17 @@ public class ProxyService
|
|||
|
||||
if (ctx.RequireSystemTag)
|
||||
{
|
||||
var tag = ctx.SystemGuildTag ?? ctx.SystemTag;
|
||||
if (tag == null)
|
||||
return "This server requires PluralKit users to have a system tag, but you do not have one set.";
|
||||
if (!ctx.TagEnabled)
|
||||
return "This server requires PluralKit users to have a system tag, but your system tag is disabled in this server.";
|
||||
{
|
||||
return "This server requires PluralKit users to have a system tag, but your system tag is disabled in this server. " +
|
||||
"Use `pk;s servertag -enable` to enable it for this server.";
|
||||
}
|
||||
|
||||
if (!ctx.HasProxyableTag())
|
||||
{
|
||||
return "This server requires PluralKit users to have a system tag, but you do not have one set. " +
|
||||
"A system tag can be set for all servers with `pk;s tag`, or for just this server with `pk;s servertag`.";
|
||||
}
|
||||
}
|
||||
|
||||
var guild = await _cache.GetGuild(channel.GuildId.Value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue