PHI
Explore posts from serversSIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
not helpful at all
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
plz
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
can help in error
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
Ready! Logged in as Soda#5947
[INFO] ApplicationCommandRegistries: Initializing...
[ERROR] Encountered error while handling the command application command registry for command "ban" at path "/home/runner/bot/commands/ban.js" CombinedError (4)
Received one or more errors
1 ValidationError > s.nullish
| Expected undefined or null
|
| Received:
| | [ {} ]
2 ValidationError > s.bigint
| Expected a bigint primitive
|
| Received:
| | [ {} ]
3 ValidationError > s.number
| Expected a number primitive
|
| Received:
| | [ {} ]
4 ValidationError > s.string
| Expected a string primitive
|
| Received:
| | [ {} ]
at _UnionValidator.handle (/home/runner/bot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:1854:23)
at _UnionValidator.parse (/home/runner/bot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:939:90)
at validateDefaultMemberPermissions (/home/runner/bot/node_modules/@discordjs/builders/dist/index.js:1639:36)
at MixedClass.setDefaultMemberPermissions (/home/runner/bot/node_modules/@discordjs/builders/dist/index.js:1796:29)
at /home/runner/bot/commands/ban.js:26:10
at Object.normalizeChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/normalizeInputs.cjs:30:5)
at _ApplicationCommandRegistry.registerChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistry.cjs:65:43)
at BanCommand.registerApplicationCommands (/home/runner/bot/commands/ban.js:10:14)
at Object.handleRegistryAPICalls (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs:63:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[INFO] ApplicationCommandRegistries: Took 4ms to initialize.
Ready! Logged in as Soda#5947
[INFO] ApplicationCommandRegistries: Initializing...
[ERROR] Encountered error while handling the command application command registry for command "ban" at path "/home/runner/bot/commands/ban.js" CombinedError (4)
Received one or more errors
1 ValidationError > s.nullish
| Expected undefined or null
|
| Received:
| | [ {} ]
2 ValidationError > s.bigint
| Expected a bigint primitive
|
| Received:
| | [ {} ]
3 ValidationError > s.number
| Expected a number primitive
|
| Received:
| | [ {} ]
4 ValidationError > s.string
| Expected a string primitive
|
| Received:
| | [ {} ]
at _UnionValidator.handle (/home/runner/bot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:1854:23)
at _UnionValidator.parse (/home/runner/bot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:939:90)
at validateDefaultMemberPermissions (/home/runner/bot/node_modules/@discordjs/builders/dist/index.js:1639:36)
at MixedClass.setDefaultMemberPermissions (/home/runner/bot/node_modules/@discordjs/builders/dist/index.js:1796:29)
at /home/runner/bot/commands/ban.js:26:10
at Object.normalizeChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/normalizeInputs.cjs:30:5)
at _ApplicationCommandRegistry.registerChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistry.cjs:65:43)
at BanCommand.registerApplicationCommands (/home/runner/bot/commands/ban.js:10:14)
at Object.handleRegistryAPICalls (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs:63:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[INFO] ApplicationCommandRegistries: Took 4ms to initialize.
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
ok
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
@kyra 🩵🩷🤍🩷🩵 ^
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
now this error
Ready! Logged in as Soda#5947
[INFO] ApplicationCommandRegistries: Initializing...
[ERROR] Encountered error while handling the command application command registry for command "ban" at path "/home/runner/bot/commands/ban.js" CombinedError (4)
Received one or more errors
1 ValidationError > s.nullish
| Expected undefined or null
|
| Received:
| | [ {} ]
2 ValidationError > s.bigint
| Expected a bigint primitive
|
| Received:
| | [ {} ]
3 ValidationError > s.number
| Expected a number primitive
|
| Received:
| | [ {} ]
4 ValidationError > s.string
| Expected a string primitive
|
| Received:
| | [ {} ]
at _UnionValidator.handle (/home/runner/bot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:1854:23)
at _UnionValidator.parse (/home/runner/bot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:939:90)
at validateDefaultMemberPermissions (/home/runner/bot/node_modules/@discordjs/builders/dist/index.js:1639:36)
at MixedClass.setDefaultMemberPermissions (/home/runner/bot/node_modules/@discordjs/builders/dist/index.js:1796:29)
at /home/runner/bot/commands/ban.js:26:10
at Object.normalizeChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/normalizeInputs.cjs:30:5)
at _ApplicationCommandRegistry.registerChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistry.cjs:65:43)
at BanCommand.registerApplicationCommands (/home/runner/bot/commands/ban.js:10:14)
at Object.handleRegistryAPICalls (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs:63:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[INFO] ApplicationCommandRegistries: Took 3ms to initialize.
Ready! Logged in as Soda#5947
[INFO] ApplicationCommandRegistries: Initializing...
[ERROR] Encountered error while handling the command application command registry for command "ban" at path "/home/runner/bot/commands/ban.js" CombinedError (4)
Received one or more errors
1 ValidationError > s.nullish
| Expected undefined or null
|
| Received:
| | [ {} ]
2 ValidationError > s.bigint
| Expected a bigint primitive
|
| Received:
| | [ {} ]
3 ValidationError > s.number
| Expected a number primitive
|
| Received:
| | [ {} ]
4 ValidationError > s.string
| Expected a string primitive
|
| Received:
| | [ {} ]
at _UnionValidator.handle (/home/runner/bot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:1854:23)
at _UnionValidator.parse (/home/runner/bot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:939:90)
at validateDefaultMemberPermissions (/home/runner/bot/node_modules/@discordjs/builders/dist/index.js:1639:36)
at MixedClass.setDefaultMemberPermissions (/home/runner/bot/node_modules/@discordjs/builders/dist/index.js:1796:29)
at /home/runner/bot/commands/ban.js:26:10
at Object.normalizeChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/normalizeInputs.cjs:30:5)
at _ApplicationCommandRegistry.registerChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistry.cjs:65:43)
at BanCommand.registerApplicationCommands (/home/runner/bot/commands/ban.js:10:14)
at Object.handleRegistryAPICalls (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs:63:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[INFO] ApplicationCommandRegistries: Took 3ms to initialize.
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
Ready! Logged in as Soda#5947
[INFO] ApplicationCommandRegistries: Initializing...
[ERROR] Encountered error while handling the command application command registry for command "ban" at path "/home/runner/bot/commands/ban.js" TypeError: builder.setName(...).setDescription(...).addUserOption(...).addStringOption(...).setRequiredPermissions is not a function
at /home/runner/bot/commands/ban.js:26:10
at Object.normalizeChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/normalizeInputs.cjs:30:5)
at _ApplicationCommandRegistry.registerChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistry.cjs:65:43)
at BanCommand.registerApplicationCommands (/home/runner/bot/commands/ban.js:10:14)
at Object.handleRegistryAPICalls (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs:63:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _CoreListener.run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/listeners/CoreReady.cjs:16:5)
at async Object.fromAsync (/home/runner/bot/node_modules/@sapphire/result/dist/cjs/index.cjs:619:22)
at async _CoreListener._run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:27:22)
at async _CoreListener._runOnce (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:31:5)
[INFO] ApplicationCommandRegistries: Took 5ms to initialize.
this error now
Ready! Logged in as Soda#5947
[INFO] ApplicationCommandRegistries: Initializing...
[ERROR] Encountered error while handling the command application command registry for command "ban" at path "/home/runner/bot/commands/ban.js" TypeError: builder.setName(...).setDescription(...).addUserOption(...).addStringOption(...).setRequiredPermissions is not a function
at /home/runner/bot/commands/ban.js:26:10
at Object.normalizeChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/normalizeInputs.cjs:30:5)
at _ApplicationCommandRegistry.registerChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistry.cjs:65:43)
at BanCommand.registerApplicationCommands (/home/runner/bot/commands/ban.js:10:14)
at Object.handleRegistryAPICalls (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs:63:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _CoreListener.run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/listeners/CoreReady.cjs:16:5)
at async Object.fromAsync (/home/runner/bot/node_modules/@sapphire/result/dist/cjs/index.cjs:619:22)
at async _CoreListener._run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:27:22)
at async _CoreListener._runOnce (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:31:5)
[INFO] ApplicationCommandRegistries: Took 5ms to initialize.
this error now
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
@Priyam see code imported already see
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
@Priyam see code imported already
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
how to
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
[ERROR] Encountered error while handling the command application command registry for command "ban" at path "/home/runner/bot/commands/ban.js" ReferenceError: PermissionFlagsBits is not defined
at /home/runner/bot/commands/ban.js:26:34
at Object.normalizeChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/normalizeInputs.cjs:30:5)
at _ApplicationCommandRegistry.registerChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistry.cjs:65:43)
at BanCommand.registerApplicationCommands (/home/runner/bot/commands/ban.js:10:14)
at Object.handleRegistryAPICalls (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs:63:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _CoreListener.run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/listeners/CoreReady.cjs:16:5)
at async Object.fromAsync (/home/runner/bot/node_modules/@sapphire/result/dist/cjs/index.cjs:619:22)
at async _CoreListener._run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:27:22)
at async _CoreListener._runOnce (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:31:5)
[ERROR] Encountered error while handling the command application command registry for command "ban" at path "/home/runner/bot/commands/ban.js" ReferenceError: PermissionFlagsBits is not defined
at /home/runner/bot/commands/ban.js:26:34
at Object.normalizeChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/normalizeInputs.cjs:30:5)
at _ApplicationCommandRegistry.registerChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistry.cjs:65:43)
at BanCommand.registerApplicationCommands (/home/runner/bot/commands/ban.js:10:14)
at Object.handleRegistryAPICalls (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs:63:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _CoreListener.run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/listeners/CoreReady.cjs:16:5)
at async Object.fromAsync (/home/runner/bot/node_modules/@sapphire/result/dist/cjs/index.cjs:619:22)
at async _CoreListener._run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:27:22)
at async _CoreListener._runOnce (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:31:5)
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
still error
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
const { Command } = require("@sapphire/framework");
const { EmbedBuilder, PermissionsFlagsBits } = require("discord.js");
class BanCommand extends Command {
constructor(context, options) {
super(context, { ...options });
}
registerApplicationCommands(registry) {
registry.registerChatInputCommand((builder) =>
builder
.setName("ban")
.setDescription("Ban a member from the server")
.addUserOption((option) =>
option
.setName("member")
.setDescription("The member to ban")
.setRequired(true),
)
.addStringOption((option) =>
option
.setName("reason")
.setDescription("The reason for the ban (optional)")
.setRequired(false),
)
.setRequiredPermissions([PermissionFlagsBits.BanMembers])
);
}
const { Command } = require("@sapphire/framework");
const { EmbedBuilder, PermissionsFlagsBits } = require("discord.js");
class BanCommand extends Command {
constructor(context, options) {
super(context, { ...options });
}
registerApplicationCommands(registry) {
registry.registerChatInputCommand((builder) =>
builder
.setName("ban")
.setDescription("Ban a member from the server")
.addUserOption((option) =>
option
.setName("member")
.setDescription("The member to ban")
.setRequired(true),
)
.addStringOption((option) =>
option
.setName("reason")
.setDescription("The reason for the ban (optional)")
.setRequired(false),
)
.setRequiredPermissions([PermissionFlagsBits.BanMembers])
);
}
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
[ERROR] Encountered error while handling the command application command registry for command "ban" at path "/home/runner/bot/commands/ban.js" ReferenceError: PermissionFlagsBits is not defined
at /home/runner/bot/commands/ban.js:26:34
at Object.normalizeChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/normalizeInputs.cjs:30:5)
at _ApplicationCommandRegistry.registerChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistry.cjs:65:43)
at BanCommand.registerApplicationCommands (/home/runner/bot/commands/ban.js:10:14)
at Object.handleRegistryAPICalls (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs:63:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _CoreListener.run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/listeners/CoreReady.cjs:16:5)
at async Object.fromAsync (/home/runner/bot/node_modules/@sapphire/result/dist/cjs/index.cjs:619:22)
at async _CoreListener._run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:27:22)
at async _CoreListener._runOnce (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:31:5)
[ERROR] Encountered error while handling the command application command registry for command "ban" at path "/home/runner/bot/commands/ban.js" ReferenceError: PermissionFlagsBits is not defined
at /home/runner/bot/commands/ban.js:26:34
at Object.normalizeChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/normalizeInputs.cjs:30:5)
at _ApplicationCommandRegistry.registerChatInputCommand (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistry.cjs:65:43)
at BanCommand.registerApplicationCommands (/home/runner/bot/commands/ban.js:10:14)
at Object.handleRegistryAPICalls (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/utils/application-commands/ApplicationCommandRegistries.cjs:63:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _CoreListener.run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/listeners/CoreReady.cjs:16:5)
at async Object.fromAsync (/home/runner/bot/node_modules/@sapphire/result/dist/cjs/index.cjs:619:22)
at async _CoreListener._run (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:27:22)
at async _CoreListener._runOnce (/home/runner/bot/node_modules/@sapphire/framework/dist/cjs/lib/structures/Listener.cjs:31:5)
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
so how to resolve the error
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
ok
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
see
78 replies
SIASapphire - Imagine a framework
•Created by PHI on 5/19/2024 in #sapphire-support
help needed
{
"name": "nodejs",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@sapphire/framework": "^5.2.1",
"@types/node": "^18.0.6",
"discord-api-types": "^0.37.79",
"discord.js": "^14.15.2"
}
}
{
"name": "nodejs",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@sapphire/framework": "^5.2.1",
"@types/node": "^18.0.6",
"discord-api-types": "^0.37.79",
"discord.js": "^14.15.2"
}
}
78 replies