diff --git a/naff/api/http/http_requests/channels.py b/naff/api/http/http_requests/channels.py index e9920160b..81be399ee 100644 --- a/naff/api/http/http_requests/channels.py +++ b/naff/api/http/http_requests/channels.py @@ -1,4 +1,3 @@ -from abc import ABC from typing import TYPE_CHECKING, Optional, Sequence, cast, overload import discord_typings @@ -17,7 +16,7 @@ from naff.models.discord.snowflake import Snowflake_Type -class ChannelRequests(CanRequest, ABC): +class ChannelRequests(CanRequest): async def get_channel(self, channel_id: "Snowflake_Type") -> discord_typings.ChannelData: """ Get a channel by ID. Returns a channel object. If the channel is a thread, a thread member object is included. diff --git a/naff/api/http/http_requests/emojis.py b/naff/api/http/http_requests/emojis.py index 8e878ba87..d9199a8df 100644 --- a/naff/api/http/http_requests/emojis.py +++ b/naff/api/http/http_requests/emojis.py @@ -1,4 +1,3 @@ -from abc import ABC from typing import TYPE_CHECKING, cast import discord_typings @@ -13,7 +12,7 @@ from naff.models.discord.snowflake import Snowflake_Type -class EmojiRequests(CanRequest, ABC): +class EmojiRequests(CanRequest): async def get_all_guild_emoji(self, guild_id: "Snowflake_Type") -> list[discord_typings.EmojiData]: """ Get all the emoji from a guild. diff --git a/naff/api/http/http_requests/interactions.py b/naff/api/http/http_requests/interactions.py index 32889a250..ce38ae1ec 100644 --- a/naff/api/http/http_requests/interactions.py +++ b/naff/api/http/http_requests/interactions.py @@ -1,4 +1,3 @@ -from abc import ABC from typing import TYPE_CHECKING, cast import discord_typings @@ -15,7 +14,7 @@ from naff import UPLOADABLE_TYPE -class InteractionRequests(CanRequest, ABC): +class InteractionRequests(CanRequest): async def delete_application_command( self, application_id: "Snowflake_Type", guild_id: "Snowflake_Type", command_id: "Snowflake_Type" ) -> None: diff --git a/naff/api/http/http_requests/members.py b/naff/api/http/http_requests/members.py index e21bf6261..ce64dd21b 100644 --- a/naff/api/http/http_requests/members.py +++ b/naff/api/http/http_requests/members.py @@ -1,4 +1,3 @@ -from abc import ABC from typing import TYPE_CHECKING, cast from datetime import datetime @@ -17,7 +16,7 @@ from naff.models.discord.snowflake import Snowflake_Type -class MemberRequests(CanRequest, ABC): +class MemberRequests(CanRequest): async def get_member( self, guild_id: "Snowflake_Type", user_id: "Snowflake_Type" ) -> discord_typings.GuildMemberData: diff --git a/naff/api/http/http_requests/messages.py b/naff/api/http/http_requests/messages.py index b49dc0e83..763eab6b2 100644 --- a/naff/api/http/http_requests/messages.py +++ b/naff/api/http/http_requests/messages.py @@ -1,4 +1,3 @@ -from abc import ABC from typing import TYPE_CHECKING, cast import discord_typings @@ -15,7 +14,7 @@ from naff import UPLOADABLE_TYPE -class MessageRequests(CanRequest, ABC): +class MessageRequests(CanRequest): async def create_message( self, payload: dict,