Skip to main content

Helper of discord.py's on_voice_state_update

Project description

English/Japanese

PyPI - Version PyPI - Downloads

peper

peper = <small>d</small>p<small>y-voic</small>e<small>-hel</small>per
A wrapper of discord.py's on_voice_state_update.

How to use

python3 -m pip install dpy-peper

Use as extension

Load with load_extension.

from discord.ext import commands

bot = commands.Bot(command_prefix='/')
bot.load_extension('dpy_peper')
# or
# bot.load_extension('discord.ext.peper')
bot.run("Th1sIsN0tT0k3n.B3cause.1fiShowB0tWillG3tH4cked")

Use as cog

Import VoiceWrapper from module.

from discord.ext import commands
from dpy_peper import VoiceWrapper
# or
# from discord.ext.peper import VoiceWrapper
bot = commands.Bot(command_prefix='/')
bot.add_cog(VoiceWrapper(bot))
bot.run("Th1sIsN0tT0k3n.B3cause.1fiShowB0tWillG3tH4cked")

Events

Name Description Arguments
voice_channel_update fires on when someone connected/moved/disconnected VC. member, before_channel, after_channel
voice_channel_connect fires on when someone connected VC. member, channel
voice_channel_move fires on when someone moved VC. member, before_channel, after_channel
voice_channel_disconnect fires on when someone disconnected VC. member, channel
voice_channel_afk fires on when someone connected AFK VC. member, before_channel
voice_channel_alone fires on when someone disconnected VC and only 1 user is remaining. member, channel
voice_mute_update fires on when someone enabled/disabled self-mute/guild-mute. member
voice_mute_enable fires on when someone enabled self-mute/guild-mute. member
voice_mute_disable fires on when someone disabled self-mute/guild-mute. member
voice_self_mute_update fires on when someone self-muted/self-unmuted. member
voice_self_mute_enable fires on when someone enabled self-mute. member
voice_self_mute_disable fires on when someone disabled self-mute. member
voice_guild_mute_update fires on when someone guild-muted/guild-unmuted. member
voice_guild_mute_enable fires on when someone enabled guild-mute. member
voice_guild_mute_disable fires on when someone disabled guild-mute. member
voice_deaf_update fires on when someone enabled/disabled self-deaf/guild-deaf. member
voice_deaf_enable fires on when someone enabled self-mute/guild-mute. member
voice_deaf_disable fires on when someone disabled self-mute/guild-mute. member
voice_self_deaf_update fires on when someone enabled/disabled self-deaf. member
voice_self_deaf_enable fires on when someone enabled self-deaf. member
voice_self_deaf_disable fires on when someone disabled self-deaf. member
voice_guild_deaf_update fires on when someone enabled/disabled guild-deaf. member
voice_guild_deaf_enable fires on when someone enabled guild-deaf. member
voice_guild_deaf_disable fires on when someone disabled guild-deaf. member
voice_stream_update fires on when someone started/ended stream. member
voice_stream_start fires on when someone started stream. member
voice_stream_end fires on when someone ended stream. member
voice_video_update fires on when someone started/ended video. member
voice_video_start fires on when someone started video. member
voice_video_end fires on when someone ended video. member

Suffixes

(event)_me: when client did. member argument will be ignored.
(event)_bot: when bot did.
(event)_other_bot: when bot did(without client).
(event)_user: when user did(not bot).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

dpy_peper-1.0.1-py3-none-any.whl (4.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page