From 557450fefaabecb5775e32945de274fc7e46c14a Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 12 Oct 2016 06:31:59 +0200 Subject: [PATCH] Greet messages will now correctly show if no parameter is supplied --- .../Modules/Administration/Commands/ServerGreetCommands.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Commands/ServerGreetCommands.cs b/src/NadekoBot/Modules/Administration/Commands/ServerGreetCommands.cs index 0d5561a0..6409e4c0 100644 --- a/src/NadekoBot/Modules/Administration/Commands/ServerGreetCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/ServerGreetCommands.cs @@ -163,7 +163,7 @@ namespace NadekoBot.Modules.Administration [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] - public async Task GreetMsg(IUserMessage umsg, [Remainder] string text) + public async Task GreetMsg(IUserMessage umsg, [Remainder] string text = null) { var channel = (ITextChannel)umsg.Channel; @@ -214,7 +214,7 @@ namespace NadekoBot.Modules.Administration [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] - public async Task GreetDmMsg(IUserMessage umsg, [Remainder] string text) + public async Task GreetDmMsg(IUserMessage umsg, [Remainder] string text = null) { var channel = (ITextChannel)umsg.Channel; @@ -266,7 +266,7 @@ namespace NadekoBot.Modules.Administration [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.ManageGuild)] - public async Task ByeMsg(IUserMessage umsg, [Remainder] string text) + public async Task ByeMsg(IUserMessage umsg, [Remainder] string text = null) { var channel = (ITextChannel)umsg.Channel;