discord.js-old-methods

Adds discord.js v11 methods to v12.

Usage no npm install needed!

<script type="module">
  import discordJsOldMethods from 'https://cdn.skypack.dev/discord.js-old-methods';
</script>

README

discord.js-old-methods

A W.I.P. npm package that adds discord.js v11 methods to v12!

USES DISCORD.JS VERSION 12.5.1

The methods discussed here will be added.

Methods Added so Far

Tested methods are marked with a check.

  • ✔ Client.fetchUser

  • ✔ Client.voiceConnections*

  • ✘ ClientUser.createGuild

  • ✘ ClientUser.setGame

  • ✘ Collection.deleteAll

  • ✘ Collection.exists

  • ✔ Guild.ban

  • ✔ Guild.unban

  • ✔ GuildMember.addRole[s]

  • ✔ GuildMember.colorRole*

  • ✔ GuildMember.highestRole*

  • ✔ GuildMember.hoistRole*

  • ✔ GuildMember.removeRole[s]

  • ✔ GuildMember.setRoles

  • ✔ RichEmbed

  • ✘ VoiceBroadcast.playFile

  • ✘ VoiceBroadcast.playStream

  • ✘ VoiceBroadcast.playArbitraryInput

  • ✘ VoiceBroadcast.playBroadcast

  • ✘ VoiceBroadcast.playOpusStream

  • ✘ VoiceBroadcast.playConvertedStream

  • ✘ VoiceConnection.playFile

  • ✘ VoiceConnection.playStream

  • ✘ VoiceConnection.playArbitraryInput

  • ✘ VoiceConnection.playBroadcast

  • ✘ VoiceConnection.playOpusStream

  • ✘ VoiceConnection.playConvertedStream

  • Added .get() to Managers. (no more .cache.get())

Notes

* Must use as function. It is currently not possible for us to make these a string. (submit a PR if you know how)