Skip to content

Commit fe251c3

Browse files
authored
fix: button retrieval in class is unreachable when using mixin (#3)
1 parent b5c5cd7 commit fe251c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/api/interactive-components.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ final class FooCommand with Component implements CommandDefinition {
233233
// [!code --]
234234
final button = MyButton();
235235
// [!code ++]
236-
final button = client.components.get('button::test');
236+
final button = components.get('button::test');
237237
238238
final builder = MessageComponentBuilder()
239239
..text('# Hello from World')

0 commit comments

Comments
 (0)