The methods used in previous versions of Discord.js don't seem to work in V13
I have tried using this code but it did not work
const client = new Discord.Client({ ws: { properties: { $browser: "Discord iOS" }} });
I also could not find the code used to set it in Constants.js file
File path: /node_modules/discord.js/src/util/Constants.js
Code reference: How to set a bot active on mobile
just put that code in index.js like this:
const client = new Discord.Client({
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES],
ws: { properties: { $browser: "Discord iOS" }}
});