discordjs / builders

A collection of builders that you can use when creating your bot.
Apache License 2.0
97 stars 37 forks source link

feat: Add Components #63

Open suneettipirneni opened 2 years ago

suneettipirneni commented 2 years ago

Please describe the changes this PR makes and why it should be merged:

Adds SelectMenuComponent, ButtonComponent and ActionRow<T>

Status and versioning classification:

codecov-commenter commented 2 years ago

Codecov Report

Merging #63 (d0b22b0) into main (b5d0b15) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##              main       #63    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           21        27     +6     
  Lines          306       423   +117     
  Branches        42        51     +9     
==========================================
+ Hits           306       423   +117     
Impacted Files Coverage Δ
src/components/ActionRow.ts 100.00% <100.00%> (ø)
src/components/Assertions.ts 100.00% <100.00%> (ø)
src/components/Button.ts 100.00% <100.00%> (ø)
src/components/Components.ts 100.00% <100.00%> (ø)
src/components/selectMenu/SelectMenu.ts 100.00% <100.00%> (ø)
src/components/selectMenu/SelectMenuOption.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b5d0b15...d0b22b0. Read the comment docs.