Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions bill/cogs/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from discord import app_commands
from discord.ext import commands

from bill.components.profile import profile_wizard_view
from bill.components.profile import member_presentation, profile_intro_view
from bill.components.public_profile import public_profile_view
from bill.worker_client import DraftScope, ProfileDraft, ServerProfileMode, WorkerAPIError

Expand Down Expand Up @@ -145,7 +145,7 @@ async def profile(
lookup.profile,
guild_id=interaction.guild_id or 0,
owner_view=target.id == interaction.user.id,
display_name=target.display_name,
presentation=member_presentation(target),
)
)
return
Expand Down Expand Up @@ -224,9 +224,12 @@ async def deliver_draft(
try:
dm = await interaction.user.create_dm()
await dm.send(
"Welcome to Bill profile setup. Your progress is private and saved automatically."
"Welcome to Bill profile setup. This private wizard helps you choose what "
"other members can see, add public links, and optionally connect Throne. "
"Your progress saves automatically, and nothing is published until you "
"confirm it.",
view=profile_intro_view(draft),
)
await dm.send(view=profile_wizard_view(draft))
except discord.Forbidden:
if interaction.response.is_done():
await interaction.followup.send(
Expand Down
10 changes: 8 additions & 2 deletions bill/cogs/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from discord import app_commands
from discord.ext import commands

from bill.components.setup import missing_channel_permissions, setup_view
from bill.components.setup import guild_presentation, missing_channel_permissions, setup_view
from bill.worker_client import WorkerAPIError

if TYPE_CHECKING:
Expand Down Expand Up @@ -50,7 +50,13 @@ async def setup(self, interaction: discord.Interaction[discord.Client]) -> None:
)
return
# It is public for moderator visibility, while callback authorization is initiator-bound.
await interaction.response.send_message(view=setup_view(started.session), ephemeral=False)
await interaction.response.send_message(
view=setup_view(
started.session,
presentation=guild_presentation(interaction.guild, interaction.user),
),
ephemeral=False,
)


__all__ = ["BillSetupCog", "missing_channel_permissions"]
Loading
Loading