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
d.js toolkit
d.js toolkit2mo ago
- 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 OP
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
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
Twitch
Twitch
Twitch is the world's leading video platform and community for gamers.
; type
; typeOP2mo ago
wym it can? its in the developer platform
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
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 };
Twitch
Twitch
Twitch is the world's leading video platform and community for gamers.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
then?
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
okay but how would i remove watch button.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
sure. yes discord.jsv14 soo
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
usin index?
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
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); });
d.js docs
d.js docs2mo ago
To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.
; type
; typeOP2mo ago
thats readable tho
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
it should show this
No description
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
wait but how do i remove the watch button you never know like.
treble/luna
treble/luna2mo ago
Thats just how discord displays it
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
treble/luna
treble/luna2mo ago
If thats what you're talking about as you have never sent amy screenshot
; type
; typeOP2mo ago
lemme show mine on my bot holup
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
duck
duck2mo ago
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 removed
; type
; typeOP2mo ago
no thats an example from a friend
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
discord-rpc package?
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
oop lol mb
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
lemme show mine
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
lol its in config i forgot to add it as its still newly made
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
No description
; type
; typeOP2mo ago
here u go tahst what my bot shows ITS SO ANNOYING anyway to remove the watch button in discord.js
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
i am-
treble/luna
treble/luna2mo ago
also this npm ls discord.js
; type
; typeOP2mo ago
how do i check i do npm install discord.js all the time
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
; type
; typeOP2mo ago
+-- [email protected] is tha alr? then? whats goin onnn broo . ok but how would i remove the watch button tho
treble/luna
treble/luna2mo ago
You also said it was an example from your friend but do you use it
; type
; typeOP2mo ago
the pic ? yh
treble/luna
treble/luna2mo ago
you dont set a streaming status
; type
; typeOP2mo ago
i need to show what it work like ok wtf is goin on- yo wait ykw dw bout it i figured it out
Want results from more Discord servers?
Add your server