Turboman3000
Turboman3000
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 6/22/2023 in #djs-questions
Dynamic Command Arg.
ah nice thx
5 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 6/22/2023 in #djs-questions
Dynamic Command Arg.
node@v18.16.0 discord.js@14.11.
5 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/16/2023 in #djs-questions
Modal Components Maxmimum
Alright I've fixed it. And i also know why their is no error. And fixed it too
15 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/16/2023 in #djs-questions
Modal Components Maxmimum
😅
15 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/16/2023 in #djs-questions
Modal Components Maxmimum
uhm
15 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/16/2023 in #djs-questions
Modal Components Maxmimum
That strange^10
15 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/16/2023 in #djs-questions
Modal Components Maxmimum
idk
15 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/16/2023 in #djs-questions
Modal Components Maxmimum
I dont have any error
15 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/16/2023 in #djs-questions
Modal Components Maxmimum
Logs: I dont have any error, the bot just crashes.
const title = new TextInputBuilder()
.setCustomId("announce_cmd_title")
.setLabel("Title")
.setPlaceholder("Title")
.setRequired(true)
.setStyle(TextInputStyle.Short);

const image = new TextInputBuilder()
.setCustomId("announce_cmd_image")
.setLabel("Image URL")
.setPlaceholder("https://")
.setRequired(false)
.setStyle(TextInputStyle.Short);

const msg = new TextInputBuilder()
.setCustomId("announce_cmd_message")
.setLabel("Message")
.setPlaceholder("Message to announce")
.setRequired(true)
.setStyle(TextInputStyle.Paragraph)
.setMaxLength(8000);

const date = new TextInputBuilder()
.setCustomId("announce_cmd_date")
.setLabel("Date (dd.MM.yyyy hh:mm)")
.setRequired(true)
.setMaxLength(16)
.setMinLength(16)
.setPlaceholder("dd.MM.yyyy hh:mm")
.setStyle(TextInputStyle.Short);

const firstActionRow =
new ActionRowBuilder<ModalActionRowComponentBuilder>().addComponents(title);
const secondActionRow =
new ActionRowBuilder<ModalActionRowComponentBuilder>().addComponents(image);
const thirdActionRow =
new ActionRowBuilder<ModalActionRowComponentBuilder>().addComponents(msg);
const fourActionRow =
new ActionRowBuilder<ModalActionRowComponentBuilder>().addComponents(date);

modal.addComponents(
firstActionRow,
secondActionRow,
thirdActionRow,
fourActionRow
);
const title = new TextInputBuilder()
.setCustomId("announce_cmd_title")
.setLabel("Title")
.setPlaceholder("Title")
.setRequired(true)
.setStyle(TextInputStyle.Short);

const image = new TextInputBuilder()
.setCustomId("announce_cmd_image")
.setLabel("Image URL")
.setPlaceholder("https://")
.setRequired(false)
.setStyle(TextInputStyle.Short);

const msg = new TextInputBuilder()
.setCustomId("announce_cmd_message")
.setLabel("Message")
.setPlaceholder("Message to announce")
.setRequired(true)
.setStyle(TextInputStyle.Paragraph)
.setMaxLength(8000);

const date = new TextInputBuilder()
.setCustomId("announce_cmd_date")
.setLabel("Date (dd.MM.yyyy hh:mm)")
.setRequired(true)
.setMaxLength(16)
.setMinLength(16)
.setPlaceholder("dd.MM.yyyy hh:mm")
.setStyle(TextInputStyle.Short);

const firstActionRow =
new ActionRowBuilder<ModalActionRowComponentBuilder>().addComponents(title);
const secondActionRow =
new ActionRowBuilder<ModalActionRowComponentBuilder>().addComponents(image);
const thirdActionRow =
new ActionRowBuilder<ModalActionRowComponentBuilder>().addComponents(msg);
const fourActionRow =
new ActionRowBuilder<ModalActionRowComponentBuilder>().addComponents(date);

modal.addComponents(
firstActionRow,
secondActionRow,
thirdActionRow,
fourActionRow
);
15 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/16/2023 in #djs-questions
Modal Components Maxmimum
discord.js@14.11.0 nodejs@18.15.0
15 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/12/2023 in #djs-questions
DM Slash Commands
k
5 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/11/2023 in #djs-questions
Modal-Layout
-_-
6 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/11/2023 in #djs-questions
Modal-Layout
I hate the Discord API
6 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/10/2023 in #djs-questions
Realtime Member Count of Every Voice Channel
Alright this code snippet works 🙂
for (const state of guild.voiceStates.cache.toJSON()) {
console.log(state.member?.user.username);
}
for (const state of guild.voiceStates.cache.toJSON()) {
console.log(state.member?.user.username);
}
14 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/10/2023 in #djs-questions
Realtime Member Count of Every Voice Channel
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildPresences,
],
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildPresences,
],
14 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/10/2023 in #djs-questions
Realtime Member Count of Every Voice Channel
and it's still not working, i'am in a Voice Channel but it just stay 0 which is the same effect -_-
14 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/10/2023 in #djs-questions
Realtime Member Count of Every Voice Channel
Techniclly it's fixing it. But i need the Member Count with every Member and it's data, i want to track the Voice Activity from every single User. So an with your method i get the member count of every channel but not which user is in a channel
14 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/10/2023 in #djs-questions
Realtime Member Count of Every Voice Channel
WIth the cache?
14 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/10/2023 in #djs-questions
Realtime Member Count of Every Voice Channel
node@v18.15.0 discord.js@14.11.0
14 replies
DIAdiscord.js - Imagine an app
Created by Turboman3000 on 5/4/2023 in #djs-questions
'client.user' is possible null
But now it works fine. I didnt know that ts and VS Code will look at stuff like this
35 replies