diff --git a/uqcsbot/yelling.py b/uqcsbot/yelling.py index 8aa28fa..aea03ae 100644 --- a/uqcsbot/yelling.py +++ b/uqcsbot/yelling.py @@ -1,7 +1,6 @@ import discord from typing import List, Dict, Callable, Any from discord.ext import commands -from discord._types import ClientT from random import choice, random import re @@ -13,10 +12,6 @@ from functools import wraps -class DodgyType(discord.interactions.InteractionResponse[ClientT]): - pass - - def yelling_exemptor(input_args: List[str] = ["text"]) -> Callable[..., Any]: def handler(func: Callable[..., Any]): @wraps(func) @@ -52,7 +47,7 @@ async def wrapper( await func(cogself, *args, **kwargs) return - assert isinstance((x := interaction.response), DodgyType) + x: discord.interactions.InteractionResponse[discord.Client] = interaction.response await x.send_message( str(discord.utils.get(bot.emojis, name="disapproval") or "") )