Method GetMentionPrefixLength
- Namespace
- DisCatSharp.CommandsNext
- Assembly
- DisCatSharp.CommandsNext.dll
GetMentionPrefixLength(DiscordMessage, DiscordUser)
Checks whether the message contains a specified mention prefix.
public static int GetMentionPrefixLength(this DiscordMessage msg, DiscordUser user)
Parameters
msg
DiscordMessageMessage to check.
user
DiscordUserUser to check for.
Returns
- int
Positive number if the prefix is present, -1 otherwise.