public static Task UnpinAsync(this IUserMessage message, IRestRequestOptions options = null, CancellationToken cancellationToken = default) { var client = message.GetRestClient(); return(client.UnpinMessageAsync(message.ChannelId, message.Id, options, cancellationToken)); }
public static Task <IUserMessage> ModifyAsync(this IUserMessage message, Action <ModifyMessageActionProperties> action, IRestRequestOptions options = null, CancellationToken cancellationToken = default) { var client = message.GetRestClient(); return(client.ModifyMessageAsync(message.ChannelId, message.Id, action, options, cancellationToken)); }
public static Task UnpinAsync(this IUserMessage message, IRestRequestOptions options = null) { var client = message.GetRestClient(); return(client.UnpinMessageAsync(message.ChannelId, message.Id, options)); }