Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Get started

kuso edited this page Oct 14, 2021 · 1 revision

Installation

To get started, you need to install the libary of course.

Windows

> py -m pip install discord-ui

Linux

$ python3 -m pip install discord-ui

Setup

All you need to do is creating a discord bot instance.

# import the libary
import discord_ui
from discord.ext.commands import Bot
bot = Bot(" ")

Then you need to create a UI instance which we will use later

...
ui = discord_ui.UI(bot)

That's everything for the setup

Clone this wiki locally