π–₯‚ PixelFire π–₯‚
π–₯‚ PixelFire π–₯‚
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by π–₯‚ PixelFire π–₯‚ on 5/29/2024 in #djs-questions
DiscordJS V14 not catching Event "MessageCreate"
const { Client, GatewayIntentBits, Message } = require('discord.js');
const { token } = require('./config.json');

const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.DirectMessages, GatewayIntentBits.MessageContent] });

client.on("ready", function(){
console.log(`the client becomes ready to start`);
console.log(`I am ready! Logged in as ${client.user.tag}!`);
});

client.on("messageCreate", function(message){
console.log(`a message was created`);
console.log({message});
});


client.login(token);
const { Client, GatewayIntentBits, Message } = require('discord.js');
const { token } = require('./config.json');

const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.DirectMessages, GatewayIntentBits.MessageContent] });

client.on("ready", function(){
console.log(`the client becomes ready to start`);
console.log(`I am ready! Logged in as ${client.user.tag}!`);
});

client.on("messageCreate", function(message){
console.log(`a message was created`);
console.log({message});
});


client.login(token);
34 replies
RRailway
Created by π–₯‚ PixelFire π–₯‚ on 5/29/2024 in #βœ‹ο½œhelp
DiscordJS V 14 Not able to receive data for MessageCreate
const { Client, GatewayIntentBits, Message } = require('discord.js');
const { token } = require('./config.json');

const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.DirectMessages, GatewayIntentBits.MessageContent] });

client.on("ready", function(){
console.log(`the client becomes ready to start`);
console.log(`I am ready! Logged in as ${client.user.tag}!`);
});

client.on("messageCreate", function(message){
console.log(`a message was created`);
console.log({message});
});


client.login(token);
const { Client, GatewayIntentBits, Message } = require('discord.js');
const { token } = require('./config.json');

const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.DirectMessages, GatewayIntentBits.MessageContent] });

client.on("ready", function(){
console.log(`the client becomes ready to start`);
console.log(`I am ready! Logged in as ${client.user.tag}!`);
});

client.on("messageCreate", function(message){
console.log(`a message was created`);
console.log({message});
});


client.login(token);
I am able to get any other event but anything that has to do with messages just won't work.
27 replies
RRailway
Created by π–₯‚ PixelFire π–₯‚ on 3/18/2024 in #βœ‹ο½œhelp
Need help with Timezones js
Railway is hosted somewhere else so the Date.now() is showing for somewhere else, how can I fix this?
8 replies
RRailway
Created by π–₯‚ PixelFire π–₯‚ on 2/11/2024 in #βœ‹ο½œhelp
Buying GiftCards or Credit?
Hey, Wondering if there is a way to buy a limited amount of credit on railway. We're at a hackathon rn with https://HackClub.com/ and I need to host a nodejs Project with domain. Free trial is over though.
33 replies
RRailway
Created by π–₯‚ PixelFire π–₯‚ on 1/11/2024 in #βœ‹ο½œhelp
railway platform TOS
Tryna find where I can find TOS for apps on railway. Have a project I wanted to host.
113 replies