type CommandHandler … // Flags provides a mock function with given fields: func (_m *CommandHandler) Flags() discordgo.MessageFlags { … } // Handle provides a mock function with given fields: activation func (_m *CommandHandler) Handle(activation commands.CommandActivation) { … } // NewCommandHandler creates a new instance of CommandHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewCommandHandler(t interface { … }