def __init__(self, channel, title, description,
modulename="Modis", colour=0xAAFF00, thumbnail=None, image=None, datapacks=()):
"""Initialises variables and builds GUI
Args:
channel (discord.Channel): Channel to lock UI to
title (str): GUI title, in bold
description (str): GUI description
modulename (str): Name of your module, default "Modis"
colour (int): Colour of line on left, default 0xAAFF00
thumbnail (str): URL to picture shown in top right corner, default None
datapacks (list): Contains tuples of (title str, data str, inline bool)
"""
self.channel = channel
self.title = title
self.description = description
self.modulename = modulename
self.colour = colour
self.thumbnail = thumbnail
self.image = image
self.datapacks = datapacks
self.built_embed = self.build()
self.sent_embed = None
评论列表
文章目录