mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Add group name/description/list commands
This commit is contained in:
parent
253ae43c7f
commit
6c5cb8cea7
7 changed files with 152 additions and 6 deletions
|
|
@ -133,6 +133,21 @@ namespace PluralKit.Bot
|
|||
return $"Member not found. Note that a member ID is 5 characters long.";
|
||||
}
|
||||
|
||||
public static string CreateGroupNotFoundError(this Context ctx, string input)
|
||||
{
|
||||
// TODO: does this belong here?
|
||||
if (input.Length == 5)
|
||||
{
|
||||
if (ctx.System != null)
|
||||
return $"Group with ID or name \"{input}\" not found.";
|
||||
return $"Group with ID \"{input}\" not found."; // Accounts without systems can't query by name
|
||||
}
|
||||
|
||||
if (ctx.System != null)
|
||||
return $"Group with name \"{input}\" not found. Note that a group ID is 5 characters long.";
|
||||
return $"Group not found. Note that a group ID is 5 characters long.";
|
||||
}
|
||||
|
||||
public static async Task<DiscordChannel> MatchChannel(this Context ctx)
|
||||
{
|
||||
if (!MentionUtils.TryParseChannel(ctx.PeekArgument(), out var id))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue