Create use effect command (#419)
# Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. #380 ## Type of change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update # How Has This Been Tested? Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration. # Checklist - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that provde my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules Reviewed-on: #419 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
parent
3e81f8ce1d
commit
a3248e978a
42 changed files with 1241 additions and 1133 deletions
95
tests/buttonEvents/Effects/__snapshots__/Use.test.ts.snap
Normal file
95
tests/buttonEvents/Effects/__snapshots__/Use.test.ts.snap
Normal file
|
@ -0,0 +1,95 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`UseCancel GIVEN effectDetail is found, EXPECT interaction updated 1`] = `
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"custom_id": "effects use confirm unclaimed",
|
||||
"disabled": true,
|
||||
"emoji": undefined,
|
||||
"label": "Confirm",
|
||||
"style": 1,
|
||||
"type": 2,
|
||||
},
|
||||
{
|
||||
"custom_id": "effects use cancel unclaimed",
|
||||
"disabled": true,
|
||||
"emoji": undefined,
|
||||
"label": "Cancel",
|
||||
"style": 4,
|
||||
"type": 2,
|
||||
},
|
||||
],
|
||||
"type": 1,
|
||||
},
|
||||
],
|
||||
"embeds": [
|
||||
{
|
||||
"color": 13882323,
|
||||
"description": "The effect from your inventory has not been used",
|
||||
"fields": [
|
||||
{
|
||||
"inline": true,
|
||||
"name": "Effect",
|
||||
"value": "Unclaimed Chance Up",
|
||||
},
|
||||
{
|
||||
"inline": true,
|
||||
"name": "Expires",
|
||||
"value": "10m",
|
||||
},
|
||||
],
|
||||
"title": "Effect Use Cancelled",
|
||||
},
|
||||
],
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`UseConfirm GIVEN EffectHelper.UseEffect succeeded, EXPECT interaction updated 1`] = `
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"components": [
|
||||
{
|
||||
"custom_id": "effects use confirm unclaimed",
|
||||
"disabled": true,
|
||||
"emoji": undefined,
|
||||
"label": "Confirm",
|
||||
"style": 1,
|
||||
"type": 2,
|
||||
},
|
||||
{
|
||||
"custom_id": "effects use cancel unclaimed",
|
||||
"disabled": true,
|
||||
"emoji": undefined,
|
||||
"label": "Cancel",
|
||||
"style": 4,
|
||||
"type": 2,
|
||||
},
|
||||
],
|
||||
"type": 1,
|
||||
},
|
||||
],
|
||||
"embeds": [
|
||||
{
|
||||
"color": 2263842,
|
||||
"description": "You now have an active effect!",
|
||||
"fields": [
|
||||
{
|
||||
"inline": true,
|
||||
"name": "Effect",
|
||||
"value": "Unclaimed Chance Up",
|
||||
},
|
||||
{
|
||||
"inline": true,
|
||||
"name": "Expires",
|
||||
"value": "<t:600:f>",
|
||||
},
|
||||
],
|
||||
"title": "Effect Used",
|
||||
},
|
||||
],
|
||||
}
|
||||
`;
|
Loading…
Add table
Add a link
Reference in a new issue