type CommandComponent … // Handler provides a mock function with given fields: func (_m *CommandComponent) Handler() commands.CommandComponentHandler { … } // ID provides a mock function with given fields: func (_m *CommandComponent) ID() string { … } // Label provides a mock function with given fields: func (_m *CommandComponent) Label() string { … } // Options provides a mock function with given fields: func (_m *CommandComponent) Options() []commands.ComponentOption { … } // Style provides a mock function with given fields: func (_m *CommandComponent) Style() commands.ComponentStyle { … } // Type provides a mock function with given fields: func (_m *CommandComponent) Type() commands.ComponentType { … } // NewCommandComponent creates a new instance of CommandComponent. 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 NewCommandComponent(t interface { … }