avaze
avaze
DIAdiscord.js - Imagine an app
Created by avaze on 3/17/2024 in #djs-questions
Interaction CacheType in Typescript
Hey everyone, I've started rewriting my bot in Typescript, and i'm running into problems with the generic Interaction type. interaction.member seems to be either GuildMember or APIInteractionGuildMember, depending if the interaction is of CacheType "raw" or "cached". What exactly is the difference between those two? Which type will actually come back from the .on("interactionCreate", ...) listener, or how do i best go about validating it?
9 replies
DIAdiscord.js - Imagine an app
Created by avaze on 4/21/2023 in #djs-questions
Best way to use Lavalink with djs v14?
Hey everyone, a year ago i wrote a music bot using djs v13 & erela.js for Lavalink connectivity. Ive not been in the loop about what's happening with all the libraries, so i just now noticed that erela.js has been discontinued. Id like to update my bot to the newest djs version though, so now im wondering what library to use. Ive been looking at the lavacord and lavaclient libraries, but both didnt seem to provide a good alternative to erelajs. Does anyone have more knowledge about this topic? Which library is the most future-proof?
2 replies
DIAdiscord.js - Imagine an app
Created by avaze on 10/8/2022 in #djs-questions
Tagging everyone with interaction.reply() does not work
Hey! Im currently trying to create an announcement command that sends an embed with the announcement message entered while tagging everyone. Code:
interaction.reply({ content: "@everyone", embeds: [msgEmbed] });
interaction.reply({ content: "@everyone", embeds: [msgEmbed] });
It does only work when i send it as a separate message. I dont want to do that tho as i like to see the <user> used /announce abose the message. Is there any way to accomplish this? Any help or ideas to get similar results would be very appreciated!
3 replies