mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 14:27:54 +00:00
Refactor command system
This commit is contained in:
parent
0ec522ca0a
commit
1988b29fbc
21 changed files with 1353 additions and 882 deletions
|
|
@ -51,7 +51,7 @@ namespace PluralKit.Bot
|
|||
// eg. @Ske [text] => [@Ske text]
|
||||
int matchStartPosition = 0;
|
||||
string leadingMention = null;
|
||||
if (Utils.HasMentionPrefix(message, ref matchStartPosition))
|
||||
if (Utils.HasMentionPrefix(message, ref matchStartPosition, out _))
|
||||
{
|
||||
leadingMention = message.Substring(0, matchStartPosition);
|
||||
message = message.Substring(matchStartPosition);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue