andersfylling / disgord

Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice
BSD 3-Clause "New" or "Revised" License
502 stars 71 forks source link

feat: text input components aka modals #502

Closed beachasaurus-rex closed 1 year ago

beachasaurus-rex commented 1 year ago

Description

I extended existing message component types to allow the creation of text input components, also known as Modals.

MessageComponent.Title is currently only used by text input components.

Text Input Ref

Breaking Change?

no.

The new example shows that changing MessageComponent.Style from ButtonStyle to int is not a breaking change.

Benchmarks

Checklist: