Esempio n. 1
0
            public async Task CheckPrice(string name)
            {
                IMessage searchMessage = Context.Message.Channel.SendMessageAsync("Searching for item....").Result;
                Embed    embed         = GameModule.TryGetRsItemPrice(name, out string suggestion);
                await searchMessage.DeleteAsync();

                if (embed != null)
                {
                    await Context.Message.Channel.SendMessageAsync(embed : embed);
                }
                else
                {
                    await Context.Message.Channel.SendMessageAsync($"Item not found... But do you mean {suggestion}?");
                }
            }