Removes server-admin requirement for admin commands

This commit is contained in:
benbierens 2023-11-09 11:14:17 +01:00
parent 26ec841db1
commit 84382b4ab4
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
3 changed files with 0 additions and 8 deletions

View File

@ -10,7 +10,6 @@ namespace BiblioTech
public abstract string StartingMessage { get; }
public abstract string Description { get; }
public virtual CommandOption[] Options => Array.Empty<CommandOption>();
public virtual bool IsAdminCommand => false;
public async Task SlashCommandHandler(SocketSlashCommand command)
{

View File

@ -30,12 +30,6 @@ namespace BiblioTech
.WithName(c.Name)
.WithDescription(c.Description);
if (c.IsAdminCommand)
{
builder.WithDefaultPermission(false);
builder.WithDefaultMemberPermissions(GuildPermission.Administrator);
}
foreach (var option in c.Options)
{
builder.AddOption(option.Build());

View File

@ -25,7 +25,6 @@ namespace BiblioTech.Commands
public override string Name => "admin";
public override string StartingMessage => "...";
public override string Description => "Admins only.";
public override bool IsAdminCommand => true;
public override CommandOption[] Options => new CommandOption[]
{