diff --git a/src/Discord.Net.Rest/Entities/Channels/RestDMChannel.cs b/src/Discord.Net.Rest/Entities/Channels/RestDMChannel.cs index fa3dae82b..9d866220d 100644 --- a/src/Discord.Net.Rest/Entities/Channels/RestDMChannel.cs +++ b/src/Discord.Net.Rest/Entities/Channels/RestDMChannel.cs @@ -63,11 +63,11 @@ namespace Discord.Rest public Task> GetPinnedMessagesAsync(RequestOptions options = null) => ChannelHelper.GetPinnedMessagesAsync(this, Discord, null, options); - public Task SendMessageAsync(string text, bool isTTS, RequestOptions options = null) + public Task SendMessageAsync(string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, null, options); - public Task SendFileAsync(string filePath, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(string filePath, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, null, options); - public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, null, options); public Task DeleteMessagesAsync(IEnumerable messages, RequestOptions options = null) diff --git a/src/Discord.Net.Rest/Entities/Channels/RestGroupChannel.cs b/src/Discord.Net.Rest/Entities/Channels/RestGroupChannel.cs index 0868568cd..bb840ece4 100644 --- a/src/Discord.Net.Rest/Entities/Channels/RestGroupChannel.cs +++ b/src/Discord.Net.Rest/Entities/Channels/RestGroupChannel.cs @@ -76,11 +76,11 @@ namespace Discord.Rest public Task> GetPinnedMessagesAsync(RequestOptions options = null) => ChannelHelper.GetPinnedMessagesAsync(this, Discord, null, options); - public Task SendMessageAsync(string text, bool isTTS, RequestOptions options = null) + public Task SendMessageAsync(string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, null, options); - public Task SendFileAsync(string filePath, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(string filePath, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, null, options); - public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, null, options); public Task DeleteMessagesAsync(IEnumerable messages, RequestOptions options = null) diff --git a/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs b/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs index 35ba91f02..4a617517e 100644 --- a/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs +++ b/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs @@ -55,11 +55,11 @@ namespace Discord.Rest public Task> GetPinnedMessagesAsync(RequestOptions options = null) => ChannelHelper.GetPinnedMessagesAsync(this, Discord, null, options); - public Task SendMessageAsync(string text, bool isTTS, RequestOptions options = null) + public Task SendMessageAsync(string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, null, options); - public Task SendFileAsync(string filePath, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(string filePath, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, null, options); - public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, null, options); public Task DeleteMessagesAsync(IEnumerable messages, RequestOptions options = null) diff --git a/src/Discord.Net.Rpc/Entities/Channels/RpcDMChannel.cs b/src/Discord.Net.Rpc/Entities/Channels/RpcDMChannel.cs index fc67e3084..3df04b320 100644 --- a/src/Discord.Net.Rpc/Entities/Channels/RpcDMChannel.cs +++ b/src/Discord.Net.Rpc/Entities/Channels/RpcDMChannel.cs @@ -44,11 +44,11 @@ namespace Discord.Rpc public Task> GetPinnedMessagesAsync(RequestOptions options = null) => ChannelHelper.GetPinnedMessagesAsync(this, Discord, null, options); - public Task SendMessageAsync(string text, bool isTTS, RequestOptions options = null) + public Task SendMessageAsync(string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, null, options); - public Task SendFileAsync(string filePath, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(string filePath, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, null, options); - public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, null, options); public Task DeleteMessagesAsync(IEnumerable messages, RequestOptions options = null) diff --git a/src/Discord.Net.Rpc/Entities/Channels/RpcGroupChannel.cs b/src/Discord.Net.Rpc/Entities/Channels/RpcGroupChannel.cs index deffc7e14..d88847067 100644 --- a/src/Discord.Net.Rpc/Entities/Channels/RpcGroupChannel.cs +++ b/src/Discord.Net.Rpc/Entities/Channels/RpcGroupChannel.cs @@ -46,11 +46,11 @@ namespace Discord.Rpc public Task> GetPinnedMessagesAsync(RequestOptions options = null) => ChannelHelper.GetPinnedMessagesAsync(this, Discord, null, options); - public Task SendMessageAsync(string text, bool isTTS, RequestOptions options = null) + public Task SendMessageAsync(string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, null, options); - public Task SendFileAsync(string filePath, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(string filePath, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, null, options); - public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, null, options); public Task DeleteMessagesAsync(IEnumerable messages, RequestOptions options = null) diff --git a/src/Discord.Net.Rpc/Entities/Channels/RpcTextChannel.cs b/src/Discord.Net.Rpc/Entities/Channels/RpcTextChannel.cs index b29d392f5..e6e3d3e48 100644 --- a/src/Discord.Net.Rpc/Entities/Channels/RpcTextChannel.cs +++ b/src/Discord.Net.Rpc/Entities/Channels/RpcTextChannel.cs @@ -49,11 +49,11 @@ namespace Discord.Rpc public Task> GetPinnedMessagesAsync(RequestOptions options = null) => ChannelHelper.GetPinnedMessagesAsync(this, Discord, null, options); - public Task SendMessageAsync(string text, bool isTTS, RequestOptions options = null) + public Task SendMessageAsync(string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, null, options); - public Task SendFileAsync(string filePath, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(string filePath, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, null, options); - public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, null, options); public Task DeleteMessagesAsync(IEnumerable messages, RequestOptions options = null) diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketDMChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketDMChannel.cs index 1e20f12d8..4da4139d0 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketDMChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketDMChannel.cs @@ -66,11 +66,11 @@ namespace Discord.WebSocket public Task> GetPinnedMessagesAsync(RequestOptions options = null) => ChannelHelper.GetPinnedMessagesAsync(this, Discord, null, options); - public Task SendMessageAsync(string text, bool isTTS, RequestOptions options = null) + public Task SendMessageAsync(string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, null, options); - public Task SendFileAsync(string filePath, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(string filePath, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, null, options); - public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, null, options); public Task DeleteMessagesAsync(IEnumerable messages, RequestOptions options = null) diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketGroupChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketGroupChannel.cs index 450460d8b..3b47a8452 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketGroupChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketGroupChannel.cs @@ -89,11 +89,11 @@ namespace Discord.WebSocket public Task> GetPinnedMessagesAsync(RequestOptions options = null) => ChannelHelper.GetPinnedMessagesAsync(this, Discord, null, options); - public Task SendMessageAsync(string text, bool isTTS, RequestOptions options = null) + public Task SendMessageAsync(string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, null, options); - public Task SendFileAsync(string filePath, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(string filePath, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, null, options); - public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, null, options); public Task DeleteMessagesAsync(IEnumerable messages, RequestOptions options = null) diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs index dddecbad5..8dff22232 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs @@ -72,11 +72,11 @@ namespace Discord.WebSocket public Task> GetPinnedMessagesAsync(RequestOptions options = null) => ChannelHelper.GetPinnedMessagesAsync(this, Discord, Guild, options); - public Task SendMessageAsync(string text, bool isTTS, RequestOptions options = null) + public Task SendMessageAsync(string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendMessageAsync(this, Discord, text, isTTS, Guild, options); - public Task SendFileAsync(string filePath, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(string filePath, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, filePath, text, isTTS, Guild, options); - public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS, RequestOptions options = null) + public Task SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, RequestOptions options = null) => ChannelHelper.SendFileAsync(this, Discord, stream, filename, text, isTTS, Guild, options); public Task DeleteMessagesAsync(IEnumerable messages, RequestOptions options = null)