how to remove watch button from streams and put in your discord rpc buttons for ur discord bot?
how to remove watch button from streams and put in your discord rpc buttons for ur discord bot? i dont get it
54 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPUnknown User•2mo ago
Message Not Public
Sign In & Join Server To View
timeZone: "Europe/Dublin",
Name: "???",
Type: "STREAMING", // PLAYING, STREAMING, LISTENING, WATCHING
URL: "https://twitch.tv/wttf",
State: "gamin",
Details: "fye icl cheers aayu5h",
FirstButtonName: "biolink",
FirstButtonUrl: "",
SecondButtonName: "biolink",
SecondButtonUrl: "https://signed.bio/developer",
LargeImage: "https://cdn.discordapp.com/attachments/1273681589775237172/1295812187872297092/nFiIc41.jpg?ex=671002a4&is=670eb124&hm=87b4fa242b8d75bf9b75740e1ad0eca77684f0de339af25a74dc89136ffeb68c&", // DISCORD CDN IMAGE ONLY
LargeText: ".gg/type", // hover text for large image
wym it can?
its in the developer platform
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
ok how would i remove the watch button and replace it
mine did but now it displays watching so how do i replace it
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
module.exports = {
// refer to tutorial1.png and tutorial2.png in the repo for help
showTime: false, // Toggle to show or hide time in status (true/false)
ermykmyprivthingy: "" || process.env.TOKEN,
timeZone: "Europe/Dublin",
Name: "???",
Type: "STREAMING", // PLAYING, STREAMING, LISTENING, WATCHING
URL: "https://twitch.tv/wttf",
State: "gamin",
Details: "fye icl cheers aayu5h",
FirstButtonName: "biolink",
FirstButtonUrl: "",
SecondButtonName: "biolink",
SecondButtonUrl: "https://signed.bio/developer",
LargeImage: "https://cdn.discordapp.com/attachments/1273681589775237172/1295812187872297092/nFiIc41.jpg?ex=671002a4&is=670eb124&hm=87b4fa242b8d75bf9b75740e1ad0eca77684f0de339af25a74dc89136ffeb68c&", // DISCORD CDN IMAGE ONLY
LargeText: ".gg/type", // hover text for large image
SmallImage: "", // DISCORD CDN IMAGE ONLY
SmallText: "", // hover text for small image
};
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
then?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
okay but how would i remove watch button.
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
sure.
yes
discord.jsv14
soo
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
usin index?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
const Discord = require("discord.js");
const client = new Discord.Client({
readyStatus: false,
checkUpdate: false,
});
require("dotenv").config();
const config = require("./config.js");
client.on("ready", async () => {
try {
const AsciiTable = require("ascii-table");
const table = new AsciiTable();
table.setBorder("❘", "─", "✾", "❀");
table.setTitle(
Logged In As ${client.user.username}!
);
table
.addRow(Node.js
, ${process.version}
)
.addRow(
Memory
,
${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)} MB / ${(
process.memoryUsage().rss /
1024 /
1024
).toFixed(2)} MB
);
setTimeout(() => {
console.log(table.toString());
}, 3000);
const r = new Discord.RichPresence();
if (config.ApplicationId) r.setApplicationId(config.ApplicationId);
if (config.Type) r.setType(config.Type);
if (config.URL) r.setURL(config.URL);
if (config.State) r.setState(config.State);
if (config.Name) r.setName(config.Name);
if (config.Details) r.setDetails(config.Details);
if (config.StartTimestamp) r.setStartTimestamp(config.StartTimestamp);
if (config.LargeImage) r.setAssetsLargeImage(config.LargeImage);
if (config.LargeText) r.setAssetsLargeText(config.LargeText);
if (config.SmallImage) r.setAssetsSmallImage(config.SmallImage);
if (config.SmallText) r.setAssetsSmallText(config.SmallText);
if (config.FirstButtonName && config.FirstButtonUrl)
r.addButton(config.FirstButtonName, config.FirstButtonUrl);
if (config.SecondButtonName && config.SecondButtonUrl)
r.addButton(config.SecondButtonName, config.SecondButtonUrl);
client.user.setActivity(r);
setTimeout(() => {
if (!client || !client.user) {
console.error("Client didn't log in.. Killing the process..");
process.exit(1);
} else {
console.log("Client has successfully logged in!");
}
}, 1 * 1000 * 20);
} catch (error) {
console.error("An error occurred during the ready event:", error);
process.exit(1);
}
});
client.on("error", (error) => {
console.error("An error occurred with the Discord client:", error);
});
client.login(config.token).catch((error) => {
console.error("Failed to login:", error);
process.exit(1);
});thats readable tho
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
it should show this
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
wait but how do i remove the watch button
you never know like.
Thats just how discord displays it
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
If thats what you're talking about as you have never sent amy screenshot
lemme show mine
on my bot
holup
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
I imagine they're referring to their
STREAMING
type activity
which is still an indication they're not using v14
but this is not something that can be removedno
thats an example from a friend
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
discord-rpc package?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
oop
lol mb
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
lemme show mine
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
lol its in config i forgot to add it as its still newly made
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
here u go
tahst what my bot shows
ITS SO ANNOYING
anyway to remove the watch button in discord.js
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
i am-
also this
npm ls discord.js
how do i check
i do npm install discord.js
all the time
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
+-- [email protected]
is tha alr?
then?
whats goin onnn broo
.
ok but how would i remove the watch button tho
You also said it was an example from your friend
but do you use it
the pic ? yh
you dont set a streaming status
i need to show what it work like
ok wtf is goin on-
yo wait ykw dw bout it
i figured it out