NickWedzinga / BlekingePoGO

Bot automating and managing the BlekingePoGO server.
3 stars 0 forks source link

Investigate sorting of channels by hatch_time #117

Open NickWedzinga opened 4 years ago

NickWedzinga commented 4 years ago

Check if API supports inserting at certain index under category. Can check hatch_time for all channels under category with channel_id in db.

Can't get it to work, seems like an issue currently: https://github.com/Rapptz/discord.py/issues/5818

https://github.com/discord/discord-api-docs/issues/2070

discord.py 1.7 added .move(), but also mentions edit should work: https://discordpy.readthedocs.io/en/latest/api.html#discord.abc.GuildChannel.move

NickWedzinga commented 4 years ago

Can't get position argument to work.

Get position of a certain channel and print it, it returns 2. Create new channel with position argument set as 3, despite having higher number this channel is still created above the channel with position 2.