A modern python module including many useful features that make discord bot programming extremely easy.

The documentation is not done. if you have any questions, feel free to ask them in our discord server.


  • Very easy to use and user friendly.
  • Object Oriented.
  • Modern Leveling Manager.
  • Modern Music/Audio playing manager.
  • Modern Async Database Manager (SQLite, MongoDB, PostgreSQL, MySQL, MariaDB).
  • Modern Paginator.
  • Modern Reaction Manager.
  • Modern Economy Manager.
  • Modern Image Manager (PIL).
  • Modern Invite Tracker.
  • Modern Command Hinter.
  • Modern FiveM Server Parser.
  • Modern Birthday Manager.
  • Modern Prefix Manager.
  • And many more!


Installing discordSuperUtils is very easy.

python -m pip install discordSuperUtils


Leveling Example (With Role Manager)

import discord

import discordSuperUtils
from discord.ext import commands

bot = commands.Bot(command_prefix='-')
RoleManager = discordSuperUtils.RoleManager()
LevelingManager = discordSuperUtils.LevelingManager(bot, RoleManager)

async def on_ready():
    database = discordSuperUtils.DatabaseManager.connect(...)
    await RoleManager.connect_to_database(database, "xp_roles")
    await LevelingManager.connect_to_database(database, "xp")

    print('Leveling manager is ready.', bot.user)

async def on_level_up(message, member_data, roles):
    await message.reply(f"You are now level {await member_data.level()}" + (f", you have received the {roles[0]}"
                                                                            f" role." if roles else ""))

async def rank(ctx):
    member_data = await LevelingManager.get_account(ctx.author)

    if member_data:
        await ctx.send(
            f'You are currently level **{await member_data.level()}**, with **{await member_data.xp()}** XP.')
        await ctx.send(f"I am still creating your account! please wait a few seconds.")

async def set_roles(ctx, *roles: discord.Role):
    await RoleManager.set_roles(ctx.guild, {"roles": roles})

async def leaderboard(ctx):
    guild_leaderboard = await LevelingManager.get_leaderboard(ctx.guild)
    formatted_leaderboard = [f"Member: {x.member}, XP: {await x.xp()}" for x in guild_leaderboard]

    await discordSuperUtils.PageManager(ctx, discordSuperUtils.generate_embeds(
        title="Leveling Leaderboard",
        description=f"Leaderboard of {ctx.guild}"


Leveling Manager Example

Playing Example

import discordSuperUtils
from discord.ext import commands
from discordSuperUtils import MusicManager

client_id = ...
client_secret = ...

bot = commands.Bot(command_prefix='-')
MusicManager = MusicManager(bot, client_id=client_id, client_secret=client_secret)

async def on_music_error(ctx, error):
    raise error  # add your error handling here! Errors are listed in the documentation.

async def on_play(ctx, player):
    await ctx.send(f"Playing {player}")

async def on_ready():
    print('Music manager is ready.', bot.user)

async def leave(ctx):
    if await MusicManager.leave(ctx):
        await ctx.send("Left Voice Channel")

async def np(ctx):
    if player := await MusicManager.now_playing(ctx):
        await ctx.send(f"Currently playing: {player}")

async def join(ctx):
    if await MusicManager.join(ctx):
        await ctx.send("Joined Voice Channel")

async def play(ctx, *, query: str):
    player = await MusicManager.create_player(query)
    if player:
        await MusicManager.queue_add(player=player, ctx=ctx)

        if not await MusicManager.play(ctx):
            await ctx.send("Added to queue")

        await ctx.send("Query not found.")

async def volume(ctx, volume: int):
    await MusicManager.volume(ctx, volume)

async def loop(ctx):
    is_loop = await MusicManager.loop(ctx)
    await ctx.send(f"Looping toggled to {is_loop}")

async def queueloop(ctx):
    is_loop = await MusicManager.queueloop(ctx)
    await ctx.send(f"Queue looping toggled to {is_loop}")

async def history(ctx):
    embeds = discordSuperUtils.generate_embeds(await MusicManager.history(ctx),
                                               "Song History",
                                               "Shows all played songs",
                                               string_format="Title: {}")

    page_manager = discordSuperUtils.PageManager(ctx, embeds, public=True)
    await page_manager.run()

async def skip(ctx, index: int = None):
    await MusicManager.skip(ctx, index)

async def queue(ctx):
    embeds = discordSuperUtils.generate_embeds(await MusicManager.get_queue(ctx),
                                               f"Now Playing: {await MusicManager.now_playing(ctx)}",
                                               string_format="Title: {}")

    page_manager = discordSuperUtils.PageManager(ctx, embeds, public=True)
    await page_manager.run()


MusicManager Example

Database Example

import aiopg

import discordSuperUtils
import aiosqlite
from motor import motor_asyncio
import asyncio

async def database_test():
    mongo_database = discordSuperUtils.DatabaseManager.connect(motor_asyncio.AsyncIOMotorClient("con-string")['name'])
    # Replace 'con-string' with the MongoDB connection string and 'name' by the database name you want to use.

    postgre_database = discordSuperUtils.DatabaseManager.connect(await aiopg.create_pool("con-string"))
    # Replace 'con-string' with the PostrgeSQL connection string.
    # PostgreSQL connection string example:
    # "dbname=name user=postgres password=xxx host=host" host is not required.

    mysql_database = await discordSuperUtils.create_mysql(host=..., port=..., user=..., password=..., dbname=...)
    # Replace '...' with the arguments.
    # create_mysql supports mysql AND mariaDB

    sqlite_database = discordSuperUtils.DatabaseManager.connect(await aiosqlite.connect('path'))
    # Replace 'path' with the SQLite database path. (must be on your computer)

    await sqlite_database.insert('economy', {'guild': ..., 'member': ..., 'currency': ..., 'bank': ...})

    await sqlite_database.close()  # not required.

loop = asyncio.get_event_loop()

Paginator Example

import discordSuperUtils
from discord.ext import commands
import discord

bot = commands.Bot(command_prefix='-')

async def on_ready():
    print('Page manager is ready.', bot.user)

async def paginator(ctx):
    messages = [
            title='Data (1/2)',
            description="Hello world"
        "Hello world"

    await discordSuperUtils.PageManager(ctx, messages).run()


More examples are listed in the examples folder.

Known Issues

  • Removing an animated emoji wont be recognized as a reaction role, as it shows up as not animated for some reason, breaking the reaction matcher. (Discord API Related)
  • Spotify queueing is very slow.