forked from vendetta-mod/Vendetta
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
if this doesnt break i will be SHOCKED.
- Loading branch information
Showing
6 changed files
with
67 additions
and
25 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
import { ApplicationCommand } from "@/def"; | ||
import { ApplicationCommand, ApplicationCommandOptionType } from "@/def"; | ||
import { Messages, clipboard, toasts } from "../metro/common"; | ||
import { getAssetIDByName } from "@/ui/assets"; | ||
|
||
// wip. | ||
export default [ | ||
{ | ||
name: 'debug', | ||
description: 'info' | ||
} | ||
] as ApplicationCommand[] | ||
|
||
execute: { | ||
const msg = []; | ||
msg.push("This is a test command"); | ||
Messages.sendBotMessage("hi world!"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { registerCommand } from "../commands"; | ||
import debug from "./debug"; | ||
import reload from "./reload"; | ||
|
||
export function initCustomCommands(): void { | ||
const customCommands = [ | ||
...debug, | ||
...reload, | ||
]; | ||
|
||
registerCommand(customCommands); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ApplicationCommand, ApplicationCommandOptionType } from "@/def"; | ||
import { clipboard, toasts } from "../metro/common"; | ||
import { getAssetIDByName } from "@/ui/assets"; | ||
import { BundleUpdaterManager } from "../native"; | ||
|
||
export default [ | ||
{ | ||
name: 'reload', | ||
description: 'Restarts discord.' | ||
} | ||
] as ApplicationCommand[] | ||
|
||
execute: { | ||
BundleUpdaterManager.reload() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters