Skip to main content

expand discord message links

Project description

Message Expander

example

message

message

attachment

attachment

embed

embed

Setting...

$ pip install -U expander

Usage...

import discord
from expand import message_expander
from discord.ext import commands

bot = commands.Bot(
    intents=discord.Intents.all()
)

@bot.event
async def on_message(message: discord.Message):
    # statements...
    await message_expander(bot=bot, message=message)

else if you use extention...

import discord
from discord.ext.commands import Bot

INITIAL_EXTENTIONS = [
    ...,
    "message_expander"
]


class Main(Bot):
    def __init__(self, **options):
        super().__init__(**options)

    async def on_ready(self):
        for cog in INITIAL_EXTENTIONS:
            self.load_extension(cog)

        print(self.user.id)
        print(self.user.name)
        print("--------------")


if __name__ == '__main__':
    Main(
        command_prefix=...,
        intents=discord.Intents.all(),
        help_command=...
    ).run("TOKEN")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dispand-1.0.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

dispand-1.0.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page