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(SlashCommandBuilder): create setDefaultPermission function #19

Closed Fyko closed 3 years ago

Fyko commented 3 years ago

Please describe the changes this PR makes and why it should be merged: This PR creates SlashCommandBuilder#setDefaultPermission.

Status and versioning classification:

codecov-commenter commented 3 years ago

Codecov Report

Merging #19 (dd45da5) into main (2aecbe4) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #19   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        16    +1     
  Lines          144       147    +3     
  Branches        21        17    -4     
=========================================
+ Hits           144       147    +3     
Impacted Files Coverage Δ
src/interactions/slashCommands/Assertions.ts 100.00% <100.00%> (ø)
.../interactions/slashCommands/SlashCommandBuilder.ts 100.00% <100.00%> (ø)
...nteractions/slashCommands/mixins/CommandOptions.ts 100.00% <0.00%> (ø)
...s/slashCommands/mixins/CommandOptionWithChoices.ts 100.00% <0.00%> (ø)
src/interactions/slashCommands/options/number.ts 100.00% <0.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 2aecbe4...dd45da5. Read the comment docs.