Skip to content

Instantly share code, notes, and snippets.

@Lenochxd
Created July 6, 2025 00:09
Show Gist options
  • Save Lenochxd/f800ae0bfa2f19acf5192b2ff8a40f32 to your computer and use it in GitHub Desktop.
Save Lenochxd/f800ae0bfa2f19acf5192b2ff8a40f32 to your computer and use it in GitHub Desktop.
Get the boosters list of a discord server
import nextcord
from nextcord.ext import commands
intents = nextcord.Intents.default()
intents.members = True # Enable member intents
bot = commands.Bot(command_prefix='!', intents=intents)
@bot.event
async def on_ready():
print(f'Bot is ready as {bot.user.name}')
# Get server ID from input
server_id = int(input("Enter server ID: "))
guild = bot.get_guild(server_id)
if guild is None:
print("Could not find server with that ID")
await bot.close()
return
# Get all boosters
boosters = [member for member in guild.members if member.premium_since is not None]
print(f"\nBoosters for {guild.name}:")
print("-" * 50)
for booster in boosters:
print(f"Name: {booster.name}#{booster.discriminator}")
print(f"Account ID: {booster.id}")
print(f"Boosting since: {booster.premium_since}")
print("-" * 50)
print(f"\nTotal boosters: {len(boosters)}")
await bot.close()
# Replace 'YOUR_BOT_TOKEN' with your actual bot token
bot.run('YOUR_BOT_TOKEN')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment