mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(bot): add new guild settings command
This commit is contained in:
parent
f0436332c0
commit
0473bd8f01
15 changed files with 179 additions and 15 deletions
|
|
@ -123,6 +123,15 @@ public class ProxyService
|
|||
return "PluralKit cannot proxy messages over 2000 characters in length.";
|
||||
}
|
||||
|
||||
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.";
|
||||
}
|
||||
|
||||
var guild = await _cache.GetGuild(channel.GuildId.Value);
|
||||
var fileSizeLimit = guild.FileSizeLimit();
|
||||
var bytesThreshold = fileSizeLimit * 1024 * 1024;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue