mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
Converted message arg to consume all consecutive args as a single string
This commit is contained in:
parent
a5aff3da53
commit
e8b672b98e
1 changed files with 4 additions and 4 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue