Skip to content

Commit

Permalink
Add support for timeouts to Mutes cog (#5604)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Oliveira <[email protected]>
  • Loading branch information
TrustyJAID and Flame442 authored Apr 1, 2024
1 parent e71312e commit 463f0c5
Show file tree
Hide file tree
Showing 3 changed files with 436 additions and 345 deletions.
19 changes: 19 additions & 0 deletions redbot/cogs/mutes/models.py
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 463f0c5

Please sign in to comment.