We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 234954d commit 3acc52aCopy full SHA for 3acc52a
streamerbot/3.api/3.csharp/0.guide/3.custom-methods.md
@@ -15,12 +15,20 @@ You can call your custom method from within the `Execute()`{lang=cs} method or f
15
public bool Execute()
16
{
17
CustomMethod(); // Call your custom method [!code highlight]
18
+
19
+ int sum = Add(5, 10); // Call another custom method that takes parameters [!code highlight]
20
21
return true;
22
}
23
24
public void CustomMethod()
25
- CPH.LogInfo("This is a custom method!");
26
+ CPH.LogInfo("This is a custom method!"); // You can even use CPH methods here!
27
+}
28
29
+public int Add(int a, int b)
30
+{
31
+ return a + b; // This method takes two integers and returns their sum
32
33
```
34
0 commit comments