From 00330956f6140476d9e9f633b045921b214b3d37 Mon Sep 17 00:00:00 2001 From: shtlrs Date: Mon, 13 Mar 2023 08:03:27 +0100 Subject: remove olf version o fupgrade to community func --- botstrap.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'botstrap.py') diff --git a/botstrap.py b/botstrap.py index 472b18478..e2a9534d2 100644 --- a/botstrap.py +++ b/botstrap.py @@ -69,17 +69,7 @@ def upgrade_server_to_community_if_necessary( payload["rules_channel_id"] = rules_channel_id_ payload["public_updates_channel_id"] = announcements_channel_id_ client.patch(f"/guilds/{guild_id}", json=payload) - - -def upgrade_server_to_community(guild_id: int | str, client: DiscordClient) -> None: - """ - Transforms a server into a community one. - - Return true if the server has been correctly upgraded, False otherwise. - """ - payload = {"features": [COMMUNITY_FEATURE]} - client.patch(f"/guilds/{guild_id}", json=payload) - log.info(f"Server {guild_id} has been successfully updated to a community.") + log.info(f"Server {guild_id} has been successfully updated to a community.") def create_forum_channel( -- cgit v1.2.3