- removed unused attributes on commands

- Removed some commented out files
This commit is contained in:
Kwoth
2021-06-21 02:24:11 +02:00
parent 49f9b96755
commit 656db01aca
89 changed files with 569 additions and 2918 deletions

View File

@@ -79,7 +79,7 @@ namespace NadekoBot.Modules.Permissions
}, items.Length, 10);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public Task UserBlacklist(int page = 1)
{
@@ -89,7 +89,7 @@ namespace NadekoBot.Modules.Permissions
return ListBlacklistInternal(GetText("blacklisted_users"), BlacklistType.User, page);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public Task ChannelBlacklist(int page = 1)
{
@@ -99,7 +99,7 @@ namespace NadekoBot.Modules.Permissions
return ListBlacklistInternal(GetText("blacklisted_channels"), BlacklistType.Channel, page);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public Task ServerBlacklist(int page = 1)
{
@@ -109,27 +109,27 @@ namespace NadekoBot.Modules.Permissions
return ListBlacklistInternal(GetText("blacklisted_servers"), BlacklistType.Server, page);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public Task UserBlacklist(AddRemove action, ulong id)
=> Blacklist(action, id, BlacklistType.User);
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public Task UserBlacklist(AddRemove action, IUser usr)
=> Blacklist(action, usr.Id, BlacklistType.User);
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public Task ChannelBlacklist(AddRemove action, ulong id)
=> Blacklist(action, id, BlacklistType.Channel);
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public Task ServerBlacklist(AddRemove action, ulong id)
=> Blacklist(action, id, BlacklistType.Server);
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public Task ServerBlacklist(AddRemove action, IGuild guild)
=> Blacklist(action, guild.Id, BlacklistType.Server);

View File

@@ -35,7 +35,7 @@ namespace NadekoBot.Modules.Permissions
_db = db;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task CmdCooldown(CommandOrCrInfo command, int secs)
{
@@ -83,7 +83,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task AllCmdCooldowns()
{

View File

@@ -26,7 +26,7 @@ namespace NadekoBot.Modules.Permissions
_db = db;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.Administrator)]
public async Task FwClear()
@@ -35,7 +35,7 @@ namespace NadekoBot.Modules.Permissions
await ReplyConfirmLocalizedAsync("fw_cleared").ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task SrvrFilterInv()
{
@@ -61,7 +61,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task ChnlFilterInv()
{
@@ -100,7 +100,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task SrvrFilterLin()
{
@@ -126,7 +126,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task ChnlFilterLin()
{
@@ -165,7 +165,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task SrvrFilterWords()
{
@@ -191,7 +191,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task ChnlFilterWords()
{
@@ -230,7 +230,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task FilterWord([Leftover] string word)
{
@@ -272,7 +272,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task LstFilterWords(int page = 1)
{

View File

@@ -24,7 +24,7 @@ namespace NadekoBot.Modules.Permissions
_db = db;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public async Task GlobalPermList()
{
@@ -53,7 +53,7 @@ namespace NadekoBot.Modules.Permissions
await ctx.Channel.EmbedAsync(embed).ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public async Task GlobalModule(ModuleOrCrInfo module)
{
@@ -70,7 +70,7 @@ namespace NadekoBot.Modules.Permissions
await ReplyConfirmLocalizedAsync("gmod_remove", Format.Bold(module.Name)).ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public async Task GlobalCommand(CommandOrCrInfo cmd)
{

View File

@@ -26,7 +26,7 @@ namespace NadekoBot.Modules.Permissions
_db = db;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task Verbose(PermissionAction action = null)
{
@@ -48,7 +48,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.Administrator)]
[Priority(0)]
@@ -85,7 +85,7 @@ namespace NadekoBot.Modules.Permissions
public enum Reset { Reset };
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.Administrator)]
[Priority(1)]
@@ -102,7 +102,7 @@ namespace NadekoBot.Modules.Permissions
await ReplyConfirmLocalizedAsync("permrole_reset").ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task ListPerms(int page = 1)
{
@@ -137,7 +137,7 @@ namespace NadekoBot.Modules.Permissions
await ctx.Channel.SendMessageAsync(toSend).ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task RemovePerm(int index)
{
@@ -167,7 +167,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task MovePerm(int from, int to)
{
@@ -218,7 +218,7 @@ namespace NadekoBot.Modules.Permissions
await ReplyErrorLocalizedAsync("perm_out_of_range").ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task SrvrCmd(CommandOrCrInfo command, PermissionAction action)
{
@@ -246,7 +246,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task SrvrMdl(ModuleOrCrInfo module, PermissionAction action)
{
@@ -273,7 +273,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task UsrCmd(CommandOrCrInfo command, PermissionAction action, [Leftover] IGuildUser user)
{
@@ -303,7 +303,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task UsrMdl(ModuleOrCrInfo module, PermissionAction action, [Leftover] IGuildUser user)
{
@@ -332,7 +332,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task RoleCmd(CommandOrCrInfo command, PermissionAction action, [Leftover] IRole role)
{
@@ -365,7 +365,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task RoleMdl(ModuleOrCrInfo module, PermissionAction action, [Leftover] IRole role)
{
@@ -398,7 +398,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task ChnlCmd(CommandOrCrInfo command, PermissionAction action, [Leftover] ITextChannel chnl)
{
@@ -428,7 +428,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task ChnlMdl(ModuleOrCrInfo module, PermissionAction action, [Leftover] ITextChannel chnl)
{
@@ -457,7 +457,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task AllChnlMdls(PermissionAction action, [Leftover] ITextChannel chnl)
{
@@ -482,7 +482,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task AllRoleMdls(PermissionAction action, [Leftover] IRole role)
{
@@ -510,7 +510,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task AllUsrMdls(PermissionAction action, [Leftover] IUser user)
{
@@ -535,7 +535,7 @@ namespace NadekoBot.Modules.Permissions
}
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
public async Task AllSrvrMdls(PermissionAction action)
{

View File

@@ -20,7 +20,7 @@ namespace NadekoBot.Modules.Permissions
_perms = perms;
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.Administrator)]
public async Task ResetPerms()
@@ -29,7 +29,7 @@ namespace NadekoBot.Modules.Permissions
await ReplyConfirmLocalizedAsync("perms_reset").ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[NadekoCommand, Aliases]
[OwnerOnly]
public async Task ResetGlobalPerms()
{