Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading.Tasks;
- using Discord.Commands;
- public class Hidden : PreconditionAttribute
- {
- public async override Task<PreconditionResult> CheckPermissionsAsync(ICommandContext context, CommandInfo command, IServiceProvider services)
- {
- await context.Message.DeleteAsync();
- return PreconditionResult.FromSuccess();
- }
- }
Add Comment
Please, Sign In to add comment