danaxmontreal.blogg.se

Discord plugin commands
Discord plugin commands












discord plugin commands

Or, say edit to copy the current text field into the dictation box. You can also say dictation box to open the dictation box yourself. The Dictation Box will open automatically when Serenade can't read the current field. When you're using one of these applications, Serenade will open a dedicated Dication Box, where all Serenade commands will work properly. However, some applications don't properly implement accessibility APIs, and so Serenade can't read their text fields. Serenade uses a combination of plugins and OS-level accessibility APIs to manipulate text no matter what application you're using. This is similar to how escape works in add and insert commands.įinally, you can move your cursor by speaking a direction: up, down, left, and right. For instance, you might want to move your cursor to the literal word "parameter" rather than a parameter to a function, so you could say go to phrase parameter. To move your cursor to the literal text matching a selector name, rather than the selector itself, you can say go to phrase. Since the go to command is so common, if you just say a selector, like next function or second parameter, Serenade will implicitly use the go to command.īelow are just some examples of go to commands-you can use any selector. With this command, you can jump to any text in your file (e.g., go to random), or any selector (e.g., go to class). The go to command moves your cursor around the file. All add commands have the same form:Īdd property radius equals three point five For instance, add parameter foo will move your cursor to the nearest parameter list, and then create a new parameter.īelow are just some examples of add commands-you can use any selector. This command will intelligently position your cursor and handle boilerplate for you. To get re-enable auto-detection, say auto mode.Īdd is used for writing new lines or blocks of code.

discord plugin commands

To do so, simply say python mode, javascript mode, and so on. Sometimes, you might want to override this behavior and specify which language Serenade should use. Language Modesīy default, Serenade will auto-detect which programming language is being used based on your editor's filename or active language setting. To get back to normal mode, just say command mode. Some commands, like undo, repeat, and stop listening, will also be presented as alternatives so you don't have to leave Dictate Mode to use them. To enable Dictate Mode, just say dictate mode, and then Serenade will type out everything you say, rather than listening for valid commands. Sometimes, like when dictating a longer block of text, you want Serenade to simply type out everything you're saying, rather than listen for other commands. To enable command mode, just say command mode. In this mode, if you say something that isn't a valid Serenade command, Serenade will show an x next to the command and won't do anything. Serenade has a few different configurable modes to change how your voice commands are interpreted. For instance indent three times will run the indent command three times. For instance, you can say save focus terminal to save your current file and then focus your terminal, or start of class add method hello to add a new method at the start of a class.įinally, you can also specify how many times a command should be executed. You can also chain commands together without pausing. Serenade commands simply combine an action and a selector: add function hello, change parameter to number, and copy lines five to ten.

discord plugin commands

For a complete list of selectors, see the Reference section. Even more powerful selectors are code-based, which enable you to reference parts of your code, including function, class, and return value. Some selectors are text-based, like line or word.

#Discord plugin commands code#

Common actions include add to add a new line of code, change to edit code, and delete to remove code.Ī selector is a block of code to operate on. The action is something you want to do to your code. As you'll see throughout these docs, most Serenade voice commands have the same form:














Discord plugin commands