mirror of
https://github.com/danbulant/discord.js
synced 2026-06-03 14:51:44 +00:00
docs(Structures): note about extending prior to instantiating client (#2884)
This commit is contained in:
parent
f2ed93c08a
commit
db3ae0159b
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ class Structures {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extends a structure.
|
* Extends a structure.
|
||||||
|
* <warn> Make sure to extend all structures before instantiating your client.
|
||||||
|
* Extending after doing so may not work as expected. </warn>
|
||||||
* @param {string} structure Name of the structure class to extend
|
* @param {string} structure Name of the structure class to extend
|
||||||
* @param {Function} extender Function that takes the base class to extend as its only parameter and returns the
|
* @param {Function} extender Function that takes the base class to extend as its only parameter and returns the
|
||||||
* extended class/prototype
|
* extended class/prototype
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue