From c1ba5e8dc0ca937f487c591c44b400a7c3a0520f Mon Sep 17 00:00:00 2001 From: Siwoo Jeon Date: Sat, 28 Sep 2024 17:57:48 +0900 Subject: [PATCH] chore: Update dokdo --- package.json | 4 ++-- src/listeners/messageCreate.ts | 4 ++-- yarn.lock | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 51eade9..f09f3c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "muffinbot", - "version": "4.0.0-pudding.d240928c", + "version": "4.0.0-pudding.d240928d", "main": "dist/index.js", "private": true, "dependencies": { @@ -12,7 +12,7 @@ "@sapphire/utilities": "^3.17.0", "discord-api-types": "^0.37.100", "discord.js": "^14.16.2", - "dokdo": "^0.6.2", + "dokdo": "^1.0.1", "dotenv": "^16.4.5", "mysql2": "^3.11.3", "semver": "^7.6.3", diff --git a/src/listeners/messageCreate.ts b/src/listeners/messageCreate.ts index 0d8c5f0..eae9e15 100644 --- a/src/listeners/messageCreate.ts +++ b/src/listeners/messageCreate.ts @@ -1,12 +1,12 @@ import { Listener, container } from '@sapphire/framework' import { type Message } from 'discord.js' import { noPerm } from '../modules' -import Dokdo from 'dokdo' +import { Client } from 'dokdo' class MessageCreateListener extends Listener { public async run(msg: Message) { const prefix = this.container.prefix - const dokdo = new Dokdo(this.container.client, { + const dokdo = new Client(this.container.client, { aliases: ['dokdo', 'dok'], owners: [this.container.config.bot.owner_ID], prefix: prefix, diff --git a/yarn.lock b/yarn.lock index 1d71525..59263e8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1721,14 +1721,14 @@ __metadata: languageName: node linkType: hard -"dokdo@npm:^0.6.2": - version: 0.6.2 - resolution: "dokdo@npm:0.6.2" +"dokdo@npm:^1.0.1": + version: 1.0.1 + resolution: "dokdo@npm:1.0.1" dependencies: - node-fetch: "npm:^2.6.1" + node-fetch: "npm:^2.6.7" peerDependencies: - discord.js: ^14.0.0 - checksum: 10c0/0d3c4026c47058c8e1337d289b25201dbdcfaaf15749726519aaa6cac736fa2a575990b454e17141dc2566da8b6202a5fce5cd7385bf3cb60cafcce692cca97c + discord.js: 14 + checksum: 10c0/bf7ea23c9aa4c6397d857cc53fb4b8adc1213cfa2b63755dcf067a8cd341640a5af9fd7d9c861989430a11144908f1c4210140b1834787a8bd6b13f80967867a languageName: node linkType: hard @@ -2915,7 +2915,7 @@ __metadata: cross-env: "npm:^7.0.3" discord-api-types: "npm:^0.37.100" discord.js: "npm:^14.16.2" - dokdo: "npm:^0.6.2" + dokdo: "npm:^1.0.1" dotenv: "npm:^16.4.5" eslint: "npm:^9.11.0" eslint-config-prettier: "npm:^9.1.0" @@ -2982,7 +2982,7 @@ __metadata: languageName: node linkType: hard -"node-fetch@npm:^2.6.1": +"node-fetch@npm:^2.6.7": version: 2.7.0 resolution: "node-fetch@npm:2.7.0" dependencies: