Enhance the /starky-connect
#109
Labels
enhancement
New feature or request
good first issue
Good for newcomers
OD Build
Issue reserved for the OD Build
open for contribution
An issue that is available for an Only Dust contribution
Description 📹
Enhance the
/starky-connect
command by displaying a "Reconnect {networkName}" button for each network when the user has already linked a Starknet wallet on all networks. Also, fix the logic ofalreadyConnectedOnBothNetworks
to support multiple networks fromconfigs/networks.json
.Proposed Actions 🛠️
Here’s a checklist of actions to follow for resolving this issue:
Fork and Create Branch:
Fork the repository and create a new branch using the issue number:
Update the
alreadyConnectedOnBothNetworks
logic:configs/networks.json
rather than a hardcoded value.Modify the response when a user is already connected on all networks:
"You have already linked a Starknet wallet to this Discord server on both networks. Use /starky-disconnect first if you want to link a new one"
,dynamically generate a message that accounts for all available networks.
Implement UI components for the buttons:
ActionRowBuilder
andButtonBuilder
to create buttons dynamically for each network.Ensure proper error handling and logging:
Run Tests and Commit Changes:
Make sure your changes don't break existing functionality and commit with a clear message:
git commit -m "Fix: Display reconnect buttons and update multi-network support"
Required 📋
To keep our workflow smooth, please make sure you follow these guidelines:
Close #[issue_id]
.Thank you for your contribution 🙏
The text was updated successfully, but these errors were encountered: