From e8b672b98ee19951f3f7a3185be4a4f870e81cd1 Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 17 Oct 2017 18:01:04 -0400 Subject: [PATCH] Converted message arg to consume all consecutive args as a single string --- src/main/cogs/tools.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/cogs/tools.py b/src/main/cogs/tools.py index 6198190..413e80e 100644 --- a/src/main/cogs/tools.py +++ b/src/main/cogs/tools.py @@ -66,13 +66,13 @@ class Utils: pass @send.command(name='guild', aliases=['g', 'server', 's']) - async def send_guild(self, ctx, guild, channel, *message): - await discord.utils.get(self.bot.get_all_channels(), guild__name=guild, name=channel).send(formatter.tostring(message)) + async def send_guild(self, ctx, guild, channel, *, message): + await discord.utils.get(self.bot.get_all_channels(), guild__name=guild, name=channel).send(message) await ctx.message.add_reaction('✅') @send.command(name='user', aliases=['u', 'member', 'm']) - async def send_user(self, ctx, user, *message): - await discord.utils.get(self.bot.get_all_members(), id=int(user)).send(formatter.tostring(message)) + async def send_user(self, ctx, user, *, message): + await discord.utils.get(self.bot.get_all_members(), id=int(user)).send(message) await ctx.message.add_reaction('✅') @commands.command(aliases=['authenticateupload', 'authupload', 'authup', 'auth'])