-
Introduction
Introduction
This is the documentation for discord.py, a library for Python to aid
in creating applications that utilise the Discord API.
discord.py works with Python 3.8 or higher. Support for earlie...
-
Quickstart
Quickstart
This page gives a brief introduction to the library. It assumes you have the library installed,
if you don’t check the Installing portion.
A Minimal Bot¶
It looks something like this:
# Thi...
-
API Reference
API Reference
Note
This module uses the Python logging module to log diagnostic and errors
in an output independent way. If the logging module is not configured,
these logs will not be output anywher...
-
API Reference
API Reference
description=None,
discord.Client and as a result
anything that you can do with a
discord.Client you can do with
this bot.
This class also subclasses
Unlike
CommandTree and is automat...
-
Setting Up Logging
import logging
handler = logging.FileHandler(filename='discord.log', encoding='utf-8', mode='w')
# Assume client refers to a discord.Client subclass...
client.run(token, log_handler=handler)
You ca...
-
Frequently Asked Questions — discord.py 0.16.12 documentation
In asynchronous programming a blocking call is essentially all the parts of the function that are not
await. Do not
despair however, because not all forms of blocking are bad! Using blocking calls is...