Skip to content
Discord-Rankup

init

Initializes the client to use the database

Parameters

ParameterTypeDescriptionRequiredDefault
urlStringThe URL to the MongoDB databaseNone
clientClientThe discord.js clientNone
optionsConnectOptionsThe options to connect to the database{ }

Returns

Promise<Mongoose> - Resolves to this by using Mongoose.connect() if connection succeeded