mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(bot): add support for Discord message context commands (#513)
This commit is contained in:
parent
13c055dc0f
commit
83af1f04a7
23 changed files with 515 additions and 30 deletions
|
|
@ -104,6 +104,10 @@ public class BotModule: Module
|
|||
builder.RegisterType<SystemLink>().AsSelf();
|
||||
builder.RegisterType<SystemList>().AsSelf();
|
||||
|
||||
// Application commands
|
||||
builder.RegisterType<ApplicationCommandTree>().AsSelf();
|
||||
builder.RegisterType<ApplicationCommandProxiedMessage>().AsSelf();
|
||||
|
||||
// Bot core
|
||||
builder.RegisterType<Bot>().AsSelf().SingleInstance();
|
||||
builder.RegisterType<MessageCreated>().As<IEventHandler<MessageCreateEvent>>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue