RichtigJoJo
RichtigJoJo
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 7/5/2023 in #djs-voice
Spotify
How can I play Spotify songs? Every npm package uses YouTube...
49 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 7/2/2023 in #djs-questions
body: { error: 'invalid_client' }
const e = new Error(r.status); ^ Error: 401 at D:\RPC\node_modules\discord-rpc\src\client.js:64:21 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async RPCClient.authorize (D:\RPC\node_modules\discord-rpc\src\client.js:215:22) at async RPCClient.login (D:\RPC\node_modules\discord-rpc\src\client.js:143:21) { body: { error: 'invalid_client' } }
17 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 2/16/2023 in #djs-voice
Join Channel with different Client
How can I say that another Bot is joining the Channel and not the main Bot? (I have the token)
10 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 2/13/2023 in #djs-voice
TypeError [ERR_INVALID_ARG_TYPE]: The "body" argument must be of type function or an instance of Blo
TypeError [ERR_INVALID_ARG_TYPE]: The "body" argument must be of type function or an instance of Blob, ReadableStream, WritableStream, Stream, Iterable, AsyncIterable, or Promise or { readable, writable } pair. Received undefined
16 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 1/17/2023 in #djs-voice
connection.receiver.createStream in v14
Is there something like connection.receiver.createStream in v14?
4 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 1/14/2023 in #djs-questions
Error
errors: {
components: { '0': { components: { _errors: [Array] } } }
},
message: 'Invalid Form Body'
},
code: 50035,
status: 400,
method: 'POST',
url: ''
}
errors: {
components: { '0': { components: { _errors: [Array] } } }
},
message: 'Invalid Form Body'
},
code: 50035,
status: 400,
method: 'POST',
url: ''
}
Code:
let components = interaction.message.components
interaction.update({components: [components]})
let components = interaction.message.components
interaction.update({components: [components]})
7 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 12/29/2022 in #djs-voice
Speech To Text
What did I need to do a Bot that sends that what I say in a Voice Channel in a Text Channel?
3 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 12/29/2022 in #djs-questions
STT
How can I make Speech to Text?
13 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 12/24/2022 in #djs-questions
channel.createWebhook is not working right
channel.createWebhook({
name: "TEst"
}).then((hook) => {
console.log("hi")
})
channel.createWebhook({
name: "TEst"
}).then((hook) => {
console.log("hi")
})
there is no hi in the console
22 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 12/20/2022 in #djs-questions
Test if user is banned
How can I test if a User is banned?
15 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 11/28/2022 in #djs-questions
What did I need to write in redirectUri?
5 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 11/13/2022 in #djs-questions
Error OAuth2 Error invalid_request Missing redirect_uri in request.
Help I get this Error
const e = new Error(message.data.message);
^

Error: OAuth2 Error: invalid_request: Missing "redirect_uri" in request.
at RPCClient._onRpcMessage (D:\Users\Discord Rich Presence\code\node_modules\discord-rpc\src\client.js:178:19)
at IPCTransport.emit (node:events:537:28)
at D:\Users\Discord Rich Presence\code\node_modules\discord-rpc\src\transports\ipc.js:138:18
at decode (D:\Users\Discord Rich Presence\code\node_modules\discord-rpc\src\transports\ipc.js:92:5)
at Socket.<anonymous> (D:\Users\Discord Rich Presence\code\node_modules\discord-rpc\src\transports\ipc.js:120:7)
at Socket.emit (node:events:537:28)
at emitReadable_ (node:internal/streams/readable:590:12)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
code: 5000,
data: {
code: 5000,
message: 'OAuth2 Error: invalid_request: Missing "redirect_uri" in request.'
}
}

Node.js v18.4.0
const e = new Error(message.data.message);
^

Error: OAuth2 Error: invalid_request: Missing "redirect_uri" in request.
at RPCClient._onRpcMessage (D:\Users\Discord Rich Presence\code\node_modules\discord-rpc\src\client.js:178:19)
at IPCTransport.emit (node:events:537:28)
at D:\Users\Discord Rich Presence\code\node_modules\discord-rpc\src\transports\ipc.js:138:18
at decode (D:\Users\Discord Rich Presence\code\node_modules\discord-rpc\src\transports\ipc.js:92:5)
at Socket.<anonymous> (D:\Users\Discord Rich Presence\code\node_modules\discord-rpc\src\transports\ipc.js:120:7)
at Socket.emit (node:events:537:28)
at emitReadable_ (node:internal/streams/readable:590:12)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
code: 5000,
data: {
code: 5000,
message: 'OAuth2 Error: invalid_request: Missing "redirect_uri" in request.'
}
}

Node.js v18.4.0
3 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 10/11/2022 in #djs-voice
Bot don't plays audio
pls help me Code:
let connection = DiscordVoice.joinVoiceChannel({
channelId: interaction.member.voice.channelId,
guildId: interaction.guild.id,
adapterCreator: interaction.guild.voiceAdapterCreator,
})

let resource = DiscordVoice.createAudioResource("http://wdr-1live-live.icecast.wdr.de/wdr/1live/live/mp3/128/stream.mp3", {
inlineVolume: true
})

let player = DiscordVoice.createAudioPlayer()
connection.subscribe(player)
player.play(resource)
let connection = DiscordVoice.joinVoiceChannel({
channelId: interaction.member.voice.channelId,
guildId: interaction.guild.id,
adapterCreator: interaction.guild.voiceAdapterCreator,
})

let resource = DiscordVoice.createAudioResource("http://wdr-1live-live.icecast.wdr.de/wdr/1live/live/mp3/128/stream.mp3", {
inlineVolume: true
})

let player = DiscordVoice.createAudioPlayer()
connection.subscribe(player)
player.play(resource)
Versions: "@discordjs/opus": "^0.8.0", "@discordjs/voice": "^0.13.0", "discord.js": "^14.5.0", node.js: v18.4.0
12 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 10/5/2022 in #djs-questions
ValidationError Expected a string primitive
return typeof value === "string" ? Result.ok(value) : Result.err(new ValidationError("s.string", "Expected a string primitive", value));
^

ValidationError: Expected a string primitive
return typeof value === "string" ? Result.ok(value) : Result.err(new ValidationError("s.string", "Expected a string primitive", value));
^

ValidationError: Expected a string primitive
Code:
let row = new Discord.ActionRowBuilder()
.addComponents(
new Discord.SelectMenuBuilder()
.setPlaceholder("Holderplace")
.addOptions(
new Discord.SelectMenuOptionBuilder()
.setLabel("Apple")
.setValue("select1")
.setDescription("Desc1"),

new Discord.SelectMenuOptionBuilder()
.setLabel("Bread")
.setValue("select2")
.setDescription("Desc2")
)
)
interaction.update({components: [row]})
let row = new Discord.ActionRowBuilder()
.addComponents(
new Discord.SelectMenuBuilder()
.setPlaceholder("Holderplace")
.addOptions(
new Discord.SelectMenuOptionBuilder()
.setLabel("Apple")
.setValue("select1")
.setDescription("Desc1"),

new Discord.SelectMenuOptionBuilder()
.setLabel("Bread")
.setValue("select2")
.setDescription("Desc2")
)
)
interaction.update({components: [row]})
6 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 8/29/2022 in #djs-questions
How to get message by id
for(let channel of interaction.guild.channels.cache) await console.log(channel[1].messages.fetch(messageId)) does not works
21 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 8/1/2022 in #djs-questions
How to test who invited a Bot?
How to test who invited a Bot?
5 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 8/1/2022 in #djs-questions
data.components[0].components[BASE_TYPE_REQUIRED] This field is required
I want to create a Modal but this error comes
7 replies
DIAdiscord.js - Imagine an app
Created by RichtigJoJo on 7/30/2022 in #djs-voice
why is voiceStateUpdate not working?
Why is voiceStateUpdate not working?
6 replies