You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there, brand new to this selfbot stuff. I am tring to recieve any kind of message, but it won't work. It does work with the depreciated "message" event, but not the suggested "messageCreate" event. Any help would be great. Thanks!
import { Client } from 'discord.js-selfbot-v13'
import config from '../config.json' assert { type: 'json' };
const client = new Client({
checkUpdate: false,
});
client.on('ready', async () => {
console.log(`Logged in as ${client.user.tag}!`);
client.user.setActivity('DM me an invite', { type: 'PLAYING' });
client.on('messageCreate', async (message) => {
if (message.author.id !== client.user.id) return;
if (message.content.startsWith(`ping`)) {
const msg = await message.channel.send('Pinging...');
msg.edit(
`Pong! Latency is ${msg.createdTimestamp -
message.createdTimestamp}ms. API Latency is ${Math.round(
client.ws.ping
)}ms`
);
}
});
})
client.login(config.token);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey there, brand new to this selfbot stuff. I am tring to recieve any kind of message, but it won't work. It does work with the depreciated "message" event, but not the suggested "messageCreate" event. Any help would be great. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions