Custom events derived from events dispatched by Discord.
Project description
Custom events derived from events dispatched by Discord.
⚠️ Work In Progress!
Installation
This extension is currently not in PyPI.
$ python3 -m pip install -U git+https://github.com/vincentrps/nextcord-ext-events
Usage
An example for when subscribing to the on_member_kick event.
import nextcord
from nextcord.ext import commands, events
from nextcord.ext.events import member_kick
class MyBot(commands.Bot, events.EventsMixin):
async def on_ready(self):
print('Logged in!')
async def on_member_kick(self, member: nextcord.Member, entry: nextcord.AuditLogEntry):
print(f'{member} was kicked from {member.guild}!')
bot = MyBot(command_prefix='!', intents=nextcord.Intents.all())
bot.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
Built Distribution
File details
Details for the file nextcord-ext-events-0.1.0a0.tar.gz
.
File metadata
- Download URL: nextcord-ext-events-0.1.0a0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eea5efba841b1b6835c6849d98f33b2e91ad9ff6e865c3c33ad0b5fdcda81de5 |
|
MD5 | 86652eacd2f7b1bf1ad96e0607e17a3a |
|
BLAKE2b-256 | 9d44ae05b785960b47d0b42fc793b8f164a83e303e9c27b0a9b5217ba6634443 |
File details
Details for the file nextcord_ext_events-0.1.0a0-py3-none-any.whl
.
File metadata
- Download URL: nextcord_ext_events-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d915e92d9ec8dace267b6d3676f48733feb858db2e1f18b274d6f1ce3542c592 |
|
MD5 | d2c60d2325fb6b9c2116205a53cdb773 |
|
BLAKE2b-256 | f6d5ac6ddb47cc8b0335b8c4f69eacd292b00179f1becfe436802670b279d85d |