We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const Discord = require("./node_modules/discord-user-bots/src/exports.js"); const client = new Discord.Client("blabla"); hey="hello"
client.on.ready = function() { console.log("Client online!"); };
client.on.message_create = function(message) { const guild = client.info.guilds.filter((guild) => guild.id == message.guild_id)[0]; const channel = guild.channels.filter((channel) => channel.id == message.channel_id)[0];
if(channel.id=="673488504524898304"){ console.log(message); client.send( "673488504524898304", // Channel to send in { content: "Hello",}); } }
I have this code and i dont get why no message is being sent. console.log is working but me sending the message is not
The text was updated successfully, but these errors were encountered:
No branches or pull requests
const Discord = require("./node_modules/discord-user-bots/src/exports.js");
const client = new Discord.Client("blabla");
hey="hello"
client.on.ready = function() {
console.log("Client online!");
};
client.on.message_create = function(message) {
const guild = client.info.guilds.filter((guild) => guild.id == message.guild_id)[0];
const channel = guild.channels.filter((channel) => channel.id == message.channel_id)[0];
if(channel.id=="673488504524898304"){
console.log(message);
client.send(
"673488504524898304", // Channel to send in
{
content: "Hello",});
}
}
I have this code and i dont get why no message is being sent. console.log is working but me sending the message is not
The text was updated successfully, but these errors were encountered: