ODPost class
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This is an Open Ticket post class.
A post is just a shortcut to a static discord channel or category. This can be used to get a specific channel over and over again!
This class also contains utilities for sending messages via the Open Ticket builders.
Properties
channel type ➜ null|ChannelType
The discord.js channel
channelId string ➜ string
The discord channel id
inherited id class ➜ api.ODId
The id of this data.
ready boolean ➜ boolean
Is this post already initialized?
Methods
constructor() function ➜ api.ODPost
(no description)
View Parameters (2)
id: type ➜api.ODValidId- Parameter Description Lorem Ipsum.channelId: string ➜string- Parameter Description Lorem Ipsum.
inherited protected _change() function ➜ void
Trigger an onChange() event in the parent ODManager of this class.
inherited changed() function ➜ void
(❌ SYSTEM ONLY!!) Set the callback executed when a value inside this class changes.
init() function ➜ Promise
Initialize the discord.js channel of this post.
send() function ➜ Promise
Send a message to this channel using the Open Ticket builder system
View Parameters (1)
msg: interface ➜api.ODMessageBuildResult- Parameter Description Lorem Ipsum.
setChannelId() function ➜ void
Change the channel id to another channel!
View Parameters (1)
id: string ➜string- Parameter Description Lorem Ipsum.
useGuild() function ➜ void
Use a specific guild in this class for fetching the channel
View Parameters (1)
guild: type ➜null|discord.Guild- Parameter Description Lorem Ipsum.
Defaults
We're still working on this part of the documentation!
Examples
We're still working on this part of the documentation!