1
0
mirror of https://gitlab.com/Deukhoofd/DeukBot4.git synced 2025-09-03 08:07:19 +00:00

Fix user mentions not always working

This commit is contained in:
Deukhoofd 2018-08-12 12:42:20 +02:00
parent 398a6a0c61
commit e28af98c6c
No known key found for this signature in database
GPG Key ID: B4C087AC81641654

View File

@ -47,7 +47,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler.RequestStructure
case ParameterType.Remainder:
return $" *(?<{index}>.*)";
case ParameterType.User:
return $" *(?:<@(?<{index}>\\d+)>|(?<{index}>\\d+)(?:$| |\n))";
return $" *(?:<@!*(?<{index}>\\d+)>|(?<{index}>\\d+)(?:$| |\n))";
case ParameterType.Timespan:
return $" *(?<{index}>\\d+.*d*[smhd])";
default: