Skip to content

Commit 9bf59e7

Browse files
ci: correct from checks.
1 parent 476026f commit 9bf59e7

File tree

9 files changed

+1
-9
lines changed

9 files changed

+1
-9
lines changed

examples/bot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# The client is also the main object that interacts with the API, what makes requests with Discord.
1313
client = interactions.Client()
1414

15+
1516
# With our client established, let's have the library inform us when the client is ready.
1617
# These are known as event listeners. An event listener can be established in one of two ways.
1718
# You can provide the name of the event, prefixed by an "on_", or by telling the event decorator what event it is.

interactions/api/events/processors/_template.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515

1616
class Processor:
17-
1817
callback: AsyncCallable
1918
event_name: str
2019

interactions/api/gateway/gateway.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ async def run(self) -> None:
170170

171171
async def dispatch_opcode(self, data, op: OPCODE) -> None:
172172
match op:
173-
174173
case OPCODE.HEARTBEAT:
175174
self.logger.debug("Received heartbeat request from gateway")
176175
return await self.send_heartbeat()
@@ -338,7 +337,6 @@ async def request_member_chunks(
338337
await self.send_json(payload)
339338

340339
async def _process_member_chunk(self, chunk: dict) -> Task[None]:
341-
342340
if guild := self.state.client.cache.get_guild(to_snowflake(chunk.get("guild_id"))):
343341
return asyncio.create_task(guild.process_member_chunk(chunk))
344342
raise ValueError(f"No guild exists for {chunk.get('guild_id')}")

interactions/api/http/http_requests/guild.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,6 @@ async def create_guild(
742742
system_channel_id: "Snowflake_Type | None" = None,
743743
system_channel_flags: int | None = None,
744744
) -> discord_typings.GuildData:
745-
746745
payload = {
747746
"name": name,
748747
"icon": icon,

interactions/client/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,6 @@ async def synchronise_interactions(
14481448
local_cmds_json = application_commands_to_dict(self.interactions_by_scope, self)
14491449

14501450
async def sync_scope(cmd_scope) -> None:
1451-
14521451
sync_needed_flag = False # a flag to force this scope to synchronise
14531452
sync_payload = [] # the payload to be pushed to discord
14541453

interactions/ext/debug_extension/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def get_cache_state(bot: "Client") -> str:
3939
table = []
4040

4141
for cache, val in caches.items():
42-
4342
if isinstance(val, TTLCache):
4443
amount = [len(val), f"{val.hard_limit}({val.soft_limit})"]
4544
expire = f"{val.ttl}s"

interactions/models/internal/listener.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212

1313
class Listener(CallbackObject):
14-
1514
event: str
1615
"""Name of the event to listen to."""
1716
callback: AsyncCallable

tests/test_bot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ async def test_messages(bot: Client, guild: Guild, channel: GuildText) -> None:
189189
thread = await msg.create_thread("Test Thread")
190190

191191
try:
192-
193192
_m = await thread.send("Test")
194193
ensure_attributes(_m)
195194

tests/test_cache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def bot() -> Client:
1515

1616

1717
def test_dm_channel(bot: Client) -> None:
18-
1918
channel = bot.cache.place_channel_data(SAMPLE_DM_DATA())
2019
assert isinstance(channel, DM)
2120
assert channel.recipient.id == to_snowflake(SAMPLE_USER_DATA()["id"])

0 commit comments

Comments
 (0)