Developer Commands¶
Administrative and development tools for server management and bot maintenance.
Quick Reference¶
| Command | Description | Permission Required |
|---|---|---|
/getprime | Get premium subscription | Bot Developer |
/load_cog | Load a bot cog | Bot Developer |
add_role | Add role to member in guild | Bot Developer |
add_tester | Add user to tester list | Bot Developer |
remove_tester | Remove user from tester list | Bot Developer |
system | View system information | Bot Developer |
leaveg | Leave guilds with low members | Bot Owner |
get_guild | Get invite to a guild | Bot Developer |
get_channel | Get channel information | Bot Developer |
get_log | Download error log file | Bot Developer |
Overview¶
Developer commands provide:
- System Management - Bot system monitoring and server management
- User Management - Tester and developer role management
- Premium Services - Subscription and payment handling
- Guild Operations - Server information and management
- Cog Management - Loading and managing bot extensions
- Logging - Error tracking and system logs
- Role Management - Cross-guild role assignment
Security Warning
Developer commands have unrestricted access to the bot and server data. These commands should only be used by trusted developers and never shared with unauthorized users.
Access Control
All developer commands require the user to be in the bot's developer list, defined in the bot configuration. Some commands are restricted to the bot owner only.
Premium Services¶
/getprime¶
Purchase premium subscription plans for enhanced bot features.
Parameters: - plan - Subscription plan type
Available Plans:
- Monthly - ₹49/month
- Quarterly - ₹139/3 months
- HalfYearly - ₹229/6 months
- Yearly - ₹429/year
- Lifetime - ₹4,444 one-time
- Custom - Contact support for custom pricing
- Developer - ₹1 (for bot owner only)
Examples:
Features: - 🔗 Generates secure payment link - 💸 Coupon code SP10 available for discount - 🎯 Custom plans redirect to support server - ⚡ Automatic session creation for payments
Payment Process
User Management¶
add_tester¶
Add a user to the bot's tester list for beta features.
Parameters: - member - Discord member to add - guild (optional) - Specific guild for testing
Examples:
Tester Features: - 🚀 Access to beta commands - 🧪 Early feature testing - 🎭 Special tester role assignment - 📊 Database tracking - ✅ Active status management
Process: 1. ✅ Validates member isn't already a tester 2. 📝 Creates tester database entry 3. ⚙️ Sets testing level (0.0 default) 4. ➕ Adds to bot's tester list 5. 🎉 Confirms addition
remove_tester¶
Remove a user from the bot's tester list.
Parameters: - member - Discord member to remove
Examples:
Effects: - ❌ Removes from tester list - 🗑️ Deletes database entry - 🚫 Removes beta access - ✅ Confirms removal
System Information¶
system¶
Display comprehensive system performance metrics.
System Information Displayed:
- Total RAM - Available memory in GB
- RAM Usage - Current usage in MB and percentage
- Memory Status - Performance indicators
- CPU Cores - Physical and logical core count
- CPU Usage - Current utilization percentage
- Performance - Real-time metrics
- Total Disk - Available storage in GB
- Disk Usage - Used space in GB and percentage
- Storage Status - Space availability
System Output
Guild Management¶
leaveg¶
Leave guilds with member count below threshold (Owner only).
Parameters: - member_threshold - Minimum member count - guild_id (optional) - Specific guild to leave
Examples:
User Permissions Required: - Bot Owner only (config.OWNER_ID)
Functionality:
- Scans all guilds bot is in
- Leaves guilds below member threshold
- Reports each guild left
- Shows member count for each
- Leaves specified guild by ID
- Ignores member threshold
- Confirms guild name and count
Safety Features: - Owner-only restriction - Cooldown: 2 uses per 20 seconds - Guild validation - Member count reporting
get_guild¶
Get an invite link to a specific guild.
Parameters: - guild - Discord guild object/ID
Examples:
Process: 1. ✅ Validates guild access 2. 📝 Uses first available channel 3. 🔗 Creates temporary invite 4. 📤 Returns invite link
Invite Settings: - ⏰ Max Age - 360 seconds (6 minutes) - 🔢 Max Uses - 2 uses - 👤 Temporary - Temporary membership - 🔄 Unique - Not unique (reusable)
Error Handling: - 🔒 Permission check for invite creation - 🔄 Fallback for inaccessible guilds - 💬 Clear error messages
get_channel¶
Get detailed information about a specific channel.
Parameters: - channel_id - Channel ID to inspect
Examples:
Information Displayed: - 📝 Channel Name - Display name - 🆔 Channel ID - Unique identifier - 📂 Channel Type - Text, voice, category, etc. - 🏠 Guild Name - Server name - 🆔 Guild ID - Server identifier - 👥 Member Count - Server population
Cooldown: 2 uses per 20 seconds
Cog Management¶
/load_cog¶
Load a specific bot cog during runtime.
Parameters: - cog_name - Cog to load (enum selection)
Available Cogs: - 🎵 music - Music playback features - 🛡️ moderation - Moderation commands - 🔧 utility - Utility functions
Examples:
Process: 1. ✅ Validates user permissions 2. 🔄 Attempts to load extension 3. 📊 Reports success or failure 4. 📝 Registers new commands
Error Handling: - 🔒 Permission validation - ❌ Import error detection - 📦 Dependency checking - 💬 Clear error reporting
Role Management¶
add_role¶
Add a role to a member in any guild the bot has access to.
Parameters: - guild_id - Target guild ID - member_id - Member to assign role to - role_id - Role to assign
Examples:
Validation Checks:
- ✅ Guild exists and bot has access
- 👤 Member exists in specified guild
- 🎭 Role exists in specified guild
- 🚫 Role is not default (@everyone)
- 🤖 Role is not bot-managed
- 📈 Role position is below bot's top role
- ❌ Member doesn't already have role
- 📊 Hierarchy respect
- 🔄 Duplicate prevention
- 🔒 Permission checking
- 💬 Clear error messages
Database Operations¶
dbupdate¶
Update configuration values in the database.
Parameters: - key - Configuration key to update - value - New value to set
Examples:
Safety Features: - 🆔 Config ID validation (87) - ❌ Error handling and reporting - ✅ Confirmation of updates - 🔒 Database transaction safety
Message Management¶
dlm¶
Delete a specific message (if bot has permissions).
Parameters: - message - Message object to delete
Examples:
Requirements: - 🔒 Bot must have delete permissions - 👁️ Message must be accessible - 🏠 Guild-only command
cdm¶
Clear bot's DM messages with the user.
Parameters: - amount - Number of messages to delete
Examples:
Features: - 💌 DM-only command - 🤖 Deletes only bot's messages - ⏱️ Cooldown: 2 uses per 20 seconds - ✅ Auto-confirmation deletion
edm¶
Edit a message sent by the bot (Owner only).
Parameters: - message - Message object to edit - content - New message content
Examples:
Restrictions: - 👑 Owner only command - 🤖 Message must be sent by bot - ✅ Validates message ownership
sdm¶
Send a direct message to a user (Owner only).
Parameters: - member - User to send DM to - message - Message content
Examples:
Features: - 👑 Owner-only restriction - ❌ Error handling for blocked DMs - ⏱️ Cooldown protection - ✅ Confirmation of delivery
Logging and Monitoring¶
get_log¶
Download the bot's error log file.
Features: - 📥 Downloads error.log file - ✅ File existence validation - 📤 Direct file upload to Discord - ❌ Error handling for missing logs
Special Administrative Commands¶
owners¶
Assign owner role to large guild owners in support server.
Process: 1. 🔍 Scans all guilds bot is in 2. 👑 Identifies guild owners with 1000+ members 3. 🎭 Adds special owner role in support server 4. ✅ Reports completion
Requirements: - 👤 Guild owner must be in support server - 👥 Guild must have 1000+ members - 🎭 Support server role management
add_dev¶
Add or remove a user from the developer list (Owner only).
Parameters: - member - Discord member to add/remove
Examples:
Features: - 🔄 Toggle functionality (add if not present, remove if present) - 👑 Owner-only restriction - 📝 Logging of developer changes - ✅ Confirmation messages
Error Handling¶
Common developer command errors and solutions:
| Error | Cause | Solution |
|---|---|---|
| "You are not allowed" | Not in developer list | Add user to bot config |
| "Guild not found" | Invalid guild ID | Check guild ID and bot access |
| "Permission denied" | Insufficient bot permissions | Grant required permissions |
| "User not found" | Invalid user ID | Verify user exists and is accessible |
| "Role hierarchy" | Role position too high | Ensure bot role is above target role |
Best Practices¶
Development Workflow¶
- 🧪 Use tester accounts for beta features
- 📊 Monitor system resources during testing
- 📝 Check error logs regularly
- 🔒 Test in controlled environments
- 📈 Regular system monitoring
- 🧹 Guild cleanup for performance
- 🎭 Role hierarchy maintenance
- 🔍 Permission auditing
- 🔐 Limit developer access
- 👁️ Monitor command usage
- 🛡️ Regular security reviews
- 📋 Audit trail maintenance
Support¶
Developer command support:
- 📚 Development Guide - Setup and workflow
- 🔧 API Documentation - Technical references
- 💬 Developer Discord - Developer community
- 📧 Email: dev@nexinlabs.com
Next: Return to Commands Overview →