Skip to content

Commit

Permalink
docs(paginatedmessage): fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Apr 27, 2023
1 parent 5d9a56a commit c080740
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -362,7 +362,7 @@ export class PaginatedMessage {
* style: 'PRIMARY',
* label: 'My Button',
* customId: 'custom_button',
* type: Constants.MessageComponentTypes.BUTTON,
* type: ComponentType.Button,
* run: (context) => console.log(context)
* }
* ], true);
Expand All @@ -379,7 +379,7 @@ export class PaginatedMessage {
* label: 'Sapphire Website',
* emoji: '🔷',
* url: 'https://sapphirejs.dev',
* type: Constants.MessageComponentTypes.BUTTON
* type: ComponentType.Button
* }
* ], true);
* ```
Expand All @@ -392,7 +392,7 @@ export class PaginatedMessage {
* display.setActions([
* {
* customId: 'custom_menu',
* type: Constants.MessageComponentTypes.SELECT_MENU,
* type: ComponentType.StringSelect,
* run: (context) => console.log(context) // Do something here
* }
* ], true);
Expand Down
Expand Up @@ -67,7 +67,7 @@ export interface PaginatedMessageActionLink extends LinkButtonComponentData {}
* ```typescript
* const StopAction: PaginatedMessageActionMenu {
* customId: 'CustomSelectMenu',
* type: Constants.MessageComponentTypes.SELECT_MENU,
* type: ComponentType.StringSelect,
* run: ({ handler, interaction }) => interaction.isSelectMenu() && (handler.index = parseInt(interaction.values[0], 10))
* }
* ```
Expand Down

0 comments on commit c080740

Please sign in to comment.