Table of Contents

Method ResolvePrefixAsync

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

ResolvePrefixAsync(CommandsExtension, DiscordMessage)

Resolves the prefix for the command.

public ValueTask<int> ResolvePrefixAsync(CommandsExtension extension, DiscordMessage message)

Parameters

extension CommandsExtension

The commands extension.

message DiscordMessage

The message to resolve the prefix for.

Returns

ValueTask<int>

An integer representing the length of the prefix.