8000 Fix controls tooltip + logic by tiltowait · Pull Request #70 · tiltowait/botch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix controls tooltip + logic #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025
Merged
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
8 changes: 4 additions & 4 deletions src/interface/shared/characters.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,18 @@ async def user_images(self, ctx: AppCtx, member: discord.Member):
@option(
"controls",
description="Who can control the buttons?",
choices=[OptionChoice("Only you", True), OptionChoice("Anyone", False)],
default=True,
choices=[OptionChoice("Anyone", 0), OptionChoice("Only you", 1)],
default=0,
)
async def display_images(
self,
ctx: AppCtx,
character: str,
controls: bool,
controls: int,
owner: discord.Member,
):
"""View a character's images."""
await botchcord.character.images.display(ctx, character, controls, owner=owner)
await botchcord.character.images.display(ctx, character, bool(controls), owner=owner)

@images.command(name="upload")
@option("image", description="The image file to upload")
Expand Down
0