Skip to content

Commit

Permalink
making some messages ephemeral (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
imtherealF1 authored Aug 19, 2024
1 parent c5d906d commit 4525316
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ballsdex/packages/balls/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,13 @@ async def give(
)
return
if user.bot:
await interaction.response.send_message("You cannot donate to bots.")
await interaction.response.send_message("You cannot donate to bots.", ephemeral=True)
return
if await countryball.is_locked():
await interaction.response.send_message(
f"This {settings.collectible_name} is currently locked for a trade. "
"Please try again later."
"Please try again later.",
ephemeral=True,
)
return
if countryball.favorite:
Expand All @@ -533,13 +534,14 @@ async def give(

if new_player == old_player:
await interaction.followup.send(
f"You cannot give a {settings.collectible_name} to yourself."
f"You cannot give a {settings.collectible_name} to yourself.", ephemeral=True
)
await countryball.unlock()
return
if new_player.donation_policy == DonationPolicy.ALWAYS_DENY:
await interaction.followup.send(
"This player does not accept donations. You can use trades instead."
"This player does not accept donations. You can use trades instead.",
ephemeral=True,
)
await countryball.unlock()
return
Expand Down

0 comments on commit 4525316

Please sign in to comment.