.alias notification (x => y) will get deleted after 1.5s now
This commit is contained in:
		| @@ -58,7 +58,18 @@ namespace NadekoBot.Modules.Utility.Services | ||||
|             Trigger: {1} | ||||
|             Mapping: {2}", guild.Id, input, newInput); | ||||
|  | ||||
|                         try { await channel.SendConfirmAsync($"{input} => {newInput}").ConfigureAwait(false); } catch { } | ||||
|                         try | ||||
|                         { | ||||
|                             var toDelete = await channel.SendConfirmAsync($"{input} => {newInput}").ConfigureAwait(false); | ||||
|                             var _ = Task.Run(async () => | ||||
|                             { | ||||
|                                 await Task.Delay(1500); | ||||
|                                 await toDelete.DeleteAsync(new RequestOptions() { | ||||
|                                     RetryMode = RetryMode.AlwaysRetry | ||||
|                                 }); | ||||
|                             }); | ||||
|                         } | ||||
|                         catch { } | ||||
|                         return newInput; | ||||
|                     } | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user