./Ticker
./Ticker
SIASapphire - Imagine a framework
Created by ./Ticker on 5/6/2024 in #discordjs-support
Question about developing in TypeScript
I am thinking of switching, i know now what I'm going to do my weekend 😀
8 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/23/2024 in #sapphire-support
Scheduled Tasks with Common JS
got it, thanks
7 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/23/2024 in #sapphire-support
Scheduled Tasks with Common JS
No description
7 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/17/2024 in #sapphire-support
Is there a way to make precondition in interaction be ephemeral?
Gotchu, thanks!
14 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/17/2024 in #sapphire-support
Is there a way to make precondition in interaction be ephemeral?
oh so we do a listener for that?
14 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/17/2024 in #sapphire-support
Is there a way to make precondition in interaction be ephemeral?
lemme check that one sec
14 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/17/2024 in #sapphire-support
Is there a way to make precondition in interaction be ephemeral?
yeah lmao
14 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/17/2024 in #sapphire-support
Is there a way to make precondition in interaction be ephemeral?
yeah, but in the example you guys gave in the CLI there is no interaction reply, you do this.error. Reference:
const { AllFlowsPrecondition } = require('@sapphire/framework');
const { owners } = require('../config.json');

const message = 'This command can only be used by the owner.';
class UserPrecondition extends AllFlowsPrecondition {
/**
* @param {import('discord.js').CommandInteraction} interaction
*/
chatInputRun(interaction) {
return this.doOwnerCheck(interaction.user.id);
}

/**
* @param {import('discord.js').ContextMenuCommandInteraction} interaction
*/
contextMenuRun(interaction) {
return this.doOwnerCheck(interaction.user.id);
}

/**
* @param {import('discord.js').Message} message
*/
messageRun(message) {
return this.doOwnerCheck(message.author.id);
}

/**
* @param {import('discord.js').Snowflake} userId
*/
doOwnerCheck(userId) {
return owners.includes(userId) ? this.ok() : this.error({ message });
}
}

module.exports = {
UserPrecondition
};
const { AllFlowsPrecondition } = require('@sapphire/framework');
const { owners } = require('../config.json');

const message = 'This command can only be used by the owner.';
class UserPrecondition extends AllFlowsPrecondition {
/**
* @param {import('discord.js').CommandInteraction} interaction
*/
chatInputRun(interaction) {
return this.doOwnerCheck(interaction.user.id);
}

/**
* @param {import('discord.js').ContextMenuCommandInteraction} interaction
*/
contextMenuRun(interaction) {
return this.doOwnerCheck(interaction.user.id);
}

/**
* @param {import('discord.js').Message} message
*/
messageRun(message) {
return this.doOwnerCheck(message.author.id);
}

/**
* @param {import('discord.js').Snowflake} userId
*/
doOwnerCheck(userId) {
return owners.includes(userId) ? this.ok() : this.error({ message });
}
}

module.exports = {
UserPrecondition
};
14 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/17/2024 in #sapphire-support
Is there a way to make precondition in interaction be ephemeral?
where?
14 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/16/2024 in #discordjs-support
Bot not starting in VPS
I had to contact my VPS provider (aws) and ask them to give me a new IP address, works like a charm now
5 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/8/2024 in #sapphire-support
Paginated Message Bug
Cause it is a good possibility
23 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/8/2024 in #sapphire-support
Paginated Message Bug
Putting his answer as the solution though
23 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/8/2024 in #sapphire-support
Paginated Message Bug
IDK what happened
23 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/8/2024 in #sapphire-support
Paginated Message Bug
I did, I just reinstalled sapphire and it worked as usual
23 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/8/2024 in #sapphire-support
Paginated Message Bug
Yes?
23 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/8/2024 in #sapphire-support
Paginated Message Bug
like that from the CLI
23 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 3/8/2024 in #sapphire-support
Paginated Message Bug
This is the default one, I didn't intend on using it but it's like that
23 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 2/19/2024 in #sapphire-support
Cannot find module
Heya, seems that the issue might still exist?
Error when loading '/home/ubuntu/src/commands/General/eval.js': Error: Cannot find module '/home/ubuntu/node_modules/@sapphire/type/prebuild/type-node-v120-linux-x64-glibc-2.35/type.node'
Require stack:
- /home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs
- /home/ubuntu/src/commands/General/eval.js
- /home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/lib/strategies/LoaderStrategy.cjs
- /home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs
- /home/ubuntu/node_modules/@sapphire/framework/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/lib/Logger.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/register.cjs
- /home/ubuntu/src/lib/setup.js
- /home/ubuntu/src/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1149:15)
at Module._load (node:internal/modules/cjs/loader:990:27)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs:27:46)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Module.require (node:internal/modules/cjs/loader:1237:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs',
'/home/ubuntu/src/commands/General/eval.js',
'/home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/lib/strategies/LoaderStrategy.cjs',
'/home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs',
'/home/ubuntu/node_modules/@sapphire/framework/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/lib/Logger.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/register.cjs',
'/home/ubuntu/src/lib/setup.js',
'/home/ubuntu/src/index.js'
]
}
Error when loading '/home/ubuntu/src/commands/General/eval.js': Error: Cannot find module '/home/ubuntu/node_modules/@sapphire/type/prebuild/type-node-v120-linux-x64-glibc-2.35/type.node'
Require stack:
- /home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs
- /home/ubuntu/src/commands/General/eval.js
- /home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/lib/strategies/LoaderStrategy.cjs
- /home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs
- /home/ubuntu/node_modules/@sapphire/framework/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/lib/Logger.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/index.cjs
- /home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/register.cjs
- /home/ubuntu/src/lib/setup.js
- /home/ubuntu/src/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1149:15)
at Module._load (node:internal/modules/cjs/loader:990:27)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs:27:46)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Module.require (node:internal/modules/cjs/loader:1237:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/ubuntu/node_modules/@sapphire/type/dist/cjs/index.cjs',
'/home/ubuntu/src/commands/General/eval.js',
'/home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/lib/strategies/LoaderStrategy.cjs',
'/home/ubuntu/node_modules/@sapphire/pieces/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs',
'/home/ubuntu/node_modules/@sapphire/framework/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/lib/Logger.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/index.cjs',
'/home/ubuntu/node_modules/@sapphire/plugin-logger/dist/cjs/register.cjs',
'/home/ubuntu/src/lib/setup.js',
'/home/ubuntu/src/index.js'
]
}
8 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 2/19/2024 in #sapphire-support
Cannot find module
:989600801687220315:
8 replies
SIASapphire - Imagine a framework
Created by ./Ticker on 2/19/2024 in #sapphire-support
Cannot find module
Got it, thanks!
8 replies