Aram
DIAdiscord.js - Imagine an app
•Created by Aram on 10/30/2023 in #djs-questions
Log when a member gets timed out
Is it possible for a Discord Bot to send a message in a Channel when a member gets Timed Out
so for example, when i time out a member thru discords /timeout or i right click them and time out them,
can de discord bot at that moment send a message in a channel saying that they got timed out and for how long.
i just need to the line that checks if a member got timed out
6 replies
DIAdiscord.js - Imagine an app
•Created by Aram on 12/20/2022 in #djs-questions
2nd row of description in embed
How can i make it that Twitter: is on a seperate row under Twitch
because my way(above) doesnt work
4 replies
DIAdiscord.js - Imagine an app
•Created by Aram on 12/19/2022 in #djs-questions
Discord Bot doesn't react back.
if i type, .ping or ping, the bot doesnt react with pong!
const { Client, Events, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
],
});
const { token } = require('./config.json');
client.once(Events.ClientReady, c => {
console.log(
const args = messsage.content.slice(prefix.length).split(/ +/); const command = args.shift().toLowerCase();
if (command === 'ping'){ message.channel.send('pong!'); } });
Ready! Logged in as ${c.user.tag}
);
});
client.login('token');
const prefix = '.';
client.on('message', message =>{
if(!message.content.startsWith(prefix) || message.author.bot) return;
const args = messsage.content.slice(prefix.length).split(/ +/); const command = args.shift().toLowerCase();
if (command === 'ping'){ message.channel.send('pong!'); } });
6 replies