git » sdk » commit be7396e

Disable this method in C for now

author Stephen Paul Weber
2026-01-12 20:51:38 UTC
committer Stephen Paul Weber
2026-01-12 20:51:38 UTC
parent a4be76477bd1897b8055e13b6832e5abf9419af7

Disable this method in C for now

borogove/Reaction.hx +4 -2

diff --git a/borogove/Reaction.hx b/borogove/Reaction.hx
index 742bd76..7821e34 100644
--- a/borogove/Reaction.hx
+++ b/borogove/Reaction.hx
@@ -60,7 +60,8 @@ class Reaction {
 		@returns the return value of the callback
 	**/
 	#if cpp
-	public function render(forText: (String) -> String, forImage: (String, String) -> String) {
+	@:allow(borogove)
+	private function render(forText: (String) -> String, forImage: (String, String) -> String) {
 	#else
 	public function render<T>(forText: (String) -> T, forImage: (String, String) -> T) {
 	#end
@@ -94,7 +95,8 @@ class CustomEmojiReaction extends Reaction {
 	}
 
 	#if cpp
-	override public function render(forText: (String) -> String, forImage: (String, String) -> String) {
+	@:allow(borogove)
+	override private function render(forText: (String) -> String, forImage: (String, String) -> String) {
 	#else
 	override public function render<T>(forText: (String) -> T, forImage: (String, String) -> T) {
 	#end