Created
October 22, 2025 01:14
-
-
Save Neodevils/35b9e884f8682fc1a36733c5fd63be44 to your computer and use it in GitHub Desktop.
Update server specific bot profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Client, GatewayIntentBits } from "discord.js"; | |
| // ---------------- CONFIG ---------------- | |
| const TOKEN = ""; // Replace with your bot token | |
| const GUILD_ID = ""; // Your target guild ID | |
| // Discord CDN URLs | |
| const AVATAR_URL = ""; | |
| const BANNER_URL = ""; | |
| const BIO_TEXT = ""; // Max 400 characters | |
| // ---------------------------------------- | |
| const client = new Client({ intents: [GatewayIntentBits.Guilds] }); | |
| client.once("clientReady", async () => { | |
| console.log(`Logged in as ${client.user.tag}`); | |
| try { | |
| const guild = await client.guilds.fetch(GUILD_ID); | |
| const me = guild.members; | |
| if (!me) throw new Error("Bot is not in the guild?"); | |
| await me.editMe({ | |
| avatar: null, | |
| banner: null, | |
| bio: null, | |
| nick: null, | |
| }); | |
| console.log("✅ Bot profile updated successfully!"); | |
| } catch (err) { | |
| console.error("❌ Failed to update profile:", err); | |
| } finally { | |
| client.destroy(); | |
| } | |
| }); | |
| client.login(TOKEN); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment