Skip to content

Conversation

@TenDRILLL
Copy link
Contributor

@TenDRILLL TenDRILLL commented Nov 10, 2022

This pull request adds support for Modals.

Additions:

  • ActionRow
  • ActionRowComponent
  • Modal
  • ModalActionRowComponent
  • ModalSubmitComponent
  • ModalSubmitInteraction
  • TextInputComponent

Edits:

  • Add showModal() to CommandInteraction

@vercel
Copy link

vercel bot commented Nov 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
disploy-docs ✅ Ready (Inspect) Visit Preview Nov 14, 2022 at 7:49PM (UTC)

@tristancamejo tristancamejo added packages:disploy structures Keeping our structures inline with the Discord API labels Nov 10, 2022
@tristancamejo tristancamejo added this to the v1.0.0 milestone Nov 10, 2022
@TenDRILLL
Copy link
Contributor Author

This PR is missing ModalSubmitInteraction, I request to hold the Merge until it's been added,
for this PR to provide full functionality with Modals. Review of previous commits can be done prior to the addition.

@tristancamejo
Copy link
Member

This PR is missing ModalSubmitInteraction, I request to hold the Merge until it's been added,
for this PR to provide full functionality with Modals. Review of previous commits can be done prior to the addition.

I’ll convert it to a draft for you

@tristancamejo tristancamejo marked this pull request as draft November 10, 2022 04:03
@TenDRILLL
Copy link
Contributor Author

Issues:
src/structs/ActionRow.ts(7,13): error TS6133: 'type' is declared but its value is never read.

src/structs/ModalSubmitInteraction.ts(11,29): error TS2339: Property 'custom_id' does not exist on type 'APIModalSubmitInteraction'.
src/structs/ModalSubmitInteraction.ts(12,31): error TS2339: Property 'components' does not exist on type 'APIModalSubmitInteraction'.

What should I use instead of APIModalSubmitInteraction?

@TenDRILLL TenDRILLL marked this pull request as ready for review November 10, 2022 21:28
TenDRILLL and others added 2 commits November 11, 2022 00:14
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com>
# Conflicts:
#	packages/disploy/src/structs/Modal.ts
@TenDRILLL
Copy link
Contributor Author

Issues: src/structs/ActionRow.ts(7,13): error TS6133: 'type' is declared but its value is never read.

src/structs/ModalSubmitInteraction.ts(11,29): error TS2339: Property 'custom_id' does not exist on type 'APIModalSubmitInteraction'. src/structs/ModalSubmitInteraction.ts(12,31): error TS2339: Property 'components' does not exist on type 'APIModalSubmitInteraction'.

What should I use instead of APIModalSubmitInteraction?

This still requires assistance.

@TenDRILLL
Copy link
Contributor Author

Also require help with implementing the ModalSubmitInteraction to Router.

@tristancamejo tristancamejo changed the base branch from main to feat/message-components November 14, 2022 08:06
Copy link
Member

@tristancamejo tristancamejo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Address requested changes and pass CI.

@tristancamejo
Copy link
Member

I’ll be merging this to another branch for other people to finish implementing message components (handling modals, buttons, etc) then I’ll be merging to main.

That’s after you address the requested changes though.

Thanks ❤️

@TenDRILLL
Copy link
Contributor Author

Changes requested added, and CI passes.

@tristancamejo tristancamejo merged commit 72e1e12 into Disploy:feat/message-components Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages:disploy structures Keeping our structures inline with the Discord API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants