Skip to content

Commit 1e62dd0

Browse files
committed
fix test modules
1 parent 522e1fb commit 1e62dd0

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

test/modules/button-pagination.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import { CommandType } from "reciple";
1010
export const pages = ['Page1', new EmbedBuilder().setTitle('Page2').setColor('Random'), { content: 'Page3', embeds: [{ title: 'This is page 3' }] }];
1111

1212
/**
13-
* @type {import("reciple").RecipleModuleScript}
13+
* @type {import("reciple").RecipleModuleData}
1414
*/
1515
export default {
16-
versions: ['^7'],
16+
versions: ['^8'],
1717
commands: [
1818
{
19-
commandType: CommandType.SlashCommand,
19+
command_type: CommandType.SlashCommand,
2020
name: 'pagination',
2121
description: 'Button pagination testing',
2222
async execute({ interaction }) {
@@ -58,7 +58,7 @@ export default {
5858
}
5959
}
6060
],
61-
async onStart(client) {
61+
async onStart() {
6262
return true;
6363
}
6464
}

test/modules/giveaways.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ms from "ms";
2-
import { RecipleClient, SlashCommandBuilder } from "reciple";
2+
import { SlashCommandBuilder } from "reciple";
33
import { GiveawayManager, MongodbDatabaseAdapter, Sqlite3DatabaseAdapter } from '@falloutstudios/djs-giveaways';
44
import { ChatInputCommandInteraction, userMention } from "discord.js";
55
import { InteractionListenerType } from "reciple-interaction-events";
@@ -9,7 +9,7 @@ import { fileURLToPath } from "url";
99
// @ts-check
1010

1111
export class Giveaways {
12-
versions = '^7';
12+
versions = '^8';
1313
/**
1414
* @type {GiveawayManager<MongodbDatabaseAdapter>|null}
1515
*/
@@ -99,9 +99,9 @@ export class Giveaways {
9999

100100
/**
101101
*
102-
* @param {RecipleClient} client
102+
* @param {import("reciple").RecipleModuleStartData} param0
103103
*/
104-
onStart(client) {
104+
onStart({ client }) {
105105
this.giveaways = new GiveawayManager({
106106
client,
107107
databaseAdapter: new Sqlite3DatabaseAdapter({
@@ -114,9 +114,9 @@ export class Giveaways {
114114

115115
/**
116116
*
117-
* @param {RecipleClient} client
117+
* @param {import("reciple").RecipleModuleLoadData} param0
118118
*/
119-
async onLoad(client) {
119+
async onLoad({ client }) {
120120
this.giveaways.on('error', console.log);
121121

122122
await this.giveaways.start();

test/modules/meme.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { ButtonStyle, ComponentType, EmbedBuilder } from "discord.js";
44
import { CommandType } from "reciple";
55

66
/**
7-
* @type {import("reciple").RecipleModuleScript}
7+
* @type {import("reciple").RecipleModuleData}
88
*/
99
export default {
10-
versions: ['^7'],
10+
versions: ['^8'],
1111
commands: [
1212
{
13-
commandType: CommandType.SlashCommand,
13+
command_type: CommandType.SlashCommand,
1414
name: 'meme',
1515
description: 'Some random memes from the internet',
1616
execute: async ({ interaction }) => {

test/modules/reaction-pagination.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { pages } from "./button-pagination.js";
44
import { ReactionPaginationBuilder } from "@falloutstudios/djs-pagination";
55

66
/**
7-
* @type {import("reciple").RecipleModuleScript}
7+
* @type {import("reciple").RecipleModuleData}
88
*/
99
export default {
10-
versions: ['^7'],
10+
versions: ['^8'],
1111
commands: [
1212
{
13-
commandType: CommandType.MessageCommand,
13+
command_type: CommandType.MessageCommand,
1414
name: 'pagination',
1515
description: 'Reaction pagination',
1616
async execute({ message }) {

test/modules/scam-links.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ import { DiscordScamLinks } from '@falloutstudios/djs-scam-links';
33
import { codeBlock } from 'discord.js';
44

55
/**
6-
* @type {import('reciple').RecipleModuleScript & { links: DiscordScamLinks }}
6+
* @type {import('reciple').RecipleModuleData & { links: DiscordScamLinks }}
77
*/
88
export default {
9-
versions: ['^7'],
9+
versions: ['^8'],
1010
links: new DiscordScamLinks(),
1111

12-
async onStart(client) {
12+
async onStart({ client }) {
1313
return true;
1414
},
1515

16-
async onLoad(client) {
16+
async onLoad({ client }) {
1717
client.on('messageCreate', async message => {
1818
if (message.author.bot || message.author.system || !message.content) return;
1919

0 commit comments

Comments
 (0)