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 toolkit3d 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 User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d 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
; type3d ago
wym it can? its in the developer platform
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d 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 User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d 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 User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
then?
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
okay but how would i remove watch button.
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
sure. yes discord.jsv14 soo
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
usin index?
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d 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 docs3d 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
; type3d ago
thats readable tho
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
it should show this
No description
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
wait but how do i remove the watch button you never know like.
treble/luna
treble/luna3d ago
Thats just how discord displays it
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
treble/luna
treble/luna3d ago
If thats what you're talking about as you have never sent amy screenshot
; type
; type3d ago
lemme show mine on my bot holup
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
duck
duck3d 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
; type3d ago
no thats an example from a friend
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
discord-rpc package?
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
oop lol mb
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
lemme show mine
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
lol its in config i forgot to add it as its still newly made
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
No description
; type
; type3d ago
here u go tahst what my bot shows ITS SO ANNOYING anyway to remove the watch button in discord.js
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
i am-
treble/luna
treble/luna3d ago
also this npm ls discord.js
; type
; type3d ago
how do i check i do npm install discord.js all the time
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
; type
; type3d ago
+-- [email protected] is tha alr? then? whats goin onnn broo . ok but how would i remove the watch button tho
treble/luna
treble/luna3d ago
You also said it was an example from your friend but do you use it
; type
; type3d ago
the pic ? yh
treble/luna
treble/luna3d ago
you dont set a streaming status
; type
; type3d 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