mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 02:12:32 -05:00
Add support for timeouts to Mutes cog (#5604)
Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
19
redbot/cogs/mutes/models.py
Normal file
19
redbot/cogs/mutes/models.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from typing import Optional, Dict
|
||||
|
||||
import discord
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class MuteResponse:
|
||||
success: bool
|
||||
reason: Optional[str]
|
||||
user: discord.Member
|
||||
|
||||
|
||||
@dataclass
|
||||
class ChannelMuteResponse(MuteResponse):
|
||||
channel: discord.abc.GuildChannel
|
||||
old_overs: Optional[Dict[str, bool]]
|
||||
voice_mute: bool
|
||||
Reference in New Issue
Block a user