Skip to content
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

response changed to ephemeral msg in admin cog + some arg description fixes #284

Merged
merged 3 commits into from
Jun 14, 2024
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
14 changes: 8 additions & 6 deletions ballsdex/packages/admin/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ async def blacklist_add_guild(
Parameters
----------
guild_id: str
The ID of the user you want to blacklist, if it's not in the current server.
The ID of the guild you want to blacklist.
reason: str
"""

Expand Down Expand Up @@ -810,19 +810,19 @@ async def blacklist_remove_guild(
Parameters
----------
guild_id: str
The ID of the user you want to unblacklist, if it's not in the current server.
The ID of the guild you want to unblacklist.
"""

try:
guild = await self.bot.fetch_guild(int(guild_id)) # type: ignore
except ValueError:
await interaction.response.send_message(
"The user ID you gave is not valid.", ephemeral=True
"The guild ID you gave is not valid.", ephemeral=True
)
return
except discord.NotFound:
await interaction.response.send_message(
"The given user ID could not be found.", ephemeral=True
"The given guild ID could not be found.", ephemeral=True
)
return

Expand Down Expand Up @@ -854,7 +854,7 @@ async def blacklist_info_guild(
Parameters
----------
guild_id: str
The ID of the user you want to check, if it's not in the current server.
The ID of the guild you want to check.
"""

try:
Expand All @@ -873,7 +873,9 @@ async def blacklist_info_guild(
try:
blacklisted = await BlacklistedGuild.get(discord_id=guild.id)
except DoesNotExist:
await interaction.response.send_message("That guild isn't blacklisted.")
await interaction.response.send_message(
"That guild isn't blacklisted.", ephemeral=True
)
else:
if blacklisted.date:
await interaction.response.send_message(
Expand Down
Loading