private static Task OnMessageDeleted(Cacheable <IMessage, ulong> arg1, ISocketMessageChannel arg2) { Core.Log.Write(Core.Log.Type.CHAT, "Message " + arg1.Id + " in " + arg2.GetPath() + " has been deleted."); return(Task.CompletedTask); }
private static Task OnReactionAdded(Cacheable <IUserMessage, ulong> arg1, ISocketMessageChannel arg2, SocketReaction arg3) { Core.Log.Write(Core.Log.Type.CHAT, "Message " + arg1.Id + " in " + arg2.GetPath() + " had a reaction " + arg3.Emote.Name + " added by " + arg3.User.Value?.ToStringOrNull() + "."); return(Task.CompletedTask); }
private static Task OnMessageUpdated(Cacheable <IMessage, ulong> arg1, SocketMessage arg2, ISocketMessageChannel arg3) { Core.Log.Write(Core.Log.Type.CHAT, "Message " + arg1.Id + " in " + arg3.GetPath() + " has been updated to " + arg2?.Content.ToStringOrNull() + "."); return(Task.CompletedTask); }
private static Task OnReactionsCleared(Cacheable <IUserMessage, ulong> arg1, ISocketMessageChannel arg2) { Core.Log.Write(Core.Log.Type.CHAT, "Message " + arg1.Id + " in " + arg2.GetPath() + " had reactions cleared."); return(Task.CompletedTask); }