async createCurrencyAsync(interaction: Command.ChatInputCommandInteraction, requestorGuild: Guild): Promise<any> {
requestorGuild.createCurrencyType(interaction.options.getString('name', true))
await this.guildRepository.saveAsync(interaction.user.id)
await this.registerGuildSpecificCurrencyOptions(this.applicationCommandRegistry, requestorGuild)
...logging and replies omitted from example. loadAll can take a little bit, so is called last.
await this.store.loadAll()
}
async createCurrencyAsync(interaction: Command.ChatInputCommandInteraction, requestorGuild: Guild): Promise<any> {
requestorGuild.createCurrencyType(interaction.options.getString('name', true))
await this.guildRepository.saveAsync(interaction.user.id)
await this.registerGuildSpecificCurrencyOptions(this.applicationCommandRegistry, requestorGuild)
...logging and replies omitted from example. loadAll can take a little bit, so is called last.
await this.store.loadAll()
}