@@ -191,7 +191,7 @@ async def to_onebot_message(self, event: MessageEvent) -> OneBotMessage:
191191 message_list .append (OneBotMessageSegment .mention_all ())
192192 return OneBotMessage (message_list )
193193
194- @supported_action ( "QQ Guild" )
194+ @supported_action
195195 async def send_message (
196196 self ,
197197 * ,
@@ -268,7 +268,7 @@ async def send_message(
268268 "time" : time ,
269269 }
270270
271- @supported_action ( "QQ Guild" )
271+ @supported_action
272272 async def get_guild_info (
273273 self , * , guild_id : str , ** kwargs : Any
274274 ) -> Dict [Union [Literal ["guild_id" , "guild_name" ], str ], str ]:
@@ -279,7 +279,7 @@ async def get_guild_info(
279279 guild_dict ["guild_name" ] = guild_dict ["name" ]
280280 return guild_dict
281281
282- @supported_action ( "QQ Guild" )
282+ @supported_action
283283 async def get_guild_list (
284284 self , ** kwargs : Any
285285 ) -> List [Dict [Union [Literal ["guild_id" , "guild_name" ], str ], str ]]:
@@ -303,7 +303,7 @@ async def get_guild_list(
303303 guilds_list .append (guild_dict )
304304 return guilds_list
305305
306- @supported_action ( "QQ Guild" )
306+ @supported_action
307307 async def get_guild_member_info (
308308 self , * , guild_id : str , user_id : str , ** kwargs : Any
309309 ) -> Dict [Union [Literal ["user_id" , "user_name" , "user_displayname" ], str ], str ]:
@@ -329,7 +329,7 @@ async def _get_all_members(self, guild_id: str) -> List[Member]:
329329 after = str (result [- 1 ].user .id ) # type: ignore
330330 return members
331331
332- @supported_action ( "QQ Guild" )
332+ @supported_action
333333 async def get_guild_member_list (
334334 self , * , guild_id : str , ** kwargs : Any
335335 ) -> List [
@@ -348,7 +348,7 @@ async def get_guild_member_list(
348348 )
349349 return members_list
350350
351- @supported_action ( "QQ Guild" )
351+ @supported_action
352352 async def get_channel_info (
353353 self , * , guild_id : str , channel_id : str , ** kwargs : Any
354354 ) -> Dict [Union [Literal ["channel_id" , "channel_name" ], str ], str ]:
@@ -359,7 +359,7 @@ async def get_channel_info(
359359 "channel_name" : result .name , # type: ignore
360360 }
361361
362- @supported_action ( "QQ Guild" )
362+ @supported_action
363363 async def get_channel_list (
364364 self , * , guild_id : str , ** kwargs : Any
365365 ) -> List [Dict [Union [Literal ["channel_id" , "channel_name" ], str ], str ]]:
@@ -375,13 +375,13 @@ async def get_channel_list(
375375 )
376376 return channels_list
377377
378- @supported_action ( "QQ Guild" )
378+ @supported_action
379379 async def set_channel_name (
380380 self , * , guild_id : str , channel_id : str , channel_name : str , ** kwargs : Any
381381 ) -> None :
382382 await self .bot .patch_channel (channel_id = int (channel_id ), name = channel_name )
383383
384- @supported_action ( "QQ Guild" )
384+ @supported_action
385385 async def get_channel_member_info (
386386 self , * , guild_id : str , channel_id : str , user_id : str , ** kwargs : Any
387387 ) -> Dict [Union [Literal ["user_id" , "user_name" , "user_displayname" ], str ], str ]:
@@ -393,7 +393,7 @@ async def get_channel_member_info(
393393 "user_displayname" : result .nick , # type: ignore
394394 }
395395
396- @supported_action ( "QQ Guild" )
396+ @supported_action
397397 async def get_channel_member_list (
398398 self , * , guild_id : str , channel_id : str , ** kwargs : Any
399399 ) -> List [
@@ -446,7 +446,7 @@ def can_view(member: Member) -> bool:
446446 )
447447 return members_list
448448
449- @supported_action ( "QQ Guild" )
449+ @supported_action
450450 async def delete_message (self , * , message_id : str , ** kwargs : Any ) -> None :
451451 message , _ , channel = self ._from_ob_message_id (message_id )
452452 if channel is None or message is None :
0 commit comments