From 6c021e4d56bbfbedaa7adfac76d36e795fced6f8 Mon Sep 17 00:00:00 2001 From: dolfies Date: Wed, 10 Nov 2021 18:16:29 -0500 Subject: [PATCH] Remove now useless mute() and unmute() methods --- discord/guild.py | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/discord/guild.py b/discord/guild.py index b88f0e382..49e8c0089 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -2920,48 +2920,3 @@ class Guild(Hashable): region = str(preferred_region) if preferred_region else str(state.preferred_region) await ws.voice_state(self.id, channel_id, self_mute, self_deaf, self_video, region) - - async def mute(self, *, duration: Optional[int] = None) -> None: - """|coro| - - Mutes the guild. - - .. versionadded:: 1.9 - - Parameters - ----------- - duration: Optional[:class:`int`] - The duration (in hours) of the mute. Defaults to - ``None`` for an indefinite mute. - - Raises - ------- - HTTPException - Muting failed. - """ - fields = { - 'muted': True - } - - if duration is not None: - mute_config = { - 'selected_time_window': duration * 3600, - 'end_time': (datetime.utcnow() + timedelta(hours=duration)).isoformat() - } - fields['mute_config'] = mute_config - - await self._state.http.edit_guild_settings(self.id, **fields) - - async def unmute(self) -> None: - """|coro| - - Unmutes the guild. - - .. versionadded:: 1.9 - - Raises - ------- - HTTPException - Unmuting failed. - """ - await self._state.http.edit_guild_settings(self.id, muted=False) \ No newline at end of file