mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
check for null pronouns in ShowPronouns always
This commit is contained in:
parent
5a6d03ca1a
commit
9fbd68d0af
1 changed files with 6 additions and 6 deletions
|
|
@ -158,12 +158,12 @@ public class MemberEdit
|
||||||
if (ctx.System?.Id == target.System)
|
if (ctx.System?.Id == target.System)
|
||||||
noPronounsSetMessage += $" To set some, type `{ctx.DefaultPrefix}member {target.Reference(ctx)} pronouns <pronouns>`.";
|
noPronounsSetMessage += $" To set some, type `{ctx.DefaultPrefix}member {target.Reference(ctx)} pronouns <pronouns>`.";
|
||||||
|
|
||||||
if (format != ReplyFormat.Standard)
|
// check for null since we are doing a query
|
||||||
if (target.Pronouns == null)
|
if (target.Pronouns == null)
|
||||||
{
|
{
|
||||||
await ctx.Reply(noPronounsSetMessage);
|
await ctx.Reply(noPronounsSetMessage);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (format == ReplyFormat.Raw)
|
if (format == ReplyFormat.Raw)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue