Пример #1
0
        public static async Task CharacterExists(ContextIds ids)
        {
            var user = GetUser(ids.UserId);

            if (!user.HasCharacter)
            {
                await MessageHandler.CharacterMissing(ids);

                throw new InvalidCharacterStateException("character doesn't exist");
            }
        }