mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 06:31:20 +00:00
Webpack build for branch custom-structures: 6d53d893a8
This commit is contained in:
parent
0156cda8e1
commit
e855a4b0e4
2 changed files with 2 additions and 2 deletions
|
|
@ -9626,7 +9626,7 @@ class Structures {
|
|||
* }
|
||||
* );
|
||||
*/
|
||||
extend(name, extender) {
|
||||
static extend(name, extender) {
|
||||
if (!structures[name]) throw new RangeError(`"${name}" is not a valid extensible structure.`);
|
||||
if (typeof extender !== 'function') {
|
||||
throw new TypeError('The extender must be a function that returns the extended structure class/prototype.');
|
||||
|
|
|
|||
2
discord.custom-structures.min.js
vendored
2
discord.custom-structures.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue