Androz2091 / discord-giveaways

🎉 Complete framework to facilitate the creation of giveaways using discord.js
https://discord-giveaways.js.org
MIT License
335 stars 127 forks source link

Replace usage of deprecated `String.prototype#substr` method #415

Closed Compositr closed 2 years ago

Compositr commented 2 years ago

Describe the bug

String.prototype#substr is a deprecated method and should be replaced with String.prototype#substring see MDN

Error

n/a

To Reproduce

Look around the code for String.prototype#substr

Expected behavior

Remove deprecated methods

Screenshots

Example of usage: image

Additional context

Add any other context about the problem here. n/a

imranbarbhuiya commented 2 years ago

It's fixed in Develop branch and will be released soon.

Compositr commented 2 years ago

Ah ok thanks

Compositr commented 2 years ago

I'll close this issue since its fixed then