Fix user mentions not always working
This commit is contained in:
parent
398a6a0c61
commit
e28af98c6c
|
@ -47,7 +47,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler.RequestStructure
|
||||||
case ParameterType.Remainder:
|
case ParameterType.Remainder:
|
||||||
return $" *(?<{index}>.*)";
|
return $" *(?<{index}>.*)";
|
||||||
case ParameterType.User:
|
case ParameterType.User:
|
||||||
return $" *(?:<@(?<{index}>\\d+)>|(?<{index}>\\d+)(?:$| |\n))";
|
return $" *(?:<@!*(?<{index}>\\d+)>|(?<{index}>\\d+)(?:$| |\n))";
|
||||||
case ParameterType.Timespan:
|
case ParameterType.Timespan:
|
||||||
return $" *(?<{index}>\\d+.*d*[smhd])";
|
return $" *(?<{index}>\\d+.*d*[smhd])";
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue