feat(bot): add support for Discord message context commands (#513)
This commit is contained in:
@@ -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>>();
|
||||
|
||||
Reference in New Issue
Block a user