BaseClient
ClassOn this page
BaseClient is a DiscordLua class representing a Discord resource. Obtain it from a manager, an event payload, or the constructor when one is documented below.
Methods
BaseClient:toJSON()
#Serialize this BaseClient into a Lua table suitable for REST or debugging.
Signature
BaseClient:toJSON() Parameters
No parameters.
Returns
any.
Example
local discord = require("discord")
-- object is a BaseClient
object:toJSON()Examples
Obtain this object from a manager, wrap helper, or event payload — it is not constructed directly in typical bot code.
Related APIs
ActionRow · Activity · ActivityInstance · ActivityLocation · AnonymousGuild · ApplicationCommand · ApplicationCommandNumericOptionMinMaxValueMixin · ApplicationCommandOptionBase
Version: discord 1.2.9 · runtime 1.0.0