Skip to content

Commit

Permalink
Remove 'quick showcase' channel concept from 'showcase' extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Mega-JC committed Jul 19, 2024
1 parent a74a9c1 commit 7299033
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pcbot/exts/showcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ async def on_thread_create(self, thread: discord.Thread):
async def prompt_author_for_feedback_thread(self, message: discord.Message):
assert (
message.guild
and isinstance(message.channel, discord.TextChannel)
and self.bot.user
and (bot_member := message.guild.get_member(self.bot.user.id))
)
Expand Down Expand Up @@ -494,7 +495,7 @@ async def prompt_author_for_feedback_thread(self, message: discord.Message):
if snakecore.utils.is_emoji_equal(event.emoji, "✅"):
await message.create_thread(
name=(
"Quick Showcase Feedback Thread for "
f"Feedback for "
+ f"@{message.author.name} | {str(message.author.id)[-6:]}"
)[:100],
auto_archive_duration=(
Expand All @@ -511,8 +512,8 @@ async def prompt_author_for_feedback_thread(self, message: discord.Message):
if bot_perms.manage_threads
else None
), # type: ignore
reason="A quick showcase message author requested a feedback "
"thread.",
reason=f"A '#{message.channel.name}' message "
"author requested a feedback thread.",
)

try:
Expand Down

0 comments on commit 7299033

Please sign in to comment.