Guest User

Untitled

a guest
Jan 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. using System;
  2. using System.Threading.Tasks;
  3. using Discord.Commands;
  4.  
  5. public class Hidden : PreconditionAttribute
  6. {
  7. public async override Task<PreconditionResult> CheckPermissionsAsync(ICommandContext context, CommandInfo command, IServiceProvider services)
  8. {
  9. await context.Message.DeleteAsync();
  10. return PreconditionResult.FromSuccess();
  11. }
  12. }
Add Comment
Please, Sign In to add comment