EndergamerMC
EndergamerMC
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
Ohh, thank you very much!
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
can it change by itself?
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
the tag id changed
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
huh
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
But it shows up:
serverId: 805758643114737676
forumChannel: 1127349012996051075
tag: 1127349012996051075
undefined
[
{
id: '1128766940836532255',
name: 'Rollenanfrage',
moderated: false,
emoji: null
}
]
serverId: 805758643114737676
forumChannel: 1127349012996051075
tag: 1127349012996051075
undefined
[
{
id: '1128766940836532255',
name: 'Rollenanfrage',
moderated: false,
emoji: null
}
]
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
When I run this, the tagObject is undefined
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
And that's what gets logged:
serverId: 805758643114737676
forumChannel: 1127349012996051075
tag: 1127349012996051075
serverId: 805758643114737676
forumChannel: 1127349012996051075
tag: 1127349012996051075
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
Here's the code with the logs:
const serverId = interaction.guild.id;
console.log(`serverId: ${serverId}`);

const forumChannel = config[serverId].channels.forum_channel;
console.log(`forumChannel: ${forumChannel}`);

const channel = interaction.client.channels.cache.get(forumChannel);
const tag = config[serverId].tags.forum_rollenanfrage_tag;
console.log(`tag: ${tag}`);
channel.threads.create({
name: `Rollenanfrage für ${interaction.fields.getTextInputValue('username')}, Angefragt von ${interaction.member}`,
message: {
embeds: [anfrageEmbed],
components: [ModeratorButtons],
},
appliedTags: [tag],
});
const serverId = interaction.guild.id;
console.log(`serverId: ${serverId}`);

const forumChannel = config[serverId].channels.forum_channel;
console.log(`forumChannel: ${forumChannel}`);

const channel = interaction.client.channels.cache.get(forumChannel);
const tag = config[serverId].tags.forum_rollenanfrage_tag;
console.log(`tag: ${tag}`);
channel.threads.create({
name: `Rollenanfrage für ${interaction.fields.getTextInputValue('username')}, Angefragt von ${interaction.member}`,
message: {
embeds: [anfrageEmbed],
components: [ModeratorButtons],
},
appliedTags: [tag],
});
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
Everything is correct but it doesn't apply the tag
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
Yeah
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
Sure, one sec please
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
Yeah, I did that to get the id of the tag
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
yes, it is a string
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
and it should work like that, right?
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
it logged 1127349012996051075
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
1127349012996051075
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 7/12/2023 in #djs-questions
Forum thread tag not working
the id of the tag
29 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 6/27/2023 in #djs-questions
Pagination error
Or am I wrong
74 replies
DIAdiscord.js - Imagine an app
Created by EndergamerMC on 6/27/2023 in #djs-questions
Pagination error
By doing -2 but when I do this, then the index for the buttons when it’s not the last item on a page gets calculated correctly
74 replies