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
Close
Hashes for nextcord-ext-events-0.1.0a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eea5efba841b1b6835c6849d98f33b2e91ad9ff6e865c3c33ad0b5fdcda81de5 |
|
MD5 | 86652eacd2f7b1bf1ad96e0607e17a3a |
|
BLAKE2b-256 | 9d44ae05b785960b47d0b42fc793b8f164a83e303e9c27b0a9b5217ba6634443 |
Close
Hashes for nextcord_ext_events-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d915e92d9ec8dace267b6d3676f48733feb858db2e1f18b274d6f1ce3542c592 |
|
MD5 | d2c60d2325fb6b9c2116205a53cdb773 |
|
BLAKE2b-256 | f6d5ac6ddb47cc8b0335b8c4f69eacd292b00179f1becfe436802670b279d85d |