mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add a few utility admin commands
Signed-off-by: Ske <voltasalt@gmail.com>
This commit is contained in:
parent
af5de7c892
commit
8740230c3d
9 changed files with 177 additions and 12 deletions
|
|
@ -43,13 +43,11 @@ namespace PluralKit.Bot.Interactive
|
|||
return button;
|
||||
}
|
||||
|
||||
protected async Task Update(InteractionContext ctx, string? content = null, Embed? embed = null)
|
||||
protected async Task Update(InteractionContext ctx)
|
||||
{
|
||||
await ctx.Respond(InteractionResponse.ResponseType.UpdateMessage,
|
||||
new InteractionApplicationCommandCallbackData
|
||||
{
|
||||
Content = content,
|
||||
Embeds = embed != null ? new[] { embed } : null,
|
||||
Components = GetComponents()
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue