Class FromCodeAttribute
- Namespace
- DSharpPlus.Commands.ArgumentModifiers
- Assembly
- DSharpPlus.Commands.dll
Removes the need to manually parse code blocks from a string.
[AttributeUsage(AttributeTargets.Parameter)]
public sealed class FromCodeAttribute : Attribute
- Inheritance
-
objectAttributeFromCodeAttribute
Constructors
- FromCodeAttribute(CodeType)
Creates a new FromCodeAttribute with the specified
codeType
.
Fields
- CodeBlockLanguages
A list of default languages from Highlight.Js that Discord uses for their codeblocks.
Properties
- CodeType
The type of code block to accept.