Skip to content
This repository was archived by the owner on Oct 5, 2025. It is now read-only.

Commit 1fa2480

Browse files
AstrydaxJiralite
andauthored
fix: Update keyv imports (#1625)
Co-authored-by: Jiralite <[email protected]>
1 parent 728bcd1 commit 1fa2480

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

code-samples/keyv/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Keyv = require('keyv');
1+
const { Keyv } = require('keyv');
22
const { Client, Events, GatewayIntentBits } = require('discord.js');
33
const { globalPrefix, token } = require('./config.json');
44

guide/keyv/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Create an instance of Keyv once you've installed Keyv and any necessary drivers.
7272

7373
<!-- eslint-skip -->
7474
```js
75-
const Keyv = require('keyv');
75+
const { Keyv } = require('keyv');
7676

7777
// One of the following
7878
const keyv = new Keyv(); // for in-memory storage
@@ -122,7 +122,7 @@ This section will still work with any provider supported by Keyv. We recommend P
122122
### Setup
123123

124124
```js
125-
const Keyv = require('keyv');
125+
const { Keyv } = require('keyv');
126126
const { Client, Events, GatewayIntentBits } = require('discord.js');
127127
const { globalPrefix, token } = require('./config.json');
128128

0 commit comments

Comments
 (0)