Skip to content
Discussion options

You must be logged in to vote

I don't know who suggested you to use Thread. discord.py has its own task system *shrug*

You can define partial channel and store it in bot instance (it works same as channel)

CHANNEL_ID = ...
GUILD_ID = ...
client = discord.Client(...)
client.channel = client.get_partial_messageable(CHANNEL_ID, guild_id=GUILD_ID)

Example for ext.task

from discord.ext import tasks

...

@tasks.loop(seconds=1800)
async def auto_bump():
    await client.channel.send('/bump')

...

auto_bump.start()
client.run(token)

It is also advice to make proper commands instead of parsing message content

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MasterOpel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants