mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +00:00
fix looking up private group descriptions
This commit is contained in:
parent
5a649d7751
commit
06c0e05396
1 changed files with 3 additions and 0 deletions
|
|
@ -153,6 +153,9 @@ namespace PluralKit.Bot
|
||||||
}
|
}
|
||||||
else if (!ctx.HasNext())
|
else if (!ctx.HasNext())
|
||||||
{
|
{
|
||||||
|
if (!target.DescriptionPrivacy.CanAccess(ctx.LookupContextFor(target.System)))
|
||||||
|
throw Errors.LookupNotAllowed;
|
||||||
|
|
||||||
if (target.Description == null)
|
if (target.Description == null)
|
||||||
if (ctx.System?.Id == target.System)
|
if (ctx.System?.Id == target.System)
|
||||||
await ctx.Reply($"This group does not have a description set. To set one, type `pk;group {target.Reference()} description <description>`.");
|
await ctx.Reply($"This group does not have a description set. To set one, type `pk;group {target.Reference()} description <description>`.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue