Merge branch 'main' of https://github.com/Payphone-Bot/Payphone
This commit is contained in:
@@ -108,6 +108,16 @@ class Payphone(commands.AutoShardedBot):
|
|||||||
|
|
||||||
print(f"Shard {shard_id} was resumed!")
|
print(f"Shard {shard_id} was resumed!")
|
||||||
|
|
||||||
|
async def on_shard_connect(self, shard_id: int) -> None:
|
||||||
|
try:
|
||||||
|
self.update_heartbeat.start()
|
||||||
|
|
||||||
|
except RuntimeError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
async def on_shard_disconnect(self, shard_id: int) -> None:
|
||||||
|
self.update_heartbeat.cancel()
|
||||||
|
|
||||||
async def get_or_fetch_channel(
|
async def get_or_fetch_channel(
|
||||||
self, channel_id: int
|
self, channel_id: int
|
||||||
) -> abc.GuildChannel | abc.PrivateChannel | discord.Thread | None:
|
) -> abc.GuildChannel | abc.PrivateChannel | discord.Thread | None:
|
||||||
|
|||||||
Reference in New Issue
Block a user