We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 322b839 commit 1bb6890Copy full SHA for 1bb6890
base.go
@@ -213,7 +213,9 @@ type System interface {
213
}
214
215
// UsernameOverrideFn can be used to provide a different username generation strategy from the default in Nakama server.
216
-type UsernameOverrideFn func() string
+// Requested username indicates what the username would otherwise be set to, if the incoming request specified a value.
217
+// The function is always expected to return a value, and returning "" defers to Nakama's built-in behaviour.
218
+type UsernameOverrideFn func(requestedUsername string) string
219
220
// WithAchievementsSystem configures an AchievementsSystem type and optionally registers its RPCs with the game server.
221
func WithAchievementsSystem(configFile string, register bool) SystemConfig {
0 commit comments