Skip to content

Commit

Permalink
Merge pull request #28 from Robso-creator/quick_refactor
Browse files Browse the repository at this point in the history
refactor: add doc button
  • Loading branch information
Robso-creator authored Feb 1, 2024
2 parents 0b7a965 + 6ad4828 commit 592a9e5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,17 @@ async def help(interaction: discord.Interaction, command: Optional[str] = None):
color=discord.Color.dark_magenta(),
)

button = Button(
label='Visitar repositório',
repo_button = Button(
label='Repositório',
url='https://github.com/Robso-creator/discord_bot',
)
doc_button = Button(
label='Documentação',
url='https://robso-creator.github.io/discord_bot',
)
view = View()
view.add_item(button)
view.add_item(repo_button)
view.add_item(doc_button)

await interaction.response.send_message(embed=embed, view=view, ephemeral=True)

Expand Down

0 comments on commit 592a9e5

Please sign in to comment.