public async Task DailyMoney() { if (Context.Channel is IPrivateChannel) { return; } await EconomyService.DailyCommandErrorMessage(Context.Guild, Context.Channel); }
public async Task TransferMoney(IGuildUser user, ulong MoneyToTransfer) { if (Context.Channel is IPrivateChannel) { return; } await EconomyService.TransferMoney(Context.Guild, Context.Channel, Context.Message, (IGuildUser)Context.User, user, MoneyToTransfer); }
public async Task Balance() { if (Context.Channel is IPrivateChannel) { return; } await EconomyService.BalanceCommandErrorMessage(Context.Guild, Context.Channel); }
private void Start() { _economyService = ServiceProvider.ProvideEconomy(); _audioSource = GetComponent <AudioSource>(); }
public EconomyModule(EconomyService economy) { _economy = economy; }
private void Awake() { economyService = ServiceProvider.ProvideEconomy(); Coins.text = economyService.QuantityCoins().ToString(); economyService.CoinsChanged += OnCoinsChanged; }