Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 545 Bytes

events.rst

File metadata and controls

23 lines (15 loc) · 545 Bytes

Custom Events

This package utilises custom discord.py events for punishments. This system will be further rolled out down the line to the standard lib.

Anti Mass Mentions

from antispam.ext import MassMentionPunishment

@bot.event
async def on_mass_mention_punishment(payload: MassMentionPunishment):
    # Your code here

The payload is an instance of the following:

.. autoclass:: antispam.ext.anti_mass_mention.MassMentionPunishment
    :members: