mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +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.
|
||||
* <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 {Function} extender Function that takes the base class to extend as its only parameter and returns the
|
||||
* extended class/prototype
|
||||
|
||||
Reference in New Issue
Block a user