In this tutorial I will go through the entire length of pagination in discord.py
I kindly ask you to go through the entire thing, as it is not recommended to skip the subtopics because they are interconnected in some way.
In this tutorial I will go through the entire length of pagination in discord.py
I kindly ask you to go through the entire thing, as it is not recommended to skip the subtopics because they are interconnected in some way.
# Simple example code to create a per-guild prefix. | |
import asyncpg | |
import asyncio | |
from discord.ext import commands | |
# Credentials for our bot and the database. | |
# I suggest searching up on PostgreSQL connection strings. | |
creds = \ |
# asyncpg docs: https://magicstack.github.io/asyncpg/current/ | |
# This uses discord.py rewrite branch and .format(). If you are using the async branch of discord.py, it shouldn't matter much | |
# as only 'await ctx.send()' is something you should need to change. If you are using python 3.6+, you can use f strings as opposed to | |
# .format() for increased efficiency. | |
import discord | |
from discord.ext import commands | |
import asyncio | |
import asyncpg |