Skip to content

Commit

Permalink
Add command and integration types to TodoModule
Browse files Browse the repository at this point in the history
Extended the capabilities of TodoModule to handle interactions within the Guild, Bot Direct Message, and Private Channel contexts. Also added support for the GuildInstall and UserInstall application integration types.
  • Loading branch information
EpicOfficer committed Mar 31, 2024
1 parent 847a74d commit b6f2186
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Blink3.Bot/Modules/TodoModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

namespace Blink3.Bot.Modules;

[CommandContextType(InteractionContextType.Guild, InteractionContextType.BotDm, InteractionContextType.PrivateChannel)]
[IntegrationType(ApplicationIntegrationType.GuildInstall, ApplicationIntegrationType.UserInstall)]
[Group("todo", "Simple todo list")]
public class TodoModule(IUserTodoRepository todoRepository) : BlinkModuleBase<IInteractionContext>
{
Expand Down

0 comments on commit b6f2186

Please sign in to comment.