diff --git a/src/Core/Interactions/InteractionBase.cs b/src/Core/Interactions/InteractionBase.cs index f2edebc..114cc78 100644 --- a/src/Core/Interactions/InteractionBase.cs +++ b/src/Core/Interactions/InteractionBase.cs @@ -22,7 +22,7 @@ namespace Geekbot.Core.Interactions } public abstract Command GetCommandInfo(); - public abstract Task Exec(InteractionData interaction); + public abstract Task Exec(Interaction interaction); void IInteractionBase.BeforeExecute() => this.BeforeExecute(); void IInteractionBase.AfterExecute() => this.AfterExecute(); diff --git a/src/Core/Interactions/InteractionCommandManager.cs b/src/Core/Interactions/InteractionCommandManager.cs index 7e16e7b..502eba2 100644 --- a/src/Core/Interactions/InteractionCommandManager.cs +++ b/src/Core/Interactions/InteractionCommandManager.cs @@ -41,7 +41,7 @@ namespace Geekbot.Core.Interactions var type = _commands[interaction.Data.Name]; var command = (InteractionBase)Activator.CreateInstance(type); - return await command.Exec(interaction.Data); + return await command.Exec(interaction); } } } \ No newline at end of file