MCPcopy Create free account
hub / github.com/esmBot/esmBot / getString

Method getString

src/classes/command.ts:152–158  ·  view source on GitHub ↗
(key: string, params?: { returnNull?: boolean; params?: { [key: string]: string } })

Source from the content-addressed store, hash-verified

150 getString(key: string, params?: { returnNull?: false; params?: { [key: string]: string } }): string;
151 getString(key: string, params: { returnNull: boolean; params?: { [key: string]: string } }): string | undefined;
152 getString(key: string, params?: { returnNull?: boolean; params?: { [key: string]: string } }): string | undefined {
153 return getString(key, {
154 locale: this.locale,
155 returnNull: params?.returnNull ?? false,
156 ...params,
157 });
158 }
159
160 getOption(key: string, type: Constants.ApplicationCommandOptionTypes, defaultArg?: boolean) {
161 switch (type) {

Callers 15

runMethod · 0.95
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 1

getStringFunction · 0.85

Tested by

no test coverage detected