if .iam is successfull it will delete command and confirmation after 3 seconds
This commit is contained in:
		| @@ -995,7 +995,6 @@ namespace NadekoBot.Modules.Administration | ||||
|                             await e.Channel.SendMessage("Nobody. (not 100% sure)"); | ||||
|                         else | ||||
|                             await e.Channel.SendMessage("• " + string.Join("\n• ", arr)); | ||||
|  | ||||
|                     }); | ||||
|  | ||||
|             }); | ||||
|   | ||||
| @@ -4,6 +4,7 @@ using NadekoBot.Modules.Permissions.Classes; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace NadekoBot.Modules.Administration.Commands | ||||
| { | ||||
| @@ -121,7 +122,14 @@ namespace NadekoBot.Modules.Administration.Commands | ||||
|                         return; | ||||
|                     } | ||||
|                     await e.User.AddRoles(role).ConfigureAwait(false); | ||||
|                     await e.Channel.SendMessage($":ok:You now have {role.Name} role.").ConfigureAwait(false); | ||||
|                     var msg = await e.Channel.SendMessage($":ok:You now have {role.Name} role.").ConfigureAwait(false); | ||||
|                     await Task.Delay(3000); | ||||
|                     await msg.Delete(); | ||||
|                     try | ||||
|                     { | ||||
|                         await e.Message.Delete(); | ||||
|                     } | ||||
|                     catch { } | ||||
|                 }); | ||||
|  | ||||
|             cgb.CreateCommand(".iamn") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user