ODClientManager_Default class
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This is a special class that adds type definitions & typescript to the ODClientManager class. It doesn't add any extra features!
This default class is made for the global variable opendiscord.client!
Properties
inherited activity class ➜ api.ODClientActivityManager
The status manager is responsible for setting the bot status.
inherited client type ➜ discord.Client
The discord.js discord.Client. Only use it when initiated!
inherited initiated boolean ➜ boolean
Is the bot initiated?
inherited intents array ➜ api.ODClientIntents[]
List of required bot intents. Add intents to this list using the onClientLoad event.
inherited loggedIn boolean ➜ boolean
Is the bot logged in?
inherited mainServer type ➜ null|discord.Guild
The main server of the bot. Provided by serverId in the config
inherited partials array ➜ api.ODClientPartials[]
List of required bot partials. Add intents to this list using the onClientLoad event. ❌ Only use when neccessery!
inherited permissions array ➜ api.ODClientPermissions[]
List of required bot permissions. Add permissions to this list using the onClientLoad event.
inherited privileges array ➜ api.ODClientPriviligedIntents[]
List of required bot privileged intents. Add intents to this list using the onClientLoad event.
inherited ready boolean ➜ boolean
Is the bot ready?
inherited readyListener type ➜ null|(() => Promise)
(❌ DO NOT OVERWRITE ❌) Internal Open Ticket function to continue the startup when the client is ready!
inherited rest type ➜ discord.REST
The discord.js REST client. Used for stuff that discord.js can't handle :)
slashCommands class ➜ api.ODSlashCommandManager_Default
The slash command manager is responsible for all slash commands & their events inside the bot.
textCommands class ➜ api.ODTextCommandManager_Default
The text command manager is responsible for all text commands & their events inside the bot.
Methods
constructor() function ➜ api.ODClientManager_Default
(no description)
View Parameters (1)
debug: class ➜api.ODDebugger- Parameter Description Lorem Ipsum.
inherited checkBotInGuild() function ➜ boolean
Check if the bot is in a specific guild
View Parameters (1)
guild: type ➜discord.Guild- Parameter Description Lorem Ipsum.
inherited checkGuildPerms() function ➜ boolean
Check if a specific guild has all required permissions (or Administrator)
View Parameters (1)
guild: type ➜discord.Guild- Parameter Description Lorem Ipsum.
inherited fetchChannel() function ➜ Promise
A simplified shortcut to get a discord.Channel :)
View Parameters (1)
id: string ➜string- Parameter Description Lorem Ipsum.
inherited fetchGuild() function ➜ Promise
A simplified shortcut to get a discord.Guild :)
View Parameters (1)
id: string ➜string- Parameter Description Lorem Ipsum.
inherited fetchGuildCategoryChannel() function ➜ Promise
A simplified shortcut to get a discord.CategoryChannel :)
View Parameters (2)
guildId: type ➜string|discord.Guild- Parameter Description Lorem Ipsum.id: string ➜string- Parameter Description Lorem Ipsum.
inherited fetchGuildChannel() function ➜ Promise
A simplified shortcut to get a discord.GuildBasedChannel :)
View Parameters (2)
guildId: type ➜string|discord.Guild- Parameter Description Lorem Ipsum.id: string ➜string- Parameter Description Lorem Ipsum.
inherited fetchGuildChannelMessage() function ➜ Promise
A simplified shortcut to get a discord.Message :)
View Parameters (3)
guildId: type ➜string|discord.Guild- Parameter Description Lorem Ipsum.channelId: type ➜string|discord.TextChannel- Parameter Description Lorem Ipsum.id: string ➜string- Parameter Description Lorem Ipsum.
inherited fetchGuildMember() function ➜ Promise
A simplified shortcut to get a discord.GuildMember :)
View Parameters (2)
guildId: type ➜string|discord.Guild- Parameter Description Lorem Ipsum.id: string ➜string- Parameter Description Lorem Ipsum.
inherited fetchGuildRole() function ➜ Promise
A simplified shortcut to get a discord.Role :)
View Parameters (2)
guildId: type ➜string|discord.Guild- Parameter Description Lorem Ipsum.id: string ➜string- Parameter Description Lorem Ipsum.
inherited fetchGuildTextChannel() function ➜ Promise
A simplified shortcut to get a discord.TextChannel :)
View Parameters (2)
guildId: type ➜string|discord.Guild- Parameter Description Lorem Ipsum.id: string ➜string- Parameter Description Lorem Ipsum.
inherited fetchUser() function ➜ Promise
A simplified shortcut to get a discord.User :)
View Parameters (1)
id: string ➜string- Parameter Description Lorem Ipsum.
inherited getGuilds() function ➜ discord.Guild[]
Get all servers the bot is part of.
inherited initClient() function ➜ void
Initiate the client variable & add the intents & partials to the bot.
inherited login() function ➜ Promise
Log-in with a discord auth token.
inherited sendUserDm() function ➜ Promise
A simplified shortcut to send a DM to a user :)
View Parameters (2)
user: type ➜string|discord.User- Parameter Description Lorem Ipsum.message: interface ➜api.ODMessageBuildResult- 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!