File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -127,10 +127,10 @@ describe('Section', () => {
127
127
const section = new SectionBuilder ( )
128
128
. addTextDisplayComponents ( new TextDisplayBuilder ( ) . setContent ( 'Hello world' ) )
129
129
. setPrimaryButtonAccessory ( {
130
- type : ComponentType . Button as const ,
131
- style : ButtonStyle . Primary as const ,
130
+ type : ComponentType . Button ,
131
+ style : ButtonStyle . Primary ,
132
132
custom_id : 'click_me' ,
133
- lLabel : 'Click me' ,
133
+ label : 'Click me' ,
134
134
} ) ;
135
135
136
136
expect ( section . toJSON ( ) ) . toEqual ( {
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ import type {
5
5
APIThumbnailComponent ,
6
6
APIButtonComponentWithSKUId ,
7
7
APIButtonComponentWithURL ,
8
+ ButtonStyle ,
8
9
} from 'discord-api-types/v10' ;
9
10
import { ComponentType } from 'discord-api-types/v10' ;
10
- import type { ButtonStyle } from 'discord-api-types/v8' ;
11
11
import { normalizeArray , type RestOrArray } from '../../util/normalizeArray.js' ;
12
12
import { resolveBuilder } from '../../util/resolveBuilder.js' ;
13
13
import { validate } from '../../util/validation.js' ;
You can’t perform that action at this time.
0 commit comments