Protected
constructorPrivate
_activeunique active helpers, key is member.id
Private
_aftermessage sent to students after they leave
Private
Optional
_loggingoptional, channel where yabob will log message. if undefined, don't log on the server
Private
_queuesKey is CategoryChannel.id of the parent catgory of #queue
Readonly
guildPrivate
queuecached result of getQueueChannels
Private
Readonly
serverKeeps track of all the setTimout/setIntervals we started
Readonly
userAdds a student to the notification group
student to add
which notif group to add to
Send an announcement to all the students in the helper's approved queues
helper that used /announce
announcement body
Optional
targetQueue: QueueChanneloptional, specifies which queue to announce to
Cleans up the given queue and resend all embeds
the queue to clean
Clears the given queue
queue to clear
Closes all the queue that the helper has permission to & logs the help time to console
ServerError: If the helper is not hosting
helper that used /stop
Private
createPrivate
createDequeue the student that has been waiting for the longest
the helper that used /next
Handle /next with arguments
Optional
targetStudentMember: GuildMemberif specified, remove this student and override queue order
Optional
specificQueue: QueueChannelif specified, dequeue from this queue
Attempt to enqueue a student
QueueError: if
student member to enqueue
target queue
Gets all the queue channels on the server. SLOW if nothing is found, returns empty array
whether to read from existing cache, defaults to true
Private
initCreates all the office hour queues
Optional
queueBackups: QueueBackup[]if a backup extension is enabled, this is the queue data to load
Called when a member joins a voice channel
Called when a member leaves a voice channel
Opens all the queue that the helper has permission to
ServerError
helper that used /start
Removes a student from the notification group
student to add
which notif group to remove from
Removes a student from a given queue
QueueError: if
student that used /leave or the cleave button
the queue to leave from
Private
sendOverwrites the existing command help channel and send new help messages
the category named 'Bot Commands Help'
array of embeds to send to each help channel
Sets up queue auto clear for this server
the number of hours to wait before clearing the queue
the number of minutes to wait before clearing the queue
whether to disable auto clear, overrides 'hours'
Sets the serious server flag, and updates the queues if changing from serious to not serious, or vice versa
True if triggered renders for all queues
new value for seriousServer
Static
createAsynchronously creates a YABOB instance for 1 server
a created instance of YABOB
ServerError
discord client user
the server for YABOB to join
Generated using TypeDoc
V2 of AttendingServer. Represents 1 server that this YABOB is a member of