sigma
sigma
DIAdiscord.js - Imagine an app
Created by sigma on 7/30/2024 in #djs-questions
Channel not found!
the bot runs this when it starts up, and then every minute using setInterval, all within the same file. however, it reports that it can't find the channel on the initial start, but it works during the minute-by-minute updates, and the data in the channel is refreshed correctly. I assume that after the bot has loaded, it caches the channels and then I can manage them?
28 replies
DIAdiscord.js - Imagine an app
Created by sigma on 7/30/2024 in #djs-questions
Channel not found!
Channel ID (debug): 1267435664815689808 Channel not found! for some reason, the channel is not in the cache or the bot can't see it at all. what do you think would be the best solution? I'll try to resolve it somehow.
28 replies
DIAdiscord.js - Imagine an app
Created by sigma on 7/30/2024 in #djs-questions
Channel not found!
i understand 😄
28 replies
DIAdiscord.js - Imagine an app
Created by sigma on 7/30/2024 in #djs-questions
Channel not found!
now i'm giving the channelid in string, but still "channel not found". is it possible to query all the channels my bot see? 😄
28 replies
DIAdiscord.js - Imagine an app
Created by sigma on 7/30/2024 in #djs-questions
Channel not found!
i have tried with string but the result was the same.
28 replies
DIAdiscord.js - Imagine an app
Created by sigma on 7/30/2024 in #djs-questions
Channel not found!
I've just replace the integer with mychannelid. it should be 1267435664815689808 of course.
28 replies
DIAdiscord.js - Imagine an app
Created by sigma on 7/30/2024 in #djs-questions
Channel not found!
for this small script, not really. but they are needed for other purpose
28 replies
DIAdiscord.js - Imagine an app
Created by sigma on 7/30/2024 in #djs-questions
Channel not found!
what do you mean? its defined in config {}.
28 replies
DIAdiscord.js - Imagine an app
Created by sigma on 7/30/2024 in #djs-questions
Channel not found!
const config = {
statusChannelId: mychannelid,
updateInterval: 60000 // 1 minute
};
const config = {
statusChannelId: mychannelid,
updateInterval: 60000 // 1 minute
};
client:
const client = new Discord.Client({
allowedMentions: {
parse: [
'users',
'roles'
],
repliedUser: true
},
autoReconnect: true,
disabledEvents: [
"TYPING_START"
],
partials: [
Discord.Partials.Channel,
Discord.Partials.GuildMember,
Discord.Partials.Message,
Discord.Partials.Reaction,
Discord.Partials.User,
Discord.Partials.GuildScheduledEvent
],
intents: [
Discord.GatewayIntentBits.Guilds,
Discord.GatewayIntentBits.GuildMembers,
Discord.GatewayIntentBits.GuildBans,
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.DirectMessages,
Discord.GatewayIntentBits.DirectMessageReactions,
Discord.GatewayIntentBits.DirectMessageTyping,
Discord.GatewayIntentBits.GuildScheduledEvents,
Discord.GatewayIntentBits.MessageContent
],
restTimeOffset: 0
});
const client = new Discord.Client({
allowedMentions: {
parse: [
'users',
'roles'
],
repliedUser: true
},
autoReconnect: true,
disabledEvents: [
"TYPING_START"
],
partials: [
Discord.Partials.Channel,
Discord.Partials.GuildMember,
Discord.Partials.Message,
Discord.Partials.Reaction,
Discord.Partials.User,
Discord.Partials.GuildScheduledEvent
],
intents: [
Discord.GatewayIntentBits.Guilds,
Discord.GatewayIntentBits.GuildMembers,
Discord.GatewayIntentBits.GuildBans,
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.DirectMessages,
Discord.GatewayIntentBits.DirectMessageReactions,
Discord.GatewayIntentBits.DirectMessageTyping,
Discord.GatewayIntentBits.GuildScheduledEvents,
Discord.GatewayIntentBits.MessageContent
],
restTimeOffset: 0
});
28 replies
DIAdiscord.js - Imagine an app
Created by sigma on 7/30/2024 in #djs-questions
Channel not found!
Discord JS version: [email protected] Node: v20.12.1
28 replies