Class BaseExtension
Represents base for all DSharpPlus extensions. To implement your own extension, extend this class, and implement its abstract members.
Inheritance
System.Object
BaseExtension
Namespace: DSharpPlus
Assembly: cs.temp.dll.dll
Syntax
public abstract class BaseExtension
Properties
Client
Gets the instance of DiscordClient this extension is attached to.
Declaration
public DiscordClient Client { get; protected set; }
Property Value
Type | Description |
---|---|
DiscordClient |
Methods
Setup(DiscordClient)
Initializes this extension for given DiscordClient instance.
Declaration
protected abstract void Setup(DiscordClient client)
Parameters
Type | Name | Description |
---|---|---|
DiscordClient | client | Discord client to initialize for. |