Closed lopataa closed 4 months ago
const channel = client.channels.cache.get('id');
channel
.sendSlash('289066747443675143', 'osu', 'Accolibed')
.then(async (message) => {
if (message.flags.has('LOADING')) {
return new Promise((r, rej) => {
let t = setTimeout(() => rej('timeout'), 15 * 60 * 1000);
message.client.on('messageUpdate', (_, m) => {
if (_.id == message.id) {
clearTimeout(t);
r(m);
}
});
});
} else {
return Promise.resolve(message);
}
})
.then(console.log);
it works, thanks :)
Which package has the bugs?
The core library
Issue description
Code sample
Package version
-- discord.js-selfbot-v13@3.1.4
Node.js version
node: 20.10.4; typescript: 5.3.3
Operating system
Windows, Ubuntu
Priority this issue should have
Medium (should be fixed soon)
Checklist
Additional Information
No response