mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
docs(Structures): note about extending prior to instantiating client (#2884)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user