feat: add command for calling up ids
This commit is contained in:
@@ -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;
|
||||
|
@@ -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}");
|
||||
}
|
||||
}
|
@@ -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}");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user