Skip to content

Instantly share code, notes, and snippets.

View arqvt's full-sized avatar

Alex arqvt

View GitHub Profile
@arqvt
arqvt / modal_implementation_example.py
Created March 4, 2022 20:32 — forked from JeyyGit/modal_implementation_example.py
Rough implementation of modal in discord.py 2
import discord, secrets
class TextInput:
"""for storing our text input data"""
def __init__(self, payload):
self.type = payload['type']
self.custom_id = payload['custom_id']
self.style = payload['style']
self.label = payload['label']
self.min_length = payload.get('min_length')