#how to find out who used the slash command

1 messages · Page 1 of 1 (latest)

dusky cedar
#

idk, I think I need to use on_application_command... but i wanna send embed

    async def on_member_remove(self, member):
        channel_join_log = get(member.guild.channels, name="join_log")
        embed = Embed(title="Member removed", description=" ", colour=0xff0000)
        embed.add_field(name="Member:", value=f"{member.mention}", inline=True)
        embed.add_field(name="By mod:", value=f"WHO_USED_COMMAND")
        embed.set_footer(text=get_date_now())
        await channel_join_log.send(embed=embed)
hushed parcel
#

You can't do it from on_member_remove

#

on_slash_command_completion - event is called when a slash command has completed it's invocation. Called only if the command succeeds. If it fails due to exception or permission/role check fails, this event isn't called.

dusky cedar
hushed parcel
#

-d disnake.on_slash_command_completion