Androz2091/discord-giveaways

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

Closed this issue · 3 comments

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

  • discord-giveaways version: 5.0.1
  • discord.js version: 13.3.1
  • Custom Database (if you use one): mongodb (not applicable)

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

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

Ah ok thanks

I'll close this issue since its fixed then