mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
refactor(Util): make class extend null (#6000)
This commit is contained in:
@@ -11,11 +11,7 @@ const Invite = require('../structures/Invite');
|
||||
* The DataResolver identifies different objects and tries to resolve a specific piece of information from them.
|
||||
* @private
|
||||
*/
|
||||
class DataResolver {
|
||||
constructor() {
|
||||
throw new Error(`The ${this.constructor.name} class may not be instantiated.`);
|
||||
}
|
||||
|
||||
class DataResolver extends null {
|
||||
/**
|
||||
* Data that can be resolved to give an invite code. This can be:
|
||||
* * An invite code
|
||||
|
||||
Reference in New Issue
Block a user