[commands] Don't skip whitespace if the command trigger is found.
This commit is contained in:
parent
2c6126c2a1
commit
8c6eeeed5f
@ -202,7 +202,6 @@ class Bot(GroupMixin, discord.Client):
|
|||||||
if not view.skip_string(prefix):
|
if not view.skip_string(prefix):
|
||||||
return
|
return
|
||||||
|
|
||||||
view.skip_ws()
|
|
||||||
invoker = view.get_word()
|
invoker = view.get_word()
|
||||||
tmp = {
|
tmp = {
|
||||||
'bot': self,
|
'bot': self,
|
||||||
@ -212,6 +211,7 @@ class Bot(GroupMixin, discord.Client):
|
|||||||
}
|
}
|
||||||
ctx = Context(**tmp)
|
ctx = Context(**tmp)
|
||||||
del tmp
|
del tmp
|
||||||
|
|
||||||
if invoker in self.commands:
|
if invoker in self.commands:
|
||||||
command = self.commands[invoker]
|
command = self.commands[invoker]
|
||||||
ctx.command = command
|
ctx.command = command
|
||||||
|
Loading…
x
Reference in New Issue
Block a user