public Task DeleteMessage(string messageId, string channelId) { if (messageId == null) { throw new ArgumentNullException(nameof(messageId)); } if (channelId == null) { throw new ArgumentNullException(nameof(channelId)); } return(_rest.Delete(Endpoints.ChannelMessage(channelId, messageId))); }
public Task <EditMessageResponse> EditMessage(string messageId, string channelId, string message = null, IEnumerable <string> mentionedUserIds = null) { if (messageId == null) { throw new ArgumentNullException(nameof(messageId)); } if (channelId == null) { throw new ArgumentNullException(nameof(channelId)); } var request = new EditMessageRequest { Content = message, Mentions = mentionedUserIds }; return(_rest.Patch <EditMessageResponse>(Endpoints.ChannelMessage(channelId, messageId), request)); }