Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when starting #98

Closed
mrcsdl opened this issue Feb 2, 2021 · 6 comments
Closed

Error when starting #98

mrcsdl opened this issue Feb 2, 2021 · 6 comments

Comments

@mrcsdl
Copy link

mrcsdl commented Feb 2, 2021

[14:16:57 | WARN] An error was not caught
[14:16:57 | WARN] Uncaught TypeError: Cannot read property 'member' of undefined
[14:16:57 | ERROR] TypeError: Cannot read property 'member' of undefined
at Object.execute (/home/bot/DiscordTickets/src/events/ready.js:37:44)
at Client.client.on (/home/bot/DiscordTickets/src/index.js:130:68)
at Client.emit (events.js:198:13)
at WebSocketManager.triggerClientReady (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketManager.js:431:17)
at WebSocketManager.checkShardsReady (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketManager.js:415:10)
at WebSocketShard.shard.on.unavailableGuilds (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketManager.js:197:14)
at WebSocketShard.emit (events.js:198:13)
at WebSocketShard.checkReady (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketShard.js:475:12)
at WebSocketShard.onPacket (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketShard.js:447:16)
at WebSocketShard.onMessage (/home/bot/DiscordTickets/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)

can someone help me with that? iam using ubuntu
@eartharoid
Copy link
Member

You need to set the required values in your config: configuration.

@mrcsdl
Copy link
Author

mrcsdl commented Feb 2, 2021

i did that, all the required values are
guild server id
staff_role admin id
tickets.category ticket channel id

right?

@eartharoid
Copy link
Member

tickets.category is the ID of a channel category, not an actual text channel.

TypeError: Cannot read property 'member' of undefined means the bot couldn't find a server with the ID in the config. If you have entered the correct ID in the config, check you have invited the bot to your server.

@mrcsdl
Copy link
Author

mrcsdl commented Feb 2, 2021

[14:50:55 | ERROR] TypeError: fields.flat is not a function
at Function.normalizeFields (/home/bot/DiscordTickets/node_modules/discord.js/src/structures/MessageEmbed.js:450:8)
at MessageEmbed.setup (/home/bot/DiscordTickets/node_modules/discord.js/src/structures/MessageEmbed.js:78:91)
at new MessageEmbed (/home/bot/DiscordTickets/node_modules/discord.js/src/structures/MessageEmbed.js:18:10)
at embedLikes.map.e (/home/bot/DiscordTickets/node_modules/discord.js/src/structures/APIMessage.js:166:40)
at Array.map ()
at APIMessage.resolveData (/home/bot/DiscordTickets/node_modules/discord.js/src/structures/APIMessage.js:166:31)
at TextChannel.send (/home/bot/DiscordTickets/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:166:62)
at guild.channels.create.then (/home/bot/DiscordTickets/src/commands/new.js:132:34)
at process._tickCallback (internal/process/next_tick.js:68:7)

now this pops up when i try -help or -new

@eartharoid
Copy link
Member

Update Node.JS to the latest version.

@mrcsdl
Copy link
Author

mrcsdl commented Feb 2, 2021

solved thx

@mrcsdl mrcsdl closed this as completed Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants