expand discord message links
Project description
Message Expander
example
message
attachment
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e02bc1e4d5ed3da4068d7bda3052449410ebae3f326612a83dd19109acdfa800
|
|
| MD5 |
0a14b510928202ec2bb1102916f163a9
|
|
| BLAKE2b-256 |
5b8c32848a59746821a400c3a610ef206544a9baff389a12cafc3216ca60e2cd
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ccd315c930b530daa90d8f77b4a6f77422f97075ed27dae01b4288feee1d302
|
|
| MD5 |
7dbc47ca3caf83cfa416e6fc4ad2563f
|
|
| BLAKE2b-256 |
741005d387e4fc77eb0b3d209cbee2b29c04ed0f5ffe363df08fda38545ddaea
|