jr
jr
DIAdiscord.js - Imagine an app
Created by jr on 1/5/2024 in #djs-questions
Spurious messageUpdate
Thanks for the help!
14 replies
DIAdiscord.js - Imagine an app
Created by jr on 1/5/2024 in #djs-questions
Spurious messageUpdate
Yep looking back through the logs that was it πŸ™‚
14 replies
DIAdiscord.js - Imagine an app
Created by jr on 1/5/2024 in #djs-questions
Spurious messageUpdate
No links but pins are a good thought
14 replies
DIAdiscord.js - Imagine an app
Created by jr on 1/5/2024 in #djs-questions
Spurious messageUpdate
I was surprised to see it
14 replies
DIAdiscord.js - Imagine an app
Created by jr on 1/5/2024 in #djs-questions
Spurious messageUpdate
Indeed πŸ™‚
14 replies
DIAdiscord.js - Imagine an app
Created by jr on 1/5/2024 in #djs-questions
Spurious messageUpdate
I am sure, I was logging the message the even fired on. I'm on 14.14.1 with client
const client = new Discord.Client({
intents: [
// fuck it, everything (almost)
Discord.GatewayIntentBits.Guilds,
Discord.GatewayIntentBits.GuildMembers,
Discord.GatewayIntentBits.GuildModeration,
Discord.GatewayIntentBits.GuildEmojisAndStickers,
Discord.GatewayIntentBits.GuildIntegrations,
Discord.GatewayIntentBits.GuildWebhooks,
Discord.GatewayIntentBits.GuildInvites,
Discord.GatewayIntentBits.GuildVoiceStates,
Discord.GatewayIntentBits.GuildMessages,
Discord.GatewayIntentBits.GuildMessageReactions,
Discord.GatewayIntentBits.GuildMessageTyping,
Discord.GatewayIntentBits.MessageContent,
Discord.GatewayIntentBits.DirectMessages,
Discord.GatewayIntentBits.DirectMessageReactions,
Discord.GatewayIntentBits.DirectMessageTyping,
],
partials: [
Discord.Partials.Channel,
Discord.Partials.Message,
Discord.Partials.Reaction,
Discord.Partials.User,
],
makeCache: Discord.Options.cacheWithLimits({
...Discord.Options.DefaultMakeCacheSettings,
MessageManager: 1000,
}),
});
const client = new Discord.Client({
intents: [
// fuck it, everything (almost)
Discord.GatewayIntentBits.Guilds,
Discord.GatewayIntentBits.GuildMembers,
Discord.GatewayIntentBits.GuildModeration,
Discord.GatewayIntentBits.GuildEmojisAndStickers,
Discord.GatewayIntentBits.GuildIntegrations,
Discord.GatewayIntentBits.GuildWebhooks,
Discord.GatewayIntentBits.GuildInvites,
Discord.GatewayIntentBits.GuildVoiceStates,
Discord.GatewayIntentBits.GuildMessages,
Discord.GatewayIntentBits.GuildMessageReactions,
Discord.GatewayIntentBits.GuildMessageTyping,
Discord.GatewayIntentBits.MessageContent,
Discord.GatewayIntentBits.DirectMessages,
Discord.GatewayIntentBits.DirectMessageReactions,
Discord.GatewayIntentBits.DirectMessageTyping,
],
partials: [
Discord.Partials.Channel,
Discord.Partials.Message,
Discord.Partials.Reaction,
Discord.Partials.User,
],
makeCache: Discord.Options.cacheWithLimits({
...Discord.Options.DefaultMakeCacheSettings,
MessageManager: 1000,
}),
});
14 replies
DIAdiscord.js - Imagine an app
Created by jr on 1/2/2024 in #djs-questions
Check timeouts that have been issued
Ty πŸ™‚
11 replies
DIAdiscord.js - Imagine an app
Created by jr on 1/2/2024 in #djs-questions
Check timeouts that have been issued
That might be the way to go
11 replies
DIAdiscord.js - Imagine an app
Created by jr on 1/2/2024 in #djs-questions
Check timeouts that have been issued
Thanks, I'm mainly needing a way to get this info even if the user isn't in the guild anymore
11 replies
DIAdiscord.js - Imagine an app
Created by jr on 11/7/2023 in #djs-questions
Send video as attachment from url
Tysm πŸ™
13 replies
DIAdiscord.js - Imagine an app
Created by jr on 11/7/2023 in #djs-questions
Send video as attachment from url
Ah that did indeed work
13 replies
DIAdiscord.js - Imagine an app
Created by jr on 11/7/2023 in #djs-questions
Send video as attachment from url
I see
13 replies
DIAdiscord.js - Imagine an app
Created by jr on 11/7/2023 in #djs-questions
Send video as attachment from url
The actual code is complex but it should reproduce with
channel.send({
files: [
{
url: 'https://cdn.discordapp.com/attachments/1070007323961085973/1170777477723979988/395548916_313950368025649_163387286946890286_n.mp4?ex=655a467e&is=6547d17e&hm=c2646af1ffc78e9d4e880e179582d5f2b9f0b8138bd5ed723cef8027789f98a2&',
proxyURL: 'https://media.discordapp.net/attachments/1070007323961085973/1170777477723979988/395548916_313950368025649_163387286946890286_n.mp4',
width: 480,
height: 854
}
]
});
channel.send({
files: [
{
url: 'https://cdn.discordapp.com/attachments/1070007323961085973/1170777477723979988/395548916_313950368025649_163387286946890286_n.mp4?ex=655a467e&is=6547d17e&hm=c2646af1ffc78e9d4e880e179582d5f2b9f0b8138bd5ed723cef8027789f98a2&',
proxyURL: 'https://media.discordapp.net/attachments/1070007323961085973/1170777477723979988/395548916_313950368025649_163387286946890286_n.mp4',
width: 480,
height: 854
}
]
});
13 replies
DIAdiscord.js - Imagine an app
Created by jr on 11/7/2023 in #djs-questions
Send video as attachment from url
if I try to include a content type and name I run into
[11.07.23 11:42:53] [error] TypeError: Cannot read properties of undefined (reading 'Symbol(Symbol.asyncIterator)')
at DataResolver.resolveFile (/x/node_modules/discord.js/src/util/DataResolver.js:117:24)
at MessagePayload.resolveFile (/x/node_modules/discord.js/src/structures/MessagePayload.js:258:54)
at /x/node_modules/discord.js/src/structures/MessagePayload.js:223:85
at Array.map (<anonymous>)
at MessagePayload.resolveFiles (/x/node_modules/discord.js/src/structures/MessagePayload.js:223:56)
at ThreadChannel.send (/x/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:161:50)
[11.07.23 11:42:53] [error] TypeError: Cannot read properties of undefined (reading 'Symbol(Symbol.asyncIterator)')
at DataResolver.resolveFile (/x/node_modules/discord.js/src/util/DataResolver.js:117:24)
at MessagePayload.resolveFile (/x/node_modules/discord.js/src/structures/MessagePayload.js:258:54)
at /x/node_modules/discord.js/src/structures/MessagePayload.js:223:85
at Array.map (<anonymous>)
at MessagePayload.resolveFiles (/x/node_modules/discord.js/src/structures/MessagePayload.js:223:56)
at ThreadChannel.send (/x/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:161:50)
13 replies
DIAdiscord.js - Imagine an app
Created by jr on 11/7/2023 in #djs-questions
Send video as attachment from url
[11.07.23 11:41:48] [error] TypeError: Cannot read properties of undefined (reading 'path')
at findName (/x/node_modules/discord.js/src/structures/MessagePayload.js:241:17)
at MessagePayload.resolveFile (/x/node_modules/discord.js/src/structures/MessagePayload.js:255:31)
at /x/node_modules/discord.js/src/structures/MessagePayload.js:223:85
at Array.map (<anonymous>)
at MessagePayload.resolveFiles (/x/node_modules/discord.js/src/structures/MessagePayload.js:223:56)
at ThreadChannel.send (/x/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:161:50)
[11.07.23 11:41:48] [error] TypeError: Cannot read properties of undefined (reading 'path')
at findName (/x/node_modules/discord.js/src/structures/MessagePayload.js:241:17)
at MessagePayload.resolveFile (/x/node_modules/discord.js/src/structures/MessagePayload.js:255:31)
at /x/node_modules/discord.js/src/structures/MessagePayload.js:223:85
at Array.map (<anonymous>)
at MessagePayload.resolveFiles (/x/node_modules/discord.js/src/structures/MessagePayload.js:223:56)
at ThreadChannel.send (/x/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:161:50)
13 replies
DIAdiscord.js - Imagine an app
Created by jr on 10/25/2023 in #djs-questions
Prevent link embeds while sending a message
Works perfectly, thanks!
7 replies
DIAdiscord.js - Imagine an app
Created by jr on 10/25/2023 in #djs-questions
Prevent link embeds while sending a message
Thank you so much, will test
7 replies
DIAdiscord.js - Imagine an app
Created by jr on 9/4/2023 in #djs-questions
channel.messages.fetch is giving messages outside the after/before range
Thanks
5 replies
DIAdiscord.js - Imagine an app
Created by jr on 7/31/2023 in #djs-questions
Somehow getting forum posts from a completely unrelelated forum channel
Thanks
5 replies
DIAdiscord.js - Imagine an app
Created by jr on 7/31/2023 in #djs-questions
Somehow getting forum posts from a completely unrelelated forum channel
If discord js isn’t doing that currently, is a patch needed somewhere?
5 replies