@@ -60,7 +60,7 @@ namespace Discord.Rest | |||||
var model = await Discord.ApiClient.GetChannelMessageAsync(Channel.Id, Id, options).ConfigureAwait(false); | var model = await Discord.ApiClient.GetChannelMessageAsync(Channel.Id, Id, options).ConfigureAwait(false); | ||||
Update(model); | Update(model); | ||||
} | } | ||||
public Task DeleteAsync(RequestOptions options) | |||||
public Task DeleteAsync(RequestOptions options = null) | |||||
=> MessageHelper.DeleteAsync(this, Discord, options); | => MessageHelper.DeleteAsync(this, Discord, options); | ||||
public override string ToString() => Content; | public override string ToString() => Content; | ||||
@@ -58,7 +58,7 @@ namespace Discord.Rpc | |||||
AuthorColor = new Color(Convert.ToUInt32(model.AuthorColor.Value.Substring(1), 16)); | AuthorColor = new Color(Convert.ToUInt32(model.AuthorColor.Value.Substring(1), 16)); | ||||
} | } | ||||
public Task DeleteAsync(RequestOptions options) | |||||
public Task DeleteAsync(RequestOptions options = null) | |||||
=> MessageHelper.DeleteAsync(this, Discord, options); | => MessageHelper.DeleteAsync(this, Discord, options); | ||||
public override string ToString() => Content; | public override string ToString() => Content; | ||||
@@ -54,7 +54,7 @@ namespace Discord.WebSocket | |||||
Content = model.Content.Value; | Content = model.Content.Value; | ||||
} | } | ||||
public Task DeleteAsync(RequestOptions options) | |||||
public Task DeleteAsync(RequestOptions options = null) | |||||
=> MessageHelper.DeleteAsync(this, Discord, options); | => MessageHelper.DeleteAsync(this, Discord, options); | ||||
public override string ToString() => Content; | public override string ToString() => Content; | ||||