aboutsummaryrefslogtreecommitdiffstats
path: root/botstrap.py
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2023-03-13 08:03:27 +0100
committerGravatar shtlrs <[email protected]>2023-03-13 08:03:27 +0100
commit00330956f6140476d9e9f633b045921b214b3d37 (patch)
tree6dd1a8f529c7c29c011cabe6145cfe157bb569d0 /botstrap.py
parentappease linter (diff)
remove olf version o fupgrade to community func
Diffstat (limited to 'botstrap.py')
-rw-r--r--botstrap.py12
1 files changed, 1 insertions, 11 deletions
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(