<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Discord.py on Blog</title><link>https://blog.hoshiyomi-dev.work/tags/discord.py/</link><description>Recent content in Discord.py on Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 11 Oct 2026 10:54:05 +0000</lastBuildDate><atom:link href="https://blog.hoshiyomi-dev.work/tags/discord.py/index.xml" rel="self" type="application/rss+xml"/><item><title>DragonBot Ticket Close Hang</title><link>https://blog.hoshiyomi-dev.work/post/dragonbot-ticket-close-hang/</link><pubDate>Sat, 10 Oct 2026 18:25:00 +0800</pubDate><guid>https://blog.hoshiyomi-dev.work/post/dragonbot-ticket-close-hang/</guid><description>&lt;h2 id="context"&gt;Context&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://github.com/xDDoubleTea/DragonBot"&gt;DragonBot&lt;/a&gt; is a customer-support ticket bot for a purchasing-agent business on Discord, written with &lt;code&gt;discord.py&lt;/code&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A customer opens a ticket, which is a private channel visible only to the customer and staff.&lt;/li&gt;
&lt;li&gt;Every status change renames the channel to &lt;code&gt;{type}-{id:04d}-{status}&lt;/code&gt;, so staff can see the status from the channel list.&lt;/li&gt;
&lt;li&gt;Closing a ticket sets the status to &lt;code&gt;CLOSED&lt;/code&gt;, exports the conversation with DiscordChatExporter, posts the transcript to an archive channel, and DMs the customer a feedback form.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="what-happened"&gt;What Happened&lt;/h2&gt;
&lt;p&gt;After a staff member confirmed closing a ticket, the bot sometimes sat on 「正在生成頻道紀錄以及傳送回饋單給顧客&amp;hellip;」 for up to 10 minutes before the after-close buttons appeared. The owner reported it too.&lt;/p&gt;</description></item></channel></rss>