Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated a few things! #1047

Merged
merged 39 commits into from
Jul 22, 2024
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b67f90f
Updated with 2 things
thekingofspace Apr 15, 2024
a6a0b26
Updated these with lint
thekingofspace Apr 19, 2024
051774d
Updated these with lint
thekingofspace Apr 19, 2024
6ab1d23
Updated canvas_create_primitive_MOD.js
thekingofspace Apr 24, 2024
3ae7fbd
Added json_read_MOD
thekingofspace Jun 3, 2024
d13cc98
Merge branch 'master' into master
thekingofspace Jun 3, 2024
b31b481
Added json_read_MOD
thekingofspace Jun 3, 2024
448684a
Merge remote-tracking branch 'origin/master'
thekingofspace Jun 3, 2024
00cf7e4
Added json_read_MOD
thekingofspace Jun 3, 2024
88b9f75
Added json_read_MOD
thekingofspace Jun 3, 2024
918a269
Fixed lint issue I hope
thekingofspace Jun 3, 2024
5d2c22b
Fixed lint issue I hope
thekingofspace Jun 3, 2024
6044bff
Fixed prettier issues
thekingofspace Jun 3, 2024
a744bcb
Added json random
thekingofspace Jun 4, 2024
a3e1010
**Changelog**
thekingofspace Jun 6, 2024
09b92e5
Merge branch 'master' into master
thekingofspace Jun 6, 2024
f4c7c7c
**Changelog**
thekingofspace Jun 6, 2024
99d6330
Merge remote-tracking branch 'origin/master'
thekingofspace Jun 6, 2024
fc97572
**Changelog**
thekingofspace Jun 6, 2024
2c24c47
**Changelog**
thekingofspace Jun 6, 2024
3bb0c99
**Changelog**
thekingofspace Jun 6, 2024
a471aa6
**Changelog**
thekingofspace Jun 6, 2024
60cf3af
**Changelog**
thekingofspace Jun 6, 2024
ead3a35
**Changelog**
thekingofspace Jun 6, 2024
b0d3620
**Changelog**
thekingofspace Jun 6, 2024
2756ffe
**Changelog**
thekingofspace Jun 6, 2024
48f73f3
Fixed Title
thekingofspace Jun 6, 2024
9c89e5c
Merge branch 'master' into master
thekingofspace Jun 6, 2024
0f2bc28
Added console event action
thekingofspace Jun 13, 2024
324ff15
Merge remote-tracking branch 'origin/master'
thekingofspace Jun 13, 2024
a5b406f
Added console event action
thekingofspace Jun 13, 2024
793768e
Merge branch 'master' into master
thekingofspace Jun 13, 2024
aea10ca
Added console event action
thekingofspace Jun 14, 2024
508c4c6
Merge remote-tracking branch 'origin/master'
thekingofspace Jun 14, 2024
48561da
RE added the convert packages
thekingofspace Jun 14, 2024
2ed35ea
Merge branch 'master' into master
thekingofspace Jun 14, 2024
6c84f72
Fixed json read
thekingofspace Jun 23, 2024
5a263d9
Added a function to delete threads!
thekingofspace Jul 18, 2024
2d74ffe
Merge branch 'master' into master
OneAndOnlyFinbar Jul 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions actions/delete_thread_MOD.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
name: 'Delete Thread',
section: 'Channel Control',
subtitle(data, presets) {
return `Delete Thread: "${presets.getChannelText(data.thread, data.threadVarName)}"`;
},
meta: { version: '2.1.7', preciseCheck: true, author: null, authorUrl: null, downloadUrl: null },
fields: ['thread', 'threadVarName', 'reason'],
html() {
return `
<thread-channel-input dropdownLabel="Source Thread" selectId="thread" variableContainerId="varNameContainer" variableInputId="threadVarName"></thread-channel-input>
<br><br><br><br>
<div style="float: right; width: calc(102% - 12px);">
<span class="dbminputlabel">Reason</span>
<input id="reason" placeholder="Optional" class="round" type="text">
</div>`;
},
init() {},
async action(cache) {
const data = cache.actions[cache.index];
const thread = await this.getChannelFromData(data.thread, data.threadVarName, cache);
const reason = this.evalMessage(data.reason, cache);
if (Array.isArray(thread)) {
this.callListFunc(thread, 'delete', [reason]).then(() => this.callNextAction(cache));
} else if (thread?.delete) {
thread
.delete(reason)
.then(() => this.callNextAction(cache))
.catch((err) => this.displayError(data, cache, err));
} else {
this.callNextAction(cache);
}
},
mod() {},
};
Loading