const select = new StringSelectMenuBuilder()
.setCustomId('starter')
.setPlaceholder('Make a selection!')
.addOptions(
new StringSelectMenuOptionBuilder()
.setLabel('Bulbasaur')
.setDescription('The dual-type Grass/Poison Seed Pokémon.')
.setValue('bulbasaur'),
new StringSelectMenuOptionBuilder()
.setLabel('Charmander')
.setDescription('The Fire-type Lizard Pokémon.')
.setValue('charmander'),
new StringSelectMenuOptionBuilder()
.setLabel('Squirtle')
.setDescription('The Water-type Tiny Turtle Pokémon.')
.setValue('squirtle')
)
const row = new ActionRowBuilder().addComponents(select)
await i.reply({
content: 'Choose your starter!',
components: [row],
})```
이런식으로 짰는데 row 부분이
이 호출과 일치하는 오버로드가 없습니다.
오버로드 1/2('(options: InteractionReplyOptions & { fetchReply: true; }): Promise<Message<boolean>>')에서 다음 오류가 발생했습니다.
'ActionRowBuilder<AnyComponentBuilder>' 형식은 'APIActionRowComponent<APIMessageActionRowComponent> | JSONEncodable<APIActionRowComponent<APIMessageActionRowComponent>> | ActionRowData<...>' 형식에 할당할 수 없습니다.
'type' 속성이 'ActionRowBuilder<AnyComponentBuilder>' 형식에 없지만 'ActionRowData<MessageActionRowComponentData | MessageActionRowComponentBuilder>' 형식에서 필수입니다.
오버로드 2/2('(options: string | InteractionReplyOptions | MessagePayload): Promise<InteractionResponse<boolean>>')에서 다음 오류가 발생했습니다.
'ActionRowBuilder<AnyComponentBuilder>' 형식은 'APIActionRowComponent<APIMessageActionRowComponent> | JSONEncodable<APIActionRowComponent<APIMessageActionRowComponent>> | ActionRowData<...>' 형식에 할당할 수 없습니다.ts(2769)
index.d.ts(266, 3): 여기서는 'type'이(가) 선언됩니다.```
라는 에러가 나옵니다