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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file dispand-1.0.0.tar.gz.

File metadata

  • Download URL: dispand-1.0.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for dispand-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e02bc1e4d5ed3da4068d7bda3052449410ebae3f326612a83dd19109acdfa800
MD5 0a14b510928202ec2bb1102916f163a9
BLAKE2b-256 5b8c32848a59746821a400c3a610ef206544a9baff389a12cafc3216ca60e2cd

See more details on using hashes here.

File details

Details for the file dispand-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dispand-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for dispand-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ccd315c930b530daa90d8f77b4a6f77422f97075ed27dae01b4288feee1d302
MD5 7dbc47ca3caf83cfa416e6fc4ad2563f
BLAKE2b-256 741005d387e4fc77eb0b3d209cbee2b29c04ed0f5ffe363df08fda38545ddaea

See more details on using hashes here.

Supported by

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