Skip to content

Instantly share code, notes, and snippets.

View ronenlazowski's full-sized avatar
📡

Ronen Lazowski ronenlazowski

📡
View GitHub Profile
import discord
from discord import app_commands, ui, Embed
from discord.ext import commands
import json
import os
import re
from collections import defaultdict
import asyncio
@ronenlazowski
ronenlazowski / modmail.py
Created April 6, 2025 22:20
On line 41; Number of parameters was 0 in 'Modal.on_submit' and is now 2 in overriding 'ModmailModal.on_submit' method.
import json
import os
import discord
from discord import ui, Embed, Colour, TextStyle, Interaction
from discord.ext import commands
from discord import app_commands
CONFIG_FILE = "modmail.json"
if not os.path.exists(CONFIG_FILE):