Table of Contents

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 DiscordMessage

Message to check.

user DiscordUser

User to check for.

Returns

int

Positive number if the prefix is present, -1 otherwise.