init
Initializes the client to use the database
Parameters
| Parameter | Type | Description | Required | Default |
|---|---|---|---|---|
| url | String | The URL to the MongoDB database | ✅ | None |
| client | Client | The discord.js client | ✅ | None |
| options | ConnectOptions | The options to connect to the database | ❌ | { } |
Returns
Promise<Mongoose> - Resolves to this by using Mongoose.connect() if connection succeeded