@@ -1875,8 +1875,6 @@ async def edit(
18751875
18761876 features : list [GuildFeature ] = self .features .copy ()
18771877
1878- features_modified : bool = False
1879-
18801878 if community is not MISSING :
18811879 if community :
18821880 if (
@@ -1896,7 +1894,6 @@ async def edit(
18961894 if "public_updates_channel_id" in fields :
18971895 fields ["public_updates_channel_id" ] = None
18981896 features .remove ("COMMUNITY" )
1899- features_modified = True
19001897
19011898 if disable_invites is not MISSING :
19021899 if disable_invites :
@@ -1905,7 +1902,6 @@ async def edit(
19051902 else :
19061903 if "INVITES_DISABLED" in features :
19071904 features .remove ("INVITES_DISABLED" )
1908- features_modified = True
19091905
19101906 if discoverable is not MISSING :
19111907 if discoverable :
@@ -1914,7 +1910,6 @@ async def edit(
19141910 else :
19151911 if "DISCOVERABLE" in features :
19161912 features .remove ("DISCOVERABLE" )
1917- features_modified = True
19181913
19191914 if raid_alerts is not MISSING :
19201915 if raid_alerts :
@@ -1923,7 +1918,6 @@ async def edit(
19231918 else :
19241919 if "RAID_ALERTS_DISABLED" not in features :
19251920 features .append ("RAID_ALERTS_DISABLED" )
1926- features_modified = True
19271921
19281922 if enable_activity_feed is not MISSING :
19291923 if enable_activity_feed :
@@ -1936,9 +1930,8 @@ async def edit(
19361930 features .remove ("ACTIVITY_FEED_ENABLED_BY_USER" )
19371931 if "ACTIVITY_FEED_DISABLED_BY_USER" not in features :
19381932 features .append ("ACTIVITY_FEED_DISABLED_BY_USER" )
1939- features_modified = True
19401933
1941- if features_modified :
1934+ if self . features != features :
19421935 fields ["features" ] = features
19431936
19441937 data = await http .edit_guild (self .id , reason = reason , ** fields )
0 commit comments