theopenroad
theopenroad
DIAdiscord.js - Imagine an app
Created by theopenroad on 3/16/2024 in #djs-questions
send file
messageCreate event. I want to when a message is created. it tells me is message video or image or no? how can I do that ?
const { Events } = require('discord.js');

module.exports = {
name: Events.MessageCreate,
async execute(message) {
//
const { Events } = require('discord.js');

module.exports = {
name: Events.MessageCreate,
async execute(message) {
//
4 replies
DIAdiscord.js - Imagine an app
Created by theopenroad on 2/17/2024 in #djs-questions
Send mp4 file
No description
19 replies
DIAdiscord.js - Imagine an app
Created by theopenroad on 1/19/2024 in #djs-questions
How can I get online members and members on the voices
I want to get online and voice active members in commands like this :
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
async execute(interaction) {
await interaction.reply('Pong!');
//log all online members
//show how many members are on the voices now
},
};
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
async execute(interaction) {
await interaction.reply('Pong!');
//log all online members
//show how many members are on the voices now
},
};
I want for example if user use this command it sends the count of online and active members
12 replies