Discord member last online command
Retrieve info on when a user was last online
Setup
Commands
It uses slash commands AND prefix commands. You can use either. Prefix commands require no setup
Slash command setup
Go to https://autocode.com/tools/discord/command-builder/
Link your bot using Link Account
Set a slash command called last-online
Make an option on that slash command
Set the option type to User. Name it whatever you want
Click on Save All at the bottom
Slash command use
Type /last-online
into your server, and the command should come up.
Enter in the user you want to check in the option box
Prefix command use
!last-online [@mention]
- Example usage !last-online @randomguy400
IMPORTANT: Bot permissions
Your bot also needs Presence Intent enabled to detect users presence changes
You can do this by going to:
https://discord.com/developers/applications -> [Your bot] -> Bot -> Privileged Gateway Intents -> Enable Presence Intent
If you need help with anything, search me up on Autocode Support Server 'randomguy400' or ask in support channel