feat: add command for calling up ids

This commit is contained in:
Jake Fulmine
2022-08-27 13:52:50 +02:00
parent ccac0a9203
commit cd14e6409b
6 changed files with 30 additions and 0 deletions

View File

@@ -577,6 +577,11 @@ public class Groups
await ctx.Reply($"{Emojis.Success} Group deleted.");
}
public async Task DisplayId(Context ctx, PKGroup target)
{
await ctx.Reply($"{target.Hid}");
}
private async Task<PKSystem> GetGroupSystem(Context ctx, PKGroup target)
{
var system = ctx.System;

View File

@@ -140,4 +140,9 @@ public class Member
.Description($"*{scream}*");
await ctx.Reply(embed: eb.Build());
}
public async Task DisplayId(Context ctx, PKMember target)
{
await ctx.Reply($"{target.Hid}");
}
}

View File

@@ -33,4 +33,12 @@ public class System
await ctx.Reply(
$"{Emojis.Success} Your system has been created. Type `pk;system` to view it, and type `pk;system help` for more information about commands you can use now. Now that you have that set up, check out the getting started guide on setting up members and proxies: <https://pluralkit.me/start>");
}
public async Task DisplayId(Context ctx, PKSystem target)
{
if (target == null)
throw Errors.NoSystemError;
await ctx.Reply($"{target.Hid}");
}
}