Kinton_Hiryuu
Kinton_Hiryuu
DIAdiscord.js - Imagine an app
Created by Kinton_Hiryuu on 8/31/2023 in #djs-questions
Is screenshare possible ?
I'd like to make my bot able to display a map on the screen, but with screenshare, which will make the interface clean and everyone can ask the map he wants I know in the past it wasnt possible, is it now ? after looking trough google i didnt find any other bot than "creating a screenshare link" I tought maybe there is something in #djs-voice, but since it's voice i'm not sure about it either
4 replies
DIAdiscord.js - Imagine an app
Created by Kinton_Hiryuu on 9/26/2022 in #djs-questions
get undefined on channelsmanager.fetch(forumChannel) but not on normal channel
Using both v14.6.0-dev and 14.5.0 SOLUTION HERE : https://canary.discord.com/channels/222078108977594368/1023950108770979840/1023953532350627960 when i try to get a forumchannel at the ready event like so :
client.channels.cache.get("1023939042062123038").threads.create({
name: 'Food Talk',
message: {
content: 'Discuss your favorite food!',
},
reason: 'Needed a separate thread for food',
}).then(t => t.send("test"))
client.channels.cache.get("1023939042062123038").threads.create({
name: 'Food Talk',
message: {
content: 'Discuss your favorite food!',
},
reason: 'Needed a separate thread for food',
}).then(t => t.send("test"))
i get an error : cannot read properties of undefined (reading threads) but when i change the channelID to some "normal text channel" it does its job without any problem the same error appears in the same way when trying to fetch the channel on messageCreate event :
message.guild.channels.fetch("1017460418677051432", {cache:true, force:true}).then(c => {
console.log(c)
c.threads.create({
name: 'Food Talk',
message: {
content: 'Discuss your favorite food!',
},
reason: 'Needed a separate thread for food',
}).then(t => t.send("test"))
})
message.guild.channels.fetch("1017460418677051432", {cache:true, force:true}).then(c => {
console.log(c)
c.threads.create({
name: 'Food Talk',
message: {
content: 'Discuss your favorite food!',
},
reason: 'Needed a separate thread for food',
}).then(t => t.send("test"))
})
same error (c is not defined and returns null on console.log) same thing, changing the channel if to some normal channel and it works like a charm
24 replies