Nilla
Nilla
DIAdiscord.js - Imagine an app
Created by Nilla on 9/2/2024 in #djs-questions
How do I send a premium button?
No description
11 replies
DIAdiscord.js - Imagine an app
Created by Nilla on 8/12/2024 in #djs-questions
Activities
No description
5 replies
DIAdiscord.js - Imagine an app
Created by Nilla on 7/6/2024 in #djs-questions
bot mobile online status
No description
6 replies
DIAdiscord.js - Imagine an app
Created by Nilla on 2/25/2024 in #djs-questions
Bot Custom RP
No description
4 replies
DIAdiscord.js - Imagine an app
Created by Nilla on 1/19/2024 in #djs-voice
Whether to play audio
If I send !isPlay, is there a way for the bot to check whether the server is playing audio or not?
2 replies
DIAdiscord.js - Imagine an app
Created by Nilla on 1/18/2024 in #djs-voice
example.mp3 Audio doesn't play
if (msg.content == '!t') {
const { joinVoiceChannel } = require('@discordjs/voice');

const connection = joinVoiceChannel({
channelId: msg.channel.id,
guildId: msg.channel.guild.id,
adapterCreator: msg.channel.guild.voiceAdapterCreator,
});
const { createAudioPlayer } = require('@discordjs/voice');

const player = createAudioPlayer();
const { createAudioResource } = require('@discordjs/voice');

const resource = createAudioResource('.\example.mp3');
player.play(resource);

msg.channel.send('z');
}
if (msg.content == '!t') {
const { joinVoiceChannel } = require('@discordjs/voice');

const connection = joinVoiceChannel({
channelId: msg.channel.id,
guildId: msg.channel.guild.id,
adapterCreator: msg.channel.guild.voiceAdapterCreator,
});
const { createAudioPlayer } = require('@discordjs/voice');

const player = createAudioPlayer();
const { createAudioResource } = require('@discordjs/voice');

const resource = createAudioResource('.\example.mp3');
player.play(resource);

msg.channel.send('z');
}
Bot joins voice chat, but does not play audio
4 replies