feat: invite management commands
This commit is contained in:
parent
32732d74d0
commit
5a2bd7388c
6 changed files with 310 additions and 13 deletions
|
|
@ -1,6 +1,10 @@
|
|||
using System.Drawing;
|
||||
using Remora.Discord.API;
|
||||
using Remora.Discord.API.Abstractions.Objects;
|
||||
using Remora.Discord.API.Objects;
|
||||
using Remora.Discord.Commands.Feedback.Services;
|
||||
using Remora.Discord.Pagination;
|
||||
using Remora.Discord.Pagination.Extensions;
|
||||
using Remora.Rest.Core;
|
||||
|
||||
namespace Catalogger.Backend.Bot;
|
||||
|
|
@ -14,4 +18,17 @@ public static class DiscordUtils
|
|||
public static readonly Color Green = Color.FromArgb(46, 204, 113);
|
||||
public static readonly Color Blue = Color.FromArgb(52, 152, 219);
|
||||
public static readonly Color Orange = Color.FromArgb(230, 126, 34);
|
||||
|
||||
public static List<Embed> PaginateFields(
|
||||
IEnumerable<IEmbedField> fields,
|
||||
Optional<string> title = default,
|
||||
string description = "",
|
||||
uint fieldsPerPage = 6
|
||||
) =>
|
||||
PageFactory.FromFields(
|
||||
fields,
|
||||
fieldsPerPage,
|
||||
description,
|
||||
new Embed(Title: title, Colour: Purple)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue