Skip to content
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3246164
Implement defer
MattyTheHacker May 15, 2026
da3924b
Make ephemeral
MattyTheHacker May 15, 2026
5afada8
Make defer call ephemeral in add_users command
MattyTheHacker May 15, 2026
33372e9
Merge main into fix-add-to-channel
automatic-pr-updater[bot] May 18, 2026
c0b7e8d
Merge main into fix-add-to-channel
automatic-pr-updater[bot] May 19, 2026
e8086a5
Merge main into fix-add-to-channel
automatic-pr-updater[bot] May 23, 2026
1abf263
Merge main into fix-add-to-channel
automatic-pr-updater[bot] May 25, 2026
1ca6f22
Merge main into fix-add-to-channel
automatic-pr-updater[bot] May 25, 2026
cf5c593
Merge main into fix-add-to-channel
automatic-pr-updater[bot] May 26, 2026
60b2f15
Merge main into fix-add-to-channel
automatic-pr-updater[bot] May 27, 2026
0557b16
Merge main into fix-add-to-channel
automatic-pr-updater[bot] Jun 3, 2026
390d265
Merge main into fix-add-to-channel
automatic-pr-updater[bot] Jun 3, 2026
47999b0
Merge main into fix-add-to-channel
automatic-pr-updater[bot] Jun 4, 2026
459b46c
Merge main into fix-add-to-channel
automatic-pr-updater[bot] Jun 7, 2026
9014f4f
Merge main into fix-add-to-channel
automatic-pr-updater[bot] Jun 8, 2026
2defec6
Merge main into fix-add-to-channel
automatic-pr-updater[bot] Jun 10, 2026
cdf5fa8
Merge main into fix-add-to-channel
automatic-pr-updater[bot] Jun 17, 2026
fb6a615
Merge main into fix-add-to-channel
automatic-pr-updater[bot] Jun 18, 2026
6f1026d
Merge main into fix-add-to-channel
automatic-pr-updater[bot] Jun 21, 2026
4906052
Merge main into fix-add-to-channel
automatic-pr-updater[bot] Jun 23, 2026
561dee4
Merge main into fix-add-to-channel
automatic-pr-updater[bot] Jun 24, 2026
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
12 changes: 7 additions & 5 deletions cogs/add_users_to_threads_and_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ async def add_user_to_channel(
)
return

await ctx.defer(ephemeral=True)

try:
user_to_add: discord.Member = await self.bot.get_member_from_str_id(user_id_str)
except ValueError:
Expand All @@ -229,7 +231,7 @@ async def add_user_to_channel(
else:
await self.add_users_or_roles_with_ping(user_to_add, ctx.channel)

await ctx.respond(
await ctx.followup.send(
content=(
f"Successfully added {user_to_add.mention} "
f"to the channel: {ctx.channel.mention}."
Expand Down Expand Up @@ -265,14 +267,14 @@ async def add_role_to_channel(
silent: bool, # noqa: FBT001
) -> None:
"""Command to add a role to a channel."""
if not isinstance(ctx.channel, discord.Thread) and not isinstance(
ctx.channel, discord.TextChannel
):
if not isinstance(ctx.channel, (discord.TextChannel, discord.Thread)):
await self.command_send_error(
ctx, message="This command can only be used in a text channel or thread."
)
return

await ctx.defer(ephemeral=True)

main_guild: discord.Guild = ctx.bot.main_guild

try:
Expand All @@ -295,7 +297,7 @@ async def add_role_to_channel(
else:
await self.add_users_or_roles_with_ping(role_to_add, ctx.channel)

await ctx.respond(
await ctx.followup.send(
content=f"Role {role_to_add.mention} has been added to the channel.",
ephemeral=True,
)
Loading