discordjs / voice

Implementation of the Discord Voice API for discord.js and other JS/TS libraries
Apache License 2.0
327 stars 111 forks source link

refactor(Examples): update events and fix compilation errors on newer versions of TypeScript #159

Closed iim-ayush closed 3 years ago

iim-ayush commented 3 years ago

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

image

setTimeout and error Type errors as well as some examples update (interaction and message event)

As we can see in here resolve needs a value argument when resolving a promise.

Status and versioning classification:

Status : Now it is fixed

codecov[bot] commented 3 years ago

Codecov Report

Merging #159 (bf4c1a9) into main (7796a38) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #159   +/-   ##
=======================================
  Coverage   68.65%   68.65%           
=======================================
  Files          19       19           
  Lines         906      906           
  Branches      221      221           
=======================================
  Hits          622      622           
  Misses        282      282           
  Partials        2        2           

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 7796a38...bf4c1a9. Read the comment docs.