fix(bot): fix server name format command
Some checks failed
Build and push Docker image / .net docker build (push) Has been cancelled
.net checks / run .net tests (push) Has been cancelled
.net checks / dotnet-format (push) Has been cancelled

This commit is contained in:
asleepyskye 2026-01-01 11:16:27 -05:00
parent f22ba3f0ea
commit 1776902000

View file

@ -645,10 +645,10 @@ public class Config
var clearFlag = ctx.MatchClear(); var clearFlag = ctx.MatchClear();
var format = ctx.MatchFormat(); var format = ctx.MatchFormat();
var guildCfg = await ctx.Repository.GetSystemGuild(ctx.Guild.Id, ctx.System.Id);
// if there's nothing next or what's next is raw/plaintext and we're not clearing, it's a query // if there's nothing next or what's next is raw/plaintext and we're not clearing, it's a query
if ((!ctx.HasNext() || format != ReplyFormat.Standard) && !clearFlag) if ((!ctx.HasNext() || format != ReplyFormat.Standard) && !clearFlag)
{ {
var guildCfg = await ctx.Repository.GetSystemGuild(ctx.Guild.Id, ctx.System.Id);
if (guildCfg.NameFormat == null) if (guildCfg.NameFormat == null)
await ctx.Reply("You do not have a specific name format set for this server and member names are formatted with your global name format."); await ctx.Reply("You do not have a specific name format set for this server and member names are formatted with your global name format.");
else else