-͟͟͞ 𝐒𝐏〆 spBripyalt
DIAdiscord.js - Imagine an app
•Created by -͟͟͞ 𝐒𝐏〆 spBripyalt on 11/23/2023 in #djs-questions
Hi I need help how do I make afk command in discord.js v13.16.0 or v13.16.x
Hi
as
I need help I'm new to discord.js
How do I make afk command in discord.js
Here's my code
const { MessageEmbed, Collection } = require("discord.js");
module.exports = {
name: 'afk',
aliases: [],
utilisation: '{prefix}afk',
execute(client, message, args) {
},
};
const { MessageEmbed, Collection } = require("discord.js");
module.exports = {
name: 'afk',
aliases: [],
utilisation: '{prefix}afk',
execute(client, message, args) {
},
};
30 replies
DIAdiscord.js - Imagine an app
•Created by -͟͟͞ 𝐒𝐏〆 spBripyalt on 11/17/2023 in #djs-questions
error
getting an error
[email protected] /home/runner/rgsbro └── [email protected] node js v20.3.1
/home/runner/rgsbro/node_modules/discord.js/src/structures/PermissionOverwrites.js:184
if (!userOrRole) throw new TypeError('INVALID_TYPE', 'parameter', 'User nor a Role');
^
TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role.
at PermissionOverwrites.resolve (/home/runner/rgsbro/node_modules/discord.js/src/structures/PermissionOverwrites.js:184:28)
at /home/runner/rgsbro/node_modules/discord.js/src/managers/GuildChannelManager.js:157:81
at Array.map (<anonymous>)
at GuildChannelManager.create (/home/runner/rgsbro/node_modules/discord.js/src/managers/GuildChannelManager.js:157:51)
at Client.<anonymous> (/home/runner/rgsbro/index.js:106:28)
at Client.emit (node:events:523:35)
at MessageCreateAction.handle (/home/runner/rgsbro/node_modules/discord.js/src/client/actions/MessageCreate.js:26:14)
at module.exports [as MESSAGE_CREATE] (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31)
at WebSocketShard.onPacket (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/WebSocketShard.js:493:22) {
[Symbol(code)]: 'INVALID_TYPE'
}
Node.js v20.3.1
/home/runner/rgsbro/node_modules/discord.js/src/structures/PermissionOverwrites.js:184
if (!userOrRole) throw new TypeError('INVALID_TYPE', 'parameter', 'User nor a Role');
^
TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role.
at PermissionOverwrites.resolve (/home/runner/rgsbro/node_modules/discord.js/src/structures/PermissionOverwrites.js:184:28)
at /home/runner/rgsbro/node_modules/discord.js/src/managers/GuildChannelManager.js:157:81
at Array.map (<anonymous>)
at GuildChannelManager.create (/home/runner/rgsbro/node_modules/discord.js/src/managers/GuildChannelManager.js:157:51)
at Client.<anonymous> (/home/runner/rgsbro/index.js:106:28)
at Client.emit (node:events:523:35)
at MessageCreateAction.handle (/home/runner/rgsbro/node_modules/discord.js/src/client/actions/MessageCreate.js:26:14)
at module.exports [as MESSAGE_CREATE] (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31)
at WebSocketShard.onPacket (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/WebSocketShard.js:493:22) {
[Symbol(code)]: 'INVALID_TYPE'
}
Node.js v20.3.1
35 replies
DIAdiscord.js - Imagine an app
•Created by -͟͟͞ 𝐒𝐏〆 spBripyalt on 11/17/2023 in #djs-questions
error
getting an error
as
/home/runner/rgsbro/node_modules/discord.js/src/structures/PermissionOverwrites.js:184
if (!userOrRole) throw new TypeError('INVALID_TYPE', 'parameter', 'User nor a Role');
^
TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role.
at PermissionOverwrites.resolve (/home/runner/rgsbro/node_modules/discord.js/src/structures/PermissionOverwrites.js:184:28)
at /home/runner/rgsbro/node_modules/discord.js/src/managers/GuildChannelManager.js:157:81
at Array.map (<anonymous>)
at GuildChannelManager.create (/home/runner/rgsbro/node_modules/discord.js/src/managers/GuildChannelManager.js:157:51)
at Client.<anonymous> (/home/runner/rgsbro/index.js:106:28)
at Client.emit (node:events:523:35)
at MessageCreateAction.handle (/home/runner/rgsbro/node_modules/discord.js/src/client/actions/MessageCreate.js:26:14)
at module.exports [as MESSAGE_CREATE] (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31)
at WebSocketShard.onPacket (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/WebSocketShard.js:493:22) {
[Symbol(code)]: 'INVALID_TYPE'
}
Node.js v20.3.1
/home/runner/rgsbro/node_modules/discord.js/src/structures/PermissionOverwrites.js:184
if (!userOrRole) throw new TypeError('INVALID_TYPE', 'parameter', 'User nor a Role');
^
TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role.
at PermissionOverwrites.resolve (/home/runner/rgsbro/node_modules/discord.js/src/structures/PermissionOverwrites.js:184:28)
at /home/runner/rgsbro/node_modules/discord.js/src/managers/GuildChannelManager.js:157:81
at Array.map (<anonymous>)
at GuildChannelManager.create (/home/runner/rgsbro/node_modules/discord.js/src/managers/GuildChannelManager.js:157:51)
at Client.<anonymous> (/home/runner/rgsbro/index.js:106:28)
at Client.emit (node:events:523:35)
at MessageCreateAction.handle (/home/runner/rgsbro/node_modules/discord.js/src/client/actions/MessageCreate.js:26:14)
at module.exports [as MESSAGE_CREATE] (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31)
at WebSocketShard.onPacket (/home/runner/rgsbro/node_modules/discord.js/src/client/websocket/WebSocketShard.js:493:22) {
[Symbol(code)]: 'INVALID_TYPE'
}
Node.js v20.3.1
2 replies