Table of Contents

Constructor DefaultPrefixResolver

Namespace
DSharpPlus.Commands.Processors.TextCommands.Parsing
Assembly
DSharpPlus.Commands.dll

DefaultPrefixResolver(bool, params string[])

Default prefix resolver

public DefaultPrefixResolver(bool allowMention, params string[] prefix)

Parameters

allowMention bool

Set wether mentioning the bot will count as a prefix

prefix string[]

A list of prefixes which will trigger commands

Exceptions

ArgumentException

Is thrown when no prefix is provided or any prefix is null or whitespace only