@@ -38,7 +38,9 @@ def __init__(self, bot: Bot) -> None:
3838 )
3939 )
4040 async def translator (
41- self , interaction : Interaction , this : bool = THIS_DEFAULT # noqa: FBT001
41+ self ,
42+ interaction : Interaction ,
43+ this : bool = THIS_DEFAULT , # noqa: FBT001
4244 ) -> None :
4345 """Set or remove the languages to be translated for channels."""
4446 loc = Localization (interaction .locale , resources )
@@ -51,7 +53,7 @@ async def on_submit(interaction: Interaction) -> None:
5153 channels = (
5254 [interaction .channel_id ]
5355 if this
54- else [channel .id for channel in channel_select .values ] # noqa: PD011
56+ else [channel .id for channel in channel_select .values ]
5557 )
5658 for channel in channels :
5759 config = await get_channel (channel )
@@ -81,7 +83,9 @@ async def on_submit(interaction: Interaction) -> None:
8183 )
8284 )
8385 async def language (
84- self , interaction : Interaction , this : bool = THIS_DEFAULT # noqa: FBT001
86+ self ,
87+ interaction : Interaction ,
88+ this : bool = THIS_DEFAULT , # noqa: FBT001
8589 ) -> None :
8690 """Set or remove the main language of the channels."""
8791 loc = Localization (interaction .locale , resources )
@@ -95,7 +99,7 @@ async def on_submit(interaction: Interaction) -> None:
9599 channels = (
96100 [interaction .channel_id ]
97101 if this
98- else [channel .id for channel in channel_select .values ] # noqa: PD011
102+ else [channel .id for channel in channel_select .values ]
99103 )
100104
101105 if len (channels ) == 0 :
0 commit comments