Last active
January 20, 2017 05:10
-
-
Save MarkusG/d405e0102dd72f53bc5e2df5dd39c566 to your computer and use it in GitHub Desktop.
Discord.Net 0.9 String Prefix Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x.CustomPrefixHandler = (m) => | |
{ | |
if (m.RawText.StartsWith(yourPrefixHere)) | |
return yourPrefixHere.Length; | |
return -1; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment