Hi all! I have this script here:
class MyView(discord.ui.View): # Create a class called MyView that subclasses discord.ui.View
@discord.ui.button(label="Ban User", style=discord.ButtonStyle.primary, emoji=":hammer:") # Create a button with the label ":sunglasses: Click me!" with color Blurple
async def button_callback(self, button, interaction):
await interaction.response.send_message("You banned a user!") # Send a message when the button is clicked
How can I pass through the user object so that I can ban them? Thanks!