Every time a ButtonBase is instantiated and CallbackData get used as a Value for it, .Serialize() need to be called because Value only accept an string.
So with this instead of:
var new button = new ButtonBase("Edit", new CallbackData("a", CallbackValues.Name).Serialize());
Now you can do:
var new button = new ButtonBase("Edit", new CallbackData("a", CallbackValues.Name));
Every time a ButtonBase is instantiated and
CallbackData
get used as a Value for it,.Serialize()
need to be called because Value only accept an string.So with this instead of:
Now you can do:
So no more
.Serialize()
call.